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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.