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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to make a total 100% on Chart? (When Sum it)

Hello, 
 
This is going to be confusing, please bear with me. 
 
I am trying to get 100% when I sum of everything on my Tornado chart (all the Late + all the Ontime) wthout Other.  Right now, it will come up to 43.52%. That because I remove Other on filter which fill up the rest.   Please see below. 
 Capture1.PNG
 
 When I chnage my vlaues to "Show value as a Percetage of grad total" my ontime will bum up to 17.86% to balance. This will not match with my OTD guage which only show ontime stauts. 
Capture2.PNG
 
I am trying to get the sum of evrthing 100% without Other on my Tornado chart, but whatever ontime number should match OTD guage too. 
 
Anybody please help me how to do that? Is there anyway I can get the same number? May be chnaging the OTD gauge? 
 
More datails - 
Capture3.PNG

 

 

 

Percentage = DIVIDE(COUNT('Raw_Data'[OTD Status]),CALCULATE(COUNT('Raw_Data'[OTD Status]),ALL(Raw_Data)))

 

 

Please let me know if this does not make sense. Thank you so much

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

Not really sure if I understand your request but in your measure you are refering ALL so this will consider every line in your data model (on time, late and other) try to redo your measure to:

 

Percentage =
DIVIDE (
    COUNT ( 'Raw_Data'[OTD Status] ),
    CALCULATE (
        COUNT ( 'Raw_Data'[OTD Status] ),
        FILTER ( ALL ( Raw_Data ), NOT ( 'Raw_Data'[OTD Status] IN { "Other" } ) )
    )
)

 

Basically I'm picking up the all the values except for the Other and making the division based on that.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @Anonymous ,

 

Not really sure if I understand your request but in your measure you are refering ALL so this will consider every line in your data model (on time, late and other) try to redo your measure to:

 

Percentage =
DIVIDE (
    COUNT ( 'Raw_Data'[OTD Status] ),
    CALCULATE (
        COUNT ( 'Raw_Data'[OTD Status] ),
        FILTER ( ALL ( Raw_Data ), NOT ( 'Raw_Data'[OTD Status] IN { "Other" } ) )
    )
)

 

Basically I'm picking up the all the values except for the Other and making the division based on that.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Thank you so much. Actually this works well for me. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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