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
enavesca
Frequent Visitor

Multiple question survey

I have been trying to figure out this simple problem, but I have had no success with that. Any help would be appreciated.

 

I have a survey with multiple questions (Q1, Q2, Q3, Q4, ...). For each question, the respondent can answer with Agree, Disagree, Strongly Agree, or Strongly Disagree. 

This is the Excel data

 

 Q1Q2Q3Q4Q5
Person 1disagreedisagreeagreeagreeagree
Person 2stronglyAgreeagreestronglyAgreestronglyAgreestronglyAgree
Person 3stronglyDisagreedisagreeagreestronglyAgreedisagree
Person 4agreeagreestronglyAgreestronglyAgreestronglyAgree
Person 5agreeagreeagreeagreeagree
Person 6stronglyAgreeagreeagreeagreeagree
Person 7agreedisagreeagreestronglyAgreeagree
Person 8agreedisagreedisagreeagreeagree

 

I need to calculate the percentage of each answer for each question and present the result below:

 Q1Q2Q3Q4Q5
agree50%50%63%50%63%
stronglyAgree25%0%25%50%25%
disagree13%50%13%0%13%
stronglyDisagree13%0%0%0%0%

------------------------------------------------------------------------------------

This is the data pivoted within Power Query (one column for question and another for answer)

 

enavesca_0-1709940201941.png

 

I created the following measure, but it is not working...

 

percentage answer =
    DIVIDE(
        CALCULATE(
            COUNTROWS(TABLE),
            ALLEXCEPT(TABLE, TABLE[field])
        ),
        CALCULATE(
            COUNTROWS(TABLE),
            ALL(TABLE)
        )
    )

 

This is a very common survey, but unfortunately, I am stuck on the calculation. Has anyone had this issue before?

 

Thanks a lot!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

No need for any DAX.

 

 

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

No need for any DAX.

 

 

Worked!

 

Thanks 🙂

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.