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
Anonymous
Not applicable

Getting two percentages out of a 100

Hi there,  have two card visuals that have a measure in each of them.

KA95_0-1670578272597.png

So both visuals represent the only two answers in a collum which can only be Yes or No. However, the %'s are out of a 100, so if yes is 20% then No should be 80%, however it's 125% for some strange reason. Here are the measure's for both visuals below:

Yes Visual:

 

A5 Yes % = CALCULATE(COUNT('C4 Data'[A5]), FILTER('C4 Data', 'C4 Data'[A5] = "Yes")) / 100

 

 

No Visual:

 

A5 No % = CALCULATE(COUNT('C4 Data'[A5]), FILTER('C4 Data', 'C4 Data'[A5] = "No")) / 100

 

 

Where am I going wrong and how do I fix this? Because if I put this in a pie chart, these are the correct %'s that I get which are not close to the measure values above

KA95_0-1670579040531.png

 

1 ACCEPTED SOLUTION
TomasAndersson
Solution Sage
Solution Sage

Right now you are dividing the number of Yes' and No's by 100, but you should divide it by the total count in the column to get a percentage.

 

Try instead:

A5 Yes % = CALCULATE(COUNT('C4 Data'[A5]), FILTER('C4 Data', 'C4 Data'[A5] = "Yes")) / COUNT('C4 Data'[A5])

Hope it works!

  

View solution in original post

2 REPLIES 2
TomasAndersson
Solution Sage
Solution Sage

Right now you are dividing the number of Yes' and No's by 100, but you should divide it by the total count in the column to get a percentage.

 

Try instead:

A5 Yes % = CALCULATE(COUNT('C4 Data'[A5]), FILTER('C4 Data', 'C4 Data'[A5] = "Yes")) / COUNT('C4 Data'[A5])

Hope it works!

  

Anonymous
Not applicable

Hi @TomasAndersson you're a star, looking at it I can't believe I missed that one, thank you very much!

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.