Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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" )
User | Count |
---|---|
98 | |
76 | |
74 | |
49 | |
26 |