Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello
I have multiple questions on a sharepoint list that can be a PASS or FAIL and need to show which of these questions has the highest number of 'FAIL's
E.G
Source data:
| Week | Question 1 | Question 2 | Question 3 | Question 4 |
| 1 | PASS | PASS | PASS | PASS |
| 1 | FAIL | PASS | PASS | PASS |
| 1 | PASS | PASS | FAIL | PASS |
| 1 | PASS | PASS | FAIL | PASS |
| 1 | PASS | PASS | FAIL | PASS |
| 1 | PASS | PASS | PASS | PASS |
| 1 | PASS | PASS | PASS | PASS |
| 1 | PASS | PASS | PASS | PASS |
| 1 | PASS | PASS | PASS | FAIL |
| 1 | PASS | PASS | PASS | FAIL |
| 1 | PASS | PASS | PASS | PASS |
The ideal report visual would be:
| Question | Fail Count |
| Question 3 | 3 |
| Question 4 | 2 |
| Question 1 | 1 |
| Question 2 | 0 |
Can anybody help as to how I can build this table?
Thanks
Solved! Go to Solution.
In Power Query select the week column and then choose Unpivot Other Columns from the Transform ribbon.
You can then create a measure like
Fail Count = CALCULATE( COUNTROWS( 'Table' ), 'Table'[Value] = "FAIL" )
HI @wereleopard ,
First lets do some transformation in power query:
Now your data should look like this:
Now your can rename this columns for what you want and close and apply.
Fail Count =
CALCULATE(
COUNTROWS('YourTableName'),
'YourTableName'[Value] = "FAIL"
)
Step 4: Show items with no data:
I hope this satisfies your need, if yes, please mark it as solution and give a Kudo
In Power Query select the week column and then choose Unpivot Other Columns from the Transform ribbon.
You can then create a measure like
Fail Count = CALCULATE( COUNTROWS( 'Table' ), 'Table'[Value] = "FAIL" )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!