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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to calculate a percentage

I want to get the % for this visual, so that it says 100% (because it hit the target)

 

KA95_0-1652193215926.png

 

however, when I written a DAX function for it, I couldn't get the correct % 

 

"Target Percentage = COUNT(Company[CompanyName]) * 30 / 1000"

 

It comes up as 90% for some reason I'm not sure why. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , if 30 is traget then

 

COUNT(Company[CompanyName])/ 30

 

And mark it as % column

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

@Anonymous , if 30 is traget then

 

COUNT(Company[CompanyName])/ 30

 

And mark it as % column

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

Hi @amitchandak thank you very much that worked.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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