• Then, we have to create new column for attrition count. For this, select attrition column
→ click on Add Column → new window will open then add details as follows. Once you
are done with this, attrition count column will be added as a last row of the table
• Change the datatype of this column to whole number
Click on
“Close
&
Apply”
• You will be back on canvas area with table loaded in Data Pane (in right side).
Kindly Note: If you want same format for all visuals, complete the
formatting with one of the visual, click on format painter and click on the
visual for which you want the formatting. Little bit formatting will be
required as properties for each visual will be different
Select Pie Chart.
Optional: As you can see, age is not sorted correctly, so we have to create additional
column.
Once sort age column is created change the datatype of column if its not in whole number.
Click on “Close & Apply”
Now, on canvas, in data pane → select CP_age_band → click on sort by column → select
newly created column sort age and now
click on visual and follow the steps, Finally, output will be as follows:
:
• Now apply same steps for creating MATRIX.
The matrix visual is a type of table visual that supports a stepped layout. A table supports two
dimensions, but a matrix makes it easier to display data meaningfully across multiple dimensions.
Often, report designers include matrixes in reports and dashboards to allow users to select one or
more element (rows, columns, cells) in the matrix to cross-highlight other visuals on a report
page.
Format the row header & column header → text color & background color
Also, format the Row grand total & column grand total
A doughnut chart is similar to a pie chart in that it shows the relationship of parts to a
whole. The only difference is that the center is blank and allows space for a label or
icon.
Doughnut charts work best when you use them to compare a particular section to the
whole, rather than comparing individual sections with each other.
Slicers: A slicer is a standalone chart that can be used to filter the other visuals on the
page. Slicers come in many different formats (category, range, date, etc.) and can be
formatted to allow selection of only one, many, or all of the available values.
Slicers are a great choice to:
• Display commonly used or important filters on the report canvas for easier access.
• Make it easier to see the current filtered state without having to open a drop-down
list.
4. Now, try for Top N filtering. Try to display top 4 Job roles having highest job
satisfaction.
• Select “Job satisfaction rating” visual → In Filters Pane, Filters on this visual →
Job Role→
Filter type: Top N
Show item: Top : 4
By value: Sum of Job Satisfaction
Solution:
Step1: Upload the revenue dataset
Step2: In the power query editor as part of transformation remove the unnecessary columns
(Remove the last null column)
Question 1: Create a choropleth map (fill the map) to spot the special trends
to show the state which has the highest revenue.
Step1: Select the "Map" visualization from the Visualizations pane.(filled map)
Step2: Set Up the Map:
Step3: Customize: In the "Format" pane, adjust settings such as color, size, and tooltips to
enhance readability. You can use color gradients to indicate different revenue levels, helping to
spot trends.
Question 2:Create a line chart to show the revenue based on the month of the year.
Step1:Add a Line Chart: Select the "Line chart" visualization from the Visualizations pane.
Step2: Configure the Chart:
• Drag the month field to the "Axis" field well.
• Drag the revenue field to the "Values" field well.
Step3: Format: In the "Format" pane, you can customize the line color, axis titles, and other
aspects to clearly present the revenue trend throughout the year
Question 3: Create a bin of size 10 for the age measure to create a new
dimension to show the revenue.
Step1: Create Bins for age
• Create a new visualization (e.g., bar chart or column chart). Here we used Stacked column
chart.
• Drag the new age bins field to the "X Axis" and the revenue field to the "Y axis”.
Question 4: Create a donut chart view to show the percentage of revenue per
region by creating zero access in the calculated field.
Step1: Add a Donut Chart: Select the "Donut chart" visualization from the Visualizations
pane.
Step2:Set Up the Chart:
• Go to the "Format" pane, select "Detail labels", and set the "Label position" to "Inside" to
create a zero access effect.
• Adjust the "Detail" and "Percentage" settings as needed.
Note: The "zero access effect" is a visual design technique often used in data visualizations to
emphasize or clearly show zero values or the absence of certain data. This effect is
particularly useful in charts where you want to highlight how values are distributed relative to
zero, or where zero plays a significant role in the interpretation of the data.
Donut Charts:
In a donut chart, the zero access effect can be used to enhance readability by placing labels or
markers at the center of the chart or using a specific design to show where there is no data.
For example, if one segment of a donut chart represents zero revenue, you might design the
chart so that this segment is clearly visible or highlighted to indicate no revenue.
Method 2:
Step 1:
Step 2:
Apply a Filter:
▪ In the "Filters" pane, add a filter to show only Female revenue. You can drag Gender to the
"Filters" pane and set the filter to include only Female.
Step 3:
Apply a Filter:
▪ In the "Filters" pane, add a filter to show only Male revenue. You can drag Gender to the
"Filters" pane and set the filter to include only Male.
Step 4:
Reversing the Bars:
• To create the butterfly effect, you need to reverse one of the bar charts. This involves
Question 6:Create a calculated field to show the average revenue per state &
display profitable & non-profitable state.
Step1: Create a New Measure
AverageRevenuePerState =
AVERAGEX(
VALUES(SalesTable[State]),
CALCULATE(SUM(SalesTable[Revenue]))
)
Step2: Create a Calculated Column to Categorize States
Next, create a calculated column to classify states as profitable or non-profitable based on the
average revenue.
ProfitabilityStatus =
• Total Sales
• Average Profit
ii) Create a bar graph to compare GDP of Belgium between 2006 – 2026.
Step1:
Get Measured Names to Filter Pane then select as in years mentioned
iii) Using pie chart, visualize the GDP of India, Nepal, Romania,
South Asia, Singapore by the year 2010.
Step1:
Get Country to Filter pane and select India, Nepal, Romania, South
Asia, SingaporeGet Measure Name to Filter and select 2010
Step2: Important Step
Select option of chart as Pie(instead of automatic in Marks Pane) andDrag Country in Color
frame
Finaly Sum or avg or anything of your choice to angle Frame ( For sum its SUM[(2010)], For
average itsAVG[(2010)] from measure value
The output result is as in below
iv) Visualize the countries Bhutan & Costa Rica competing in terms of GDP.
Step1: Filter Country and Measure name Iike Bhutan,Costarics and 2016,2017,2018 as
year(Measure name)
Step2:Add Country and Measure Names in column, Measure Values in Row
Step3:For better view add Measure Names to Color frame in Marks pane
v) Create a scatter plot or circle views of GDP of Mexico, Algeria, Fiji, Estonia
from 2004 to 2006.
Step1:Add Country in filter as per requirement
Add measure names in filter and select as per requirement
Step2: Add Measured Name in Column and an add any measured values of year
2004,2005,2006Finally opt for Circle as option
iii) Create a pie chart to show the attrition percentage based on Department Category- Drag
department into colours and change automatic to pie. Entire view, Drag attrition count to angle.
Label attrition count,change to percent, add total also, edit label.
iv) Create a bar chart to display the number of employees by Age group,
v) Create a highlight table to show the Job Satisfaction Rating for each job role based on
employee count.
vi) Create a horizontal bar chart to show the attrition count for each Education field Education
field wiseattrition – drag education field to rows, sum attrition count to col,
vii) Create multiple donut chart to show the Attrition Rate by Gender for different
Age group.Solution :
i) Create KPI to show employee count, attrition count, attrition rate, attrition
count, active employees, and average age.
Step1: Create a New measure
Employee Count = COUNT('HR'[EmployeeNumber])
Step2: Choose KPI card in the visualization and drag and drop the Employee Count. Format your
visualsof your style.
Step6: Choose KPI card in the visualization and drag and drop the Attrition Rate. Format your
ii) Create a Lollipop Chart to show the attrition rate based on gender category.
Power BI does not have a native Lollipop Chart, so you will simulate it using (any chart) a Line
andStacked column Chart
iii) Create a pie chart to show the attrition percentage based on Department
Category-
Drag department into colours and change automatic to pie. Entire view, Drag attrition count to
angle. Labelattrition count,change to percent, add total also, edit label.
• From the Visualizations pane on the right, select the Pie Chart visual icon. This will add a
blankpie chart to your report canvas.
• Edit Labels:
o If you want to customize the text in the labels, you can use the Data Label formatting optionsto
adjust font size, color, and display units.
V) Create a highlight table to show the Job Satisfaction Rating for each job role
based on employee count.
• Create a Matrix visual from the Visualizations pane.
• Drag the Job Role field to Rows.
• Drag the Job Satisfaction Rating field to Columns.
• Drag the Employee Count measure to Values.
VI) Create a horizontal bar chart to show the attrition count for each
Education field Education field wise
Attrition – drag education field to rows, sum attrition count to col,
Step1: Horizontal bar chart It's called the Clustered Bar Chart or Stacked Bar Chart in the
visualizationpane
Choose stacked bar chart and set y axis is education filed and x axis is attrition count.
vii) Create multiple donut chart to show the Attrition Rate by Gender for
different Age group. Choose donut chart and drag and drop legend as gender
and value as attrition rate.
1. Select the Donut Chart from the Visualizations pane.
2. Create separate Donut Charts for different age groups.
• For each chart, filter the dataset based on age group (using the Age Group field created earlier).
3. Drag the Gender field to Legend.
4. Drag the Attrition Rate measure to Values.
5. Repeat for each age group, ensuring each donut chart represents a different age group with
genderbreakdown
Note:
• Use Filters to dynamically adjust visuals where necessary (e.g., filter by Age Group or
EducationField).