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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

get dynamic value in a clustered column chart

Hi all,

Hope anybody can help me. I have a table with a demand, I tried many times but failed. the table look like this:

jasonz_1-1638848977649.png

 

I want to show the percentage value in a clustered column chart, but should be able to calculated based on reason and total production of selected dates, for example, if I have selected date from 2021.7.1-2021.7.3, it could callculate percentage A=(41.67+41.67)/(10000+10000+15000)= 0.00238, instead of percentage A=(41.67+41.67)/(10000+15000)=0.0069

jasonz_2-1638849383884.png

 Any assistance would be greatly and sincerely appreciated. 

 

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try to create a measure like below:

percentage = 
VAR TOTAL_ = CALCULATE(SUM('Table'[Production]),ALLSELECTED('Table'))
RETURN DIVIDE(SUM('Table'[Loss]),TOTAL_)

Vlianlmsft_0-1639019168837.png

 


Best Regards,
Liang
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-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try to create a measure like below:

percentage = 
VAR TOTAL_ = CALCULATE(SUM('Table'[Production]),ALLSELECTED('Table'))
RETURN DIVIDE(SUM('Table'[Loss]),TOTAL_)

Vlianlmsft_0-1639019168837.png

 


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

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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