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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PBIBeginner2022
Helper III
Helper III

Calculate a percentage in a column

Hi everyone,

 

I need to create a mesure which calculate a percentage in my column. I have 6 differents values in a column of 300 000 rows.

I need to calculate in percentage the number of rows contain "On time" divided by the number total of rows.

 

PBIBeginner2022_0-1658224377331.png

 

 

Thanks in advance for any help.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@PBIBeginner2022 , Try a measure like

 


divide(Countrows(Filter(Table, Table[column] = "On Time")), Countrows(Table))

 

or

 

divide(Countrows(Filter(Table, Table[column] = "On Time")), Countrows(allselected(Table)))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@PBIBeginner2022 , Try a measure like

 


divide(Countrows(Filter(Table, Table[column] = "On Time")), Countrows(Table))

 

or

 

divide(Countrows(Filter(Table, Table[column] = "On Time")), Countrows(allselected(Table)))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors