Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Last_Resort_22
Regular Visitor

How to show count of completed surveys using Unpivoted Table

I have a matrix that references an unpivoted table containing survey information. I created an attribute alias that allows me to rename and use specific questions from the survey and use them as a slicer which also allows me to create a dynamic average total that changes depending on which attributes/questions matter to them.
I want to display the count of reviews given for each company but I'm having trouble getting it to just appear one time in the matrix. I dont want a row for each question. asked and I don't want to group the review count into the average measure because I don't want it to affect their score. Any tips would be appreciated. Thanks

Last_Resort_22_1-1756930908727.png

 

 

1 ACCEPTED SOLUTION
v-pnaroju-msft
Community Support
Community Support

Thankyou, @Ashish_Mathur@Shahid12523 for your responses.

Hi Last_Resort_22,

We appreciate your inquiry submitted through the Microsoft Fabric Community Forum.

Based on my understanding of the issue, please find attached a screenshot and a sample PBIX file that may help resolve the problem:

vpnarojumsft_0-1756961019004.png
We hope the information provided is helpful. If you have any further queries, please feel free to contact the Microsoft Fabric community.

Thank you.

View solution in original post

3 REPLIES 3
v-pnaroju-msft
Community Support
Community Support

Thankyou, @Ashish_Mathur@Shahid12523 for your responses.

Hi Last_Resort_22,

We appreciate your inquiry submitted through the Microsoft Fabric Community Forum.

Based on my understanding of the issue, please find attached a screenshot and a sample PBIX file that may help resolve the problem:

vpnarojumsft_0-1756961019004.png
We hope the information provided is helpful. If you have any further queries, please feel free to contact the Microsoft Fabric community.

Thank you.

Shahid12523
Community Champion
Community Champion

To show the count of completed surveys just once per company in a matrix with unpivoted data:


CompletedSurveyCount =
CALCULATE(
DISTINCTCOUNT(SurveyTable[SurveyID]),
REMOVEFILTERS(SurveyTable[QuestionAlias])
)


This avoids repeating the count per question and keeps it separate from your average score logic.

Shahed Shaikh
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with and show the expected result.  Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors