Forum Discussion
danpowerbi
1 year agoNew 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 ...
- Anonymous1 year ago
Hi danpowerbi
Please refer to the following solution.
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
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.
Anonymous
1 year agoNot applicable
Hi danpowerbi
Please refer to the following solution.
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
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.