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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Small Multiple - % Total

Hi everyone,

 

I've recently been creating a small multiple bar chart, however within each small multiple, I would like to be able to add a tooltip to show the bar value as a % of the small multiple total, rather than the grand total across all 4 of the below charts. I've added a dummy mock up below to demonstrate what my set up is similar to but for example, I'm looking to show what the value of the CAT A bar as a % of the total within the A small multiple, so it's equal to 10% in this instance. 

 

Any thoughts would be much appreciated on how to calculate this measure please! Thanks

 

 

dax_discoverer_0-1635241279509.png

 

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

Hi, @Anonymous 

 

Try to create a measure like this:

Measure = 
DIVIDE(MAX('Table'[Value]),CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Attribute])))

 

Result:

vangzhengmsft_0-1635483594576.png

Please refer to the attachment below for details. Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

1 REPLY 1
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 

 

Try to create a measure like this:

Measure = 
DIVIDE(MAX('Table'[Value]),CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Attribute])))

 

Result:

vangzhengmsft_0-1635483594576.png

Please refer to the attachment below for details. Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors