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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.