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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Aimeeclaird
Helper IV
Helper IV

Clustered Column chart that shows % of row total by x-axis value

Hi, I have some text data from a survey. In a matrix I can show the values correctly but I want to visual the same in a chart. 

 

Aimeeclaird_0-1629447698358.png

 

I've found similar threads but all solutions are based on sum of the value however my data is all text. 

 

Help please!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Aimeeclaird,

 

Based on the information you provided, I made a simple sample, you can try to create a metric like this:

Measure =

var _re=COUNT('Table'[Response])

var _tot=CALCULATE(COUNT('Table'[Response]),ALLEXCEPT('Table','Table'[Job Role]))

return DIVIDE(_re,_tot)

 

vcaitlynmstf_0-1629711356589.png

 

Then put this measure in the matrix and turn it to column chart. Adjust the format according to your needs, then you can get the chart below.

vcaitlynmstf_1-1629711356593.png

 

vcaitlynmstf_2-1629711356600.png

 

An attachment for your reference

 

Hope it helps,

 

Caitlyn Yan

 

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

5 REPLIES 5
Anonymous
Not applicable

Hi @Aimeeclaird,

 

Based on the information you provided, I made a simple sample, you can try to create a metric like this:

Measure =

var _re=COUNT('Table'[Response])

var _tot=CALCULATE(COUNT('Table'[Response]),ALLEXCEPT('Table','Table'[Job Role]))

return DIVIDE(_re,_tot)

 

vcaitlynmstf_0-1629711356589.png

 

Then put this measure in the matrix and turn it to column chart. Adjust the format according to your needs, then you can get the chart below.

vcaitlynmstf_1-1629711356593.png

 

vcaitlynmstf_2-1629711356600.png

 

An attachment for your reference

 

Hope it helps,

 

Caitlyn Yan

 

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

Hi @Anonymous 

 

Thank you for this. It works! However I wondered if you could help me. Now that I have the % for the job role on the x-axis, is it possible to make it so if I filter the page with a slicer, the job role still totals 100%?

 

for example, 

here I have no filters and each job role on the X totals 100% using your measure which is great.

Aimeeclaird_0-1629795943998.png

 

If I then want to filter by Teachers from Primary schools only, I want the totals to still be 100%. (Currently it totals the % of Teachers that are from Primary schools). 

Aimeeclaird_1-1629796048560.png

 

 

Anonymous
Not applicable

Hi @Aimeeclaird,

 

 I made a simple sample, but it may not match your needs, would you mind providing your sample data without any confidential Information?

 

Thanks,

Caitlyn Yan

 

 

 

Thanks for your support on this @Anonymous 

 

Unfortunatly the data is confidential however I found an alternative solution (needed to get the report finished!) and used a stacked column chart instead. 

 

Aimeeclaird
Helper IV
Helper IV

I have just tried the following measure, however I am getting 100% for all 

 

Percentage by response 2 =
DIVIDE (
COUNT('Combined W/out Overall Trust'[ID]),
CALCULATE (
COUNT('Combined W/out Overall Trust'[ID]),
ALLEXCEPT('Combined W/out Overall Trust', 'Combined W/out Overall Trust'[Job Role])))

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.