The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Below is my dataset
Product | Category A | Category B | Category C | Category D | Category E | Category F | Category G | Category H |
Java | Pass | Pass | Fail | Fail | Fail | Pass | Pass | Pass |
Honda | Fail | Fail | Fail | Pass | Pass | Fail | Fail | Fail |
Amaze | Pass | Pass | Pass | Pass | Pass | Pass | Pass | Pass |
Fiat | Fail | Fail | Fail | Fail | Fail | Fail | Fail | Fail |
Duno | Pass | Pass | Pass | Pass | Pass | Fail | Fail | Fail |
Sedan | Pass | Fail | Pass | Fail | Fail | Fail | Fail | Fail |
I want to add a column at the end to count the total number of pass
Product | Category A | Category B | Category C | Category D | Category E | Category F | Category G | Category H | Count of Pass |
Java | Pass | Pass | Fail | Fail | Fail | Pass | Pass | Pass | 5 |
Honda | Fail | Fail | Fail | Pass | Pass | Fail | Fail | Fail | 2 |
Amaze | Pass | Pass | Pass | Pass | Pass | Pass | Pass | Pass | 8 |
Fiat | Fail | Fail | Fail | Fail | Fail | Fail | Fail | Fail | 0 |
Duno | Pass | Pass | Pass | Pass | Pass | Fail | Fail | Fail | 5 |
Sedan | Pass | Fail | Pass | Fail | Fail | Fail | Fail | Fail | 2 |
Solved! Go to Solution.
Please refer to attached sample file with the proposed solution
Measure =
IF (
ISINSCOPE ( 'Table'[Category] ),
SELECTEDVALUE ( 'Table'[Status] ),
COUNTROWS (
FILTER (
'Table',
'Table'[Status] = "Pass"
)
) + 0
)
Please refer to attached sample file with the proposed solution
Measure =
IF (
ISINSCOPE ( 'Table'[Category] ),
SELECTEDVALUE ( 'Table'[Status] ),
COUNTROWS (
FILTER (
'Table',
'Table'[Status] = "Pass"
)
) + 0
)
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |