Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi
I have a Line & Stacked Column Chart that illustrates the Ontime/Overdue jobs for each Job Branch
I need to show the Percentage of 100% for each Branch.
When i tried to Show Value as Percent of grand total it shows the Branch Percentage for all the Branches.
This is the Column that i have added to formulate Ontime/Overdue
Tried a few DAX functions and none of them gave a the right results.
Appreciate the Help
Solved! Go to Solution.
@Shakeerm You may need to create a few measures for this. Here is a sample worked out - please create measures like this:
Total Count = COUNTROWS(OnTime)
OnTime Count = CALCULATE([Total Count], OnTime[Status]="ONTIME")
Overdue Count = CALCULATE([Total Count], OnTime[Status]="OVERDUE")
% OnTime = DIVIDE(OnTime[OnTime Count], [Total Count])
% Overdue = DIVIDE([Overdue Count], [Total Count])
Then set up the chart as shown in the picture below.
HI @Shakeerm
Just create a measure as below:
Measure =
DIVIDE (
CALCULATE ( COUNTA ( 'HR Performance Analysis Report'[Job No] ) ),
CALCULATE (
COUNTA ( 'HR Performance Analysis Report'[Job No] ),
ALLSELECTED ( 'HR Performance Analysis Report'[Overdue] )
)
)
Then drag this measure into Column values of the visual.
Regards,
Lin
@Shakeerm You may need to create a few measures for this. Here is a sample worked out - please create measures like this:
Total Count = COUNTROWS(OnTime)
OnTime Count = CALCULATE([Total Count], OnTime[Status]="ONTIME")
Overdue Count = CALCULATE([Total Count], OnTime[Status]="OVERDUE")
% OnTime = DIVIDE(OnTime[OnTime Count], [Total Count])
% Overdue = DIVIDE([Overdue Count], [Total Count])
Then set up the chart as shown in the picture below.
Try this measure:
Pencentage Values = COUNTA(Table[Overdue]) / CALCULATE(COUNTA(Table[Overdue]),ALL(Table[Overdue]))
Change the data type to pecentages and you should be good to go. It's going to mess with your axis though.
User | Count |
---|---|
113 | |
74 | |
57 | |
44 | |
39 |
User | Count |
---|---|
176 | |
125 | |
61 | |
60 | |
58 |