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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
mglomb
Frequent Visitor

Getting the % of specific values within a Column

I have a database, where one of the columns shows scores between 0-10.

While creating a dashboard with graphics, I want to show what % of that column represents the scores between 8-10.

Ex. If I have 10 rows, and 8 of them are scores 8-9-10, I want the final product to be 80%.

How do I do that? I've tried several methods and I was not able to.

Thanks in advance for the support.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mglomb , try a measure like

 

divide(countrows(filter(table, table[score]>= 8 && table[score]<=10)),coutrows())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@mglomb , try a measure like

 

divide(countrows(filter(table, table[score]>= 8 && table[score]<=10)),coutrows())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, I've checked and it didn't work. Maybe I'm doing something wrong, so let me add pictures to help you to help me 🙂

 

Up to the expression of <=10, it's working fine, but trying to add the countrows after will give the error message you can see here. Thoughts?

 

Screenshot 2021-03-23 153159.jpg

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.