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
TomLU123
Helper III
Helper III

Convert the survey Data in to visualization

Hi Experts, 

 

I want to visualize the data from an online survey. The row data collected from the survey is in the format as below. There are three multiple choice questions. 

RecruiterQuestion 1Question 2Question 3
AHighly Satisfactory Unsatisfactory Satisfactory 
BHighly Satisfactory Partially satisfactory Satisfactory 
CBeyond Satisfactory Satisfactory Unsatisfactory 

I wish to create a visualization to show the overall count. Is it possible to create a new table and convert the data into the following format?

AnswersQuestionRecruiter
Highly Satisfactory 1A
Highly Satisfactory 1B
Beyond Satisfactory 1C
Unsatisfactory 2A
Partially satisfactory 2B
Satisfactory 2C
Satisfactory 3A
Satisfactory 3B
Unsatisfactory 3C

 

Many thanks!

1 ACCEPTED SOLUTION
RahulYadav
Resolver II
Resolver II

Hi @TomLU123,

You can create new table using below DAX Formula for getting the desired results.

 

New Recruiter = union(SELECTCOLUMNS(Recruiter,"Answer",Recruiter[Question 1],"Question",1,"Recruiter",Recruiter[Recruiter]),
    SELECTCOLUMNS(Recruiter,"Answer",Recruiter[Question 2],"Question",2,"Recruiter",Recruiter[Recruiter] ),
     SELECTCOLUMNS(Recruiter,"Answer",Recruiter[Question 3],"Question",3,"Recruiter",Recruiter[Recruiter] ))

2018-03-19_12-43-35.jpg

 

Thanks,

Rahul

View solution in original post

1 REPLY 1
RahulYadav
Resolver II
Resolver II

Hi @TomLU123,

You can create new table using below DAX Formula for getting the desired results.

 

New Recruiter = union(SELECTCOLUMNS(Recruiter,"Answer",Recruiter[Question 1],"Question",1,"Recruiter",Recruiter[Recruiter]),
    SELECTCOLUMNS(Recruiter,"Answer",Recruiter[Question 2],"Question",2,"Recruiter",Recruiter[Recruiter] ),
     SELECTCOLUMNS(Recruiter,"Answer",Recruiter[Question 3],"Question",3,"Recruiter",Recruiter[Recruiter] ))

2018-03-19_12-43-35.jpg

 

Thanks,

Rahul

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.