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
Anonymous
Not applicable

Get percentage from survey data with text values

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!

40 REPLIES 40
PattemManohar
Community Champion
Community Champion

@Anonymous  Please post some sample test data and expected output which will help to understand in detail and also to provide an accurate solution.





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

Thanks in advance @PattemManohar  🙂

IDQ1aQ1bQ1cQ2aQ2bQ2c
1AgreeAgreeNeither agree nor disagreeOftenOftenSometimes
2AgreeAgree stronglyAgree stronglyAlwaysAlwaysOften
3AgreeAgreeNeither agree nor disagreeOftenOftenRarely
4Neither agree nor disagreeAgreeAgreeAlwaysOften 
5AgreeAgreeAgree stronglyOftenOftenNever
6DisagreeDisagree stronglyDisagreeOftenSometimes
7Neither agree nor disagreeAgree stronglyAgreeOftenOftenRarely
8AgreeAgreeAgreeOftenOftenNever
9AgreeAgree stronglyAgree stronglyAlwaysAlwaysOften
10AgreeAgreeAgreeAlwaysRarelySometimes
11AgreeAgreeAgreeSometimesOften
12AgreeAgreeAgreeAlwaysOftenOften
13Agree stronglyAgreeAgreeAlwaysSometimesNever
14AgreeAgreeAgreeAlwaysSometimesOften
15AgreeAgreeAgreeAlwaysSometimesNever
16AgreeAgree stronglyAgree stronglyAlwaysSometimesSometimes
17AgreeAgreeAgreeOften  
18AgreeAgreeAgreeOftenSometimesNever
19AgreeAgreeAgreeOftenRarelyNever
20AgreeAgreeAgreeOftenOftenSometimes
21AgreeAgreeNeither agree nor disagreeSometimesOftenNever
22AgreeAgree stronglyAgreeOftenSometimesRarely
23AgreeAgree stronglyAgreeOftenOftenOften
24AgreeAgree stronglyAgreeOftenOftenNever
25AgreeAgreeAgreeAlways  
26Neither agree nor disagreeNeither agree nor disagreeAgreeAlwaysOftenAlways
27AgreeAgreeAgreeOftenOftenOften
28Agree stronglyAgreeAgreeAlwaysAlwaysNever

@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
Not applicable

 

Hi again, this how it looks now @parry2k . What do I do now?

This is how it looks nowThis is how it looks now

@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
Not applicable

Exactly @parry2k 🙂

@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.

 

image.png



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
Not applicable

Hi again @parry2k  :-), now it looks like this but we lost which questions the answers are to - Q1a, Q1b etc. Thanks in advance!Capture1.JPG

@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.

Anonymous
Not applicable

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

 

image.pngimage.pngimage.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

 

 

Dear @parry2k ,  how do make the table look at yours? This is how mine turned 😮

Capture2.JPG

@Anonymous  Add other fields as well to the visual.

 

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

Hi again @parry2k , I would like the attributes to look like this. Thanks again 🙂

Capture3.JPG

@Anonymous  Hello !! This is PattemManohar.... I think you are responding to me  but tagging to parry2k.  Smiley Indifferent

 

Anyway, is this you are trying to achieve...

 

Table VisualTable VisualMatrix VisualMatrix Visual





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

@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.

 

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

 

 

 

Hi again, @PattemManohar , this is what I get;

 

Capture4.JPG

@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)

 

image.pngimage.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

 

@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

Capture5.JPG

 

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.

Top Solution Authors