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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
danpowerbi
New Member

Availability % Measure

Hello, 

Please be kind, i think this may be quite obvious but it is late and i am not seeing the solution.

I am looking to display a measure in a card with shows the availability % for buses per day. I can get the figures i need via the pivot but cant work out how to get the total availability % displayed in my card.

 

My data:


I have my dates, the buses that should be running on those dates and my column telling me if they actually ran or not. For my example shown in the matrix below i am looking to display 2 cards, 1 showing the total availability % of running buses for that date range (75%) and the total unavailability % of buses (25%).

Screenshot 2025-02-20 at 22.50.42.pngScreenshot 2025-02-20 at 22.49.23.png

 




 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @danpowerbi  

Please refer to the following solution.

vxinruzhumsft_2-1740102665582.png

 

You can create two measure

Yes =
VAR a =
    COUNTROWS ( FILTER ( 'Table', [Running] = "Yes" ) )
VAR b =
    COUNTROWS ( 'Table' )
RETURN
    DIVIDE ( a, b )
No =
VAR a =
    COUNTROWS ( FILTER ( 'Table', [Running] = "No" ) )
VAR b =
    COUNTROWS ( 'Table' )
RETURN
    DIVIDE ( a, b )

Then put them to the card visual.

Output 

vxinruzhumsft_0-1740102616823.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
danpowerbi
New Member

@Anonymous Thank you!

Anonymous
Not applicable

Hi @danpowerbi  

Please refer to the following solution.

vxinruzhumsft_2-1740102665582.png

 

You can create two measure

Yes =
VAR a =
    COUNTROWS ( FILTER ( 'Table', [Running] = "Yes" ) )
VAR b =
    COUNTROWS ( 'Table' )
RETURN
    DIVIDE ( a, b )
No =
VAR a =
    COUNTROWS ( FILTER ( 'Table', [Running] = "No" ) )
VAR b =
    COUNTROWS ( 'Table' )
RETURN
    DIVIDE ( a, b )

Then put them to the card visual.

Output 

vxinruzhumsft_0-1740102616823.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.