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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ASuhaji
Frequent Visitor

100% Stacked Column Chart with measure and parameter field

Hello Everyone,

 

I need help because I can't figure out the solution.

 

I have a stacked column chart and I would like to transform it to a 100% stacked column chart using measure.
This is the simple measure that works:

 

# Sales = SUM('Data'[Products sold])
% Sales = DIVIDE([# Sales], CALCULATE([# Sales], ALL('Data'[Posting Type])))

[Posting Type] is a field which I use as a legend among others because it is a selected value from a field parameter.
 

ASuhaji_0-1685726055167.png

 

So the measure above perfectly works if the "Posting Type" is selected but if I change it to another value, the calculation will understandably not be good (the 'Data'[Posting Type] expression should change dynamically).

 

Could you help me find a solution to this problem?

 

Thank you in advance.

 

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @ASuhaji 

 

Can you provide some sample data? How does "Posting Type"/"Procurement Type"/"Partnership Type" show in the underlying data table? Are they from the same table? And what is the current result when you select other values except "Posting Type"? 

 

Best Regards,
Community Support Team _ Jing

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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