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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
WolfP
Regular Visitor

Calculate proportion of most favourable answer

I am newbie to Power BI and I have the results of a survey as follow:

 

IDQ1Q2Q3
ayesyessometimes
bnoyesyes
cyessometimes 
dyessometimesyes
esometimesnosometimes
fno sometimes
gno yes
hyessometimes 
iyesyesno
j yessometimes

 

I need to calculate the proportion of the most favourable answer for each question:

 

column = # of yes / # total number of answers

column = 5 / 9

 

So far I manage to use COUNT() and FILTER() separately to group and count the variable together, but I can not figure out the syntax to do it in a single measure.

 

I would appreciate any help

 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @WolfP 
Please refer to attached sample file with the proposed solution. Perhaps you want to see the numbers as well but not sure what exactly is the results that you're looking for.

1.png2.png

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @WolfP 
Please refer to attached sample file with the proposed solution. Perhaps you want to see the numbers as well but not sure what exactly is the results that you're looking for.

1.png2.png

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.