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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Daeglsy
New Member

How to use 100% stacked column chart on categorical data?

Hi all,

I got a survey data set that I'd like to visuallise with a 100% stacked bar chart. However I can't seem to figure out how to visualise it on a 100% stacked bar charts. The data set is something like this:

QuestionA: T, T, F, F, NA
QuestionB: F, F, NA, T, F
QuestionC: NA, NA, F, T, T

I wanted to put my questions as x axis, and percentage as y axis on a 100% stacked bar chart. Do I need to write something on DAX? Or are there anything that I've completely overlooked?

Thank you.
2 REPLIES 2
Anonymous
Not applicable

I have created a table like this : 

1.png

And then used different measures to count the percentages of the TRUE or FALSE or NA for each question: 

 

CountTrueQ1 = CALCULATE(COUNTROWS(FILTER('Q&A','Q&A'[Q1]="T")))/COUNTROWS('Q&A')*100

 

CountFalseQ1 = CALCULATE(COUNTROWS(FILTER('Q&A','Q&A'[Q1]="F")))/COUNTROWS('Q&A')*100

 

CountNAQ1 = CALCULATE(COUNTROWS(FILTER('Q&A','Q&A'[Q1]="NA")))/COUNTROWS('Q&A')*100

 

 

But I couldn't plot in the 100% stacked column chart, so now it is a challenge for me too Smiley Very Happy

 

I hope others can help 

 

v-yuta-msft
Community Support
Community Support

Hi Daeglsy,

 

Could you share some sample data for further analysis?

 

Regards,

Jimmy Tao

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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