The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi, I have survey result with text values - one question and answer per column. Now I would like to calculate the percentage of each text value in a column in Power BI. Please let me know how to get about. Thanks in advance!
@Anonymous Please post some sample test data and expected output which will help to understand in detail and also to provide an accurate solution.
Proud to be a PBI Community Champion
Thanks in advance @PattemManohar 🙂
ID | Q1a | Q1b | Q1c | Q2a | Q2b | Q2c |
1 | Agree | Agree | Neither agree nor disagree | Often | Often | Sometimes |
2 | Agree | Agree strongly | Agree strongly | Always | Always | Often |
3 | Agree | Agree | Neither agree nor disagree | Often | Often | Rarely |
4 | Neither agree nor disagree | Agree | Agree | Always | Often | |
5 | Agree | Agree | Agree strongly | Often | Often | Never |
6 | Disagree | Disagree strongly | Disagree | Often | Sometimes | |
7 | Neither agree nor disagree | Agree strongly | Agree | Often | Often | Rarely |
8 | Agree | Agree | Agree | Often | Often | Never |
9 | Agree | Agree strongly | Agree strongly | Always | Always | Often |
10 | Agree | Agree | Agree | Always | Rarely | Sometimes |
11 | Agree | Agree | Agree | Sometimes | Often | |
12 | Agree | Agree | Agree | Always | Often | Often |
13 | Agree strongly | Agree | Agree | Always | Sometimes | Never |
14 | Agree | Agree | Agree | Always | Sometimes | Often |
15 | Agree | Agree | Agree | Always | Sometimes | Never |
16 | Agree | Agree strongly | Agree strongly | Always | Sometimes | Sometimes |
17 | Agree | Agree | Agree | Often | ||
18 | Agree | Agree | Agree | Often | Sometimes | Never |
19 | Agree | Agree | Agree | Often | Rarely | Never |
20 | Agree | Agree | Agree | Often | Often | Sometimes |
21 | Agree | Agree | Neither agree nor disagree | Sometimes | Often | Never |
22 | Agree | Agree strongly | Agree | Often | Sometimes | Rarely |
23 | Agree | Agree strongly | Agree | Often | Often | Often |
24 | Agree | Agree strongly | Agree | Often | Often | Never |
25 | Agree | Agree | Agree | Always | ||
26 | Neither agree nor disagree | Neither agree nor disagree | Agree | Always | Often | Always |
27 | Agree | Agree | Agree | Often | Often | Often |
28 | Agree strongly | Agree | Agree | Always | Always | Never |
@Anonymous you need to unpivot your data. In Power Query, select ID column, right click and then "unpivot other columns", it will get you survey answeres in "value" column for all the question. From this table, it is pretty easy to calculate the % of each answer.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Anonymous so final result you are looking for is how much each answr have like
agree 10%
often 20%
rarely 30%
..... and so on...
correct?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Anonymous it is easy from here
in table visual, drop "varde" column on table visual twice, and on 2nd varde column, chooise aggregation to "count" and in new quick measure select "% of grand total" as show in image below, you can also achieve this by DAX but this is quicker. Hope it will get your started.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi again @parry2k :-), now it looks like this but we lost which questions the answers are to - Q1a, Q1b etc. Thanks in advance!
@Anonymous you can add "attribute" in the table visual and you will get the question.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Dear @parry2k , it looks great. Would you please advice me also how I can show that for example Q1a and Q1b and Q1c are part of one overall question? Thanks again in advance 🙂
@Anonymous Please try to group your attributes as below and use the groups in the Table Visual
Proud to be a PBI Community Champion
@Anonymous Add other fields as well to the visual.
Proud to be a PBI Community Champion
Hi again @parry2k , I would like the attributes to look like this. Thanks again 🙂
@Anonymous Hello !! This is PattemManohar.... I think you are responding to me but tagging to parry2k.
Anyway, is this you are trying to achieve...
Table Visual
Matrix Visual
Proud to be a PBI Community Champion
@PattemManohar yes the bottom picture is exactly what I am tring to achieve 🙂 . Thanks in advance
@Anonymous Ok, then create a Matrix visual and use the "Attribute (Groups)" (That you have grouped as Q1 and Q2), Attribute and the Response fields.
Proud to be a PBI Community Champion
@Anonymous Please click "expand all down one level in hierarchy" Also, if you need responses as well in the matrix then add value to the visual (Response)
Proud to be a PBI Community Champion
@PattemManohar we are almost there but I would like each subquestion to add up to 100%. Now it all adds up to 100%, see below