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

Waffle chart not considering the overall total but the count of values in the top most category

I have got multiple categories and the respective counts in a column,I need the waffle chart to display how much is contributed by each category.

For example,

Total = 15

A - 5

B - 4

C- 1

I should be able to display A-5/15*100,B- 4/15*100,C-1/15*100,but what I am getting here is 5/5,4/5/1/5,i.e., waffle chart automatically picks up the topmost category as the denominator and applies through out ,which is not correct.

How can I overcome this?

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on my research, I created data to reproduce your scenario.

a1.png

 

Then you may create a measure as follows.

 

Percentage = 
DIVIDE(
    SUM('Table'[Counts]),
    CALCULATE(
        SUM('Table'[Counts]),
        ALLSELECTED('Table')
    )
)*100

 

 

Finally, you can put the measure to 'Values' area in 'Fields' ribbon. Here is the result.

a3.PNG

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on my research, I created data to reproduce your scenario.

a1.png

 

Then you may create a measure as follows.

 

Percentage = 
DIVIDE(
    SUM('Table'[Counts]),
    CALCULATE(
        SUM('Table'[Counts]),
        ALLSELECTED('Table')
    )
)*100

 

 

Finally, you can put the measure to 'Values' area in 'Fields' ribbon. Here is the result.

a3.PNG

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I can't thank you enough for this solution!! You have no idea how much time I spent trying to figure this out. Thnak you so much

Hi, @Anonymous 

 

If you take the answer of someone, please mark it as the solution to help the other members who have same problems find it more quickly. If not, let me know and I'll try to help you further. Thanks.

 

Best Regards

Allan

 

 

 

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.