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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
kjartank
Helper II
Helper II

Percentages in a "Line and stacked column chart"

I am trying to build a chart that has a line that shows me the average as a line (works fine) and then I want the columns to show the percentage of people that have answered "Agree", for the individual quarters. When I choose to show it as a percentage, it is the percentage for the grand total, instead of each individual quarter.

 

Here is what it looks like at a glance and the data I am using.

 

Combined chart.pngDatastructure.png

 

So how do I get the columns to show only the percentage that agree?

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

Hi @kjartank,

 

In your scenario, you can create a measure like below:

 

Per = DIVIDE(CALCULATE(SUM(Table1[Attitude 100]),FILTER(Table1,'Table1'[Attitude]="Agree")),CALCULATE(SUM('Table1'[Attitude 100]),FILTER(ALL(Table1),'Table1'[Quarter]=MAX('Table1'[Quarter]) )))

 

q1.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
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

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @kjartank,

 

In your scenario, you can create a measure like below:

 

Per = DIVIDE(CALCULATE(SUM(Table1[Attitude 100]),FILTER(Table1,'Table1'[Attitude]="Agree")),CALCULATE(SUM('Table1'[Attitude 100]),FILTER(ALL(Table1),'Table1'[Quarter]=MAX('Table1'[Quarter]) )))

 

q1.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks a lot @v-qiuyu-msft

That works just fine! I was wondering how I am supposed to work in a basic calculation. So the percentage of "Agree", minus the Percentage of "Disagree". There are three different kinds of values, namely Agree, Neither, Disagree. I want to have a "net agree" bar, that is the percentage of the agree answers, minus the disagree. Wich is basically the difference between the two of them.

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors