Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I'm trying to produce the following, would anyone mind giving some inputs on how this can be done?
Dataset:
Name | Location | Pass? |
Carly | New York | PASSED |
Carsten | San Francisco | PASSED |
Emily | New York | NOT PASSED |
What I'd like to present in Power BI:
Location | Pass % of location |
New York | 50% |
San Francisco | 100% |
Solved! Go to Solution.
Hi,
Create a new measure:
Pass % of location =
VAR Passed =
CALCULATE(
COUNTROWS( 'Table' ),
'Table'[Pass?] = "PASSED"
)
RETURN
DIVIDE(
Passed,
COUNTROWS( 'Table' )
)
which can then be placed in, for example, a Table Visual, alongside the Location field.
Regards
Hi,
Create a new measure:
Pass % of location =
VAR Passed =
CALCULATE(
COUNTROWS( 'Table' ),
'Table'[Pass?] = "PASSED"
)
RETURN
DIVIDE(
Passed,
COUNTROWS( 'Table' )
)
which can then be placed in, for example, a Table Visual, alongside the Location field.
Regards
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
104 | |
98 | |
97 | |
40 | |
38 |
User | Count |
---|---|
151 | |
122 | |
78 | |
73 | |
67 |