Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
AmberGardner
Frequent Visitor

Percentage of cases

I have been searching on the forums and am really struggling to calculate the percentage of my values. So i have a table which has the case code type and then the count of the case references. This count column is my case reference field and then it has the "count (distinct)" option applied on the visualizations tab. 

AmberGardner_0-1721643080799.png 

AmberGardner_1-1721643102117.png

 

I need to know what the percentage is for this count. I have gone through other forums and i really cant get a handle on this. I struggle with numbers and i am really new to PowerBI so please bear with me. 

1 ACCEPTED SOLUTION
BITomS
Resolver IV
Resolver IV

Hi @AmberGardner , in your screenshot, there is an option for 'Show value as'. If you navigate here, you have the option to show as %.

View solution in original post

4 REPLIES 4
bhanu_gautam
Super User
Super User

@AmberGardner , First create a measure using All function to control filter context

 

TotalCaseFullRef = CALCULATE(SUM('Case Details'[CaseFullRef]), ALL('Case Details'))
 
Then one more 
DAXPercentageOfTotal =
DIVIDE(
    SUM('Case Details'[CaseFullRef]),
    [TotalCaseFullRef],
    0
)
 
Power BI file attached with solution



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Unfortunately this doesnt work for me as the case full ref is not a number. This is why i have had to do a distinct count as this field includes numbers and letters to create a unique reference for each case. I have accepted an alternative solution for this query, but thank you for your support

BITomS
Resolver IV
Resolver IV

Hi @AmberGardner , in your screenshot, there is an option for 'Show value as'. If you navigate here, you have the option to show as %.

Thank you so much! It is definitely the easiest solutions that seem to be impossible to find! 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.