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

Calculating Percentage

Dears,

 

I am new in Power BI and I need to calculate percentage of "Open" status but I don't know how

bi.PNG

 

your help is highly appreciated

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

 

I think you can do it like this:

 

Create a measure: 

CountOpen = CALCULATE(COUNTA(Table1[Status]);Table1[Status] = "Open")

 and after that:

PercentageOpen = [Countopen] / COUNT(Table1[Status])

The last measure will give you the percentage of Open status'es, you need to format the last measure as percentage!

 

If you want to do the same for Closed you can do it the same way but replace "Open" by "Closed"

 

Let me know if this worked. 🙂

 

Regards,

L.Meijdam

View solution in original post

12 REPLIES 12
Anonymous
Not applicable

Hi @Anonymous,

 

I think you can do it like this:

 

Create a measure: 

CountOpen = CALCULATE(COUNTA(Table1[Status]);Table1[Status] = "Open")

 and after that:

PercentageOpen = [Countopen] / COUNT(Table1[Status])

The last measure will give you the percentage of Open status'es, you need to format the last measure as percentage!

 

If you want to do the same for Closed you can do it the same way but replace "Open" by "Closed"

 

Let me know if this worked. 🙂

 

Regards,

L.Meijdam

Anonymous
Not applicable

Hi L. Meijdam
 
I created the 1st measure as you described, but when I tried to create the Second one it gives me the message below:
 
The value for 'countopen' cannot be determined. Either 'countopen' doesn't exist, or there is no current row for a column named 'countopen
Anonymous
Not applicable

Hi @Anonymous,

 

What happens when you display the first measure in a card visual ? 

 

Best regards,

L.Meijdam

Anonymous
Not applicable

@Anonymous

 

This is what happensbi2.PNG

 

 

 

Anonymous
Not applicable

Hi @Anonymous,

 

- Are you sure you named your measure "CountOpen" ? it is case sensitive

- is "CountOpen" Formatted as a whole number ?

 

Best Regards,

L.Meijdam

Anonymous
Not applicable

Hi @Anonymous

 

Thank you brother, it's working now, but I need to be in percentage format

bi3.PNG

Anonymous
Not applicable

Hi @Anonymous,

 

You can select your measure and after that click on the button in the picture below:

Capture.PNG

 

Best Regards,

L.Meijdam

Anonymous
Not applicable

Hi @Anonymous

 

Thank you very much for your helpful replies. 

Anonymous
Not applicable

@Anonymous,

 

You're welcome, glad I could help 🙂

 

Best Regards,

L.Meijdam

Anonymous
Not applicable

actually, it's dimmed!

Anonymous
Not applicable

Hi @Anonymous

 

How to format it as a whole No.?

Anonymous
Not applicable

It's working and shows the No. of Open status

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.