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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
HelloYanyan07
Frequent Visitor

How to use power BI to display multiple responses question for both filter and chart?

Hi everyone, 

I'm new to power bi. I work on survey data. There will be quite a lot of multiple responses data. It will be one option one column and use 0 and 1 to display value which 0 means not selected while 1 means selected.

for example, a question A is "which fruit do you like? " Option list will be 1. apple, 2, banana, 3 others. You can select more than one option for question A.

then data will be listed as below column A1 to indicate apple, A2 to indicate banana and A3 to indicate others.

Capture.JPG

so, in data, i'll have 3 columns for question A, 6 columns for question B and 10 columns for question C.

In power Bi, i'd like to use A and B as filter and draw bar chart for C as below.

Capture2.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

We tried to use Unpivot to achieve this function, however, it makes the whole file become slow, becuase we have 9000 rows of data, and actual multiple responses has 32 options x 25 options x 27 options.

Kindly advice any idea about how to achieve this function in more effective way.

 

Thank you for everyone.

 

2 ACCEPTED SOLUTIONS
v-angzheng-msft
Community Support
Community Support

Hi, @HelloYanyan07 

What does C1=1, C1=5, etc. mean in the picture above? Is it the total number of A and B equal to 1? Is the bar chart showing the percentage of the number of C1=1 in the A and B conditions, i.e., the maximum is C1=9?

Based on the structure of your data, the Unpivot comes easily to mind, would transpose work as well?

vangzhengmsft_0-1625043740678.png

 

Best Regards,
Community Support Team _ Zeon Zheng
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

yes, unpivot is workable, but the data is too huge after unpivot. 

C1=1 means this filter is to filter when C1=1. Same as C5=1.

 

Thank you for your reply, i found one article online and trying it. I'd like to share to you as well.

https://www.sqlbi.com/articles/creating-a-slicer-that-filters-multiple-columns-in-power-bi/

 

View solution in original post

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Hi, @HelloYanyan07 

What does C1=1, C1=5, etc. mean in the picture above? Is it the total number of A and B equal to 1? Is the bar chart showing the percentage of the number of C1=1 in the A and B conditions, i.e., the maximum is C1=9?

Based on the structure of your data, the Unpivot comes easily to mind, would transpose work as well?

vangzhengmsft_0-1625043740678.png

 

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

yes, unpivot is workable, but the data is too huge after unpivot. 

C1=1 means this filter is to filter when C1=1. Same as C5=1.

 

Thank you for your reply, i found one article online and trying it. I'd like to share to you as well.

https://www.sqlbi.com/articles/creating-a-slicer-that-filters-multiple-columns-in-power-bi/

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.