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

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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