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
Ratika
New Member

Summarize Count of "Agree" "Disagree" "Neutral" in multiple column

Hi All -

I am working on feedback response data and have data in below fromat.

 

1. Original Data Format

Question 1Question 2Question 3
AgreeStrongly DisagreeAgree
DisagreeStrongly AgreeStrongly Disagree
NeutralNeutralAgree
Strongly AgreeNeutralStrongly Disagree
Strongly DisagreeAgreeNeutral

 

I want to summarize the above data to show overall likelihood matrix as well as summary data for each question

Something like this:

 

 2. Achive data in format

 AgreeDisagreeNeutralStrongly AgreeStrongly Disagree
Question 111111 
Question 210211 
Question 320102 

 

I can build a visual if I could summarize my original data into data shown above :

Final Visual.png

Any input will be greatly appreciated.

Thanks in advance

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey,

 

first I transformed the dataset a little using Power Query - not DAX.

First I inserted a column that I called "ResponseID", after that the table looked like this:

image.png

The 2nd step is unpivoting the columns Question 1, Questions 2, and Question 3, and renamed the columns, after that the table will look like this:

image.png

After that it's possible to use the Matrix visual with Questions on rows, Answers on columns, using the ResponseID with the Aggregate formula Count:

image.png

Hopefully this approach provides you with some ideas, to tackle your challenge.

This article provide more information on how to analyze survey data: https://www.daxpatterns.com/survey/

 

Regards,

Tom

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

1 REPLY 1
TomMartens
Super User
Super User

Hey,

 

first I transformed the dataset a little using Power Query - not DAX.

First I inserted a column that I called "ResponseID", after that the table looked like this:

image.png

The 2nd step is unpivoting the columns Question 1, Questions 2, and Question 3, and renamed the columns, after that the table will look like this:

image.png

After that it's possible to use the Matrix visual with Questions on rows, Answers on columns, using the ResponseID with the Aggregate formula Count:

image.png

Hopefully this approach provides you with some ideas, to tackle your challenge.

This article provide more information on how to analyze survey data: https://www.daxpatterns.com/survey/

 

Regards,

Tom

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.