Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I have built a clustered column chart for the data below:
The state acts as a filter for the chart. X-Axis is category and y-axis is Value. The legend is Category. Please see image below:
I want to show % Value in this chart (instead of value).
% Value = (Sum of Value in category for the given data source)/(Sum of values across categories for the given data source)
Basically I want to show percentages in a clustered column chart based on the values in legend. I don't want to hard code the percentage values since I want to use this feature irrespective of the state filter at the top.
Can someone advice how to perform this?
Thanks in advance,
Chirag
Solved! Go to Solution.
Hi @Chirag_Sidana,
Please new a measure:
percentage = SUM ( TB[Value] ) / CALCULATE ( SUM ( TB[Value] ), ALLEXCEPT ( TB, TB[State], TB[Data Source] ) )
Best regards,
Yuliana Gu
Hi @Chirag_Sidana,
Please new a measure:
percentage = SUM ( TB[Value] ) / CALCULATE ( SUM ( TB[Value] ), ALLEXCEPT ( TB, TB[State], TB[Data Source] ) )
Best regards,
Yuliana Gu
Thank you! This is really helpful.
Regards,
Chirag