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.
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" )