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.
I have a sample data as below.
TestDate | Status |
1/8/2019 | PASS |
1/8/2019 | PASS |
1/8/2019 | FAIL |
2/8/2019 | PASS |
2/8/2019 | FAIL |
I want to calculate the percentage of PASS percentage(Total Number of Pass cases/Total Number of Cases) and FAIL percentage (Total Number of Fail Cases/Total Number of Cases) status for each day. I tried as below but it's not giving me the expected results.
Blocked by date = Calculate ( countrows (TableName), (TableName[TestDate].[Date],[Total BLOCKED]) )
Here Total BLOCKED is the measure I created to filter the status.
Where am I going wrong here? How should I calculate the percentage of PASS and FAIL status for each day?
I'm not sure I understand what you need but try this:
1. Place Table1[TestDate] in the rows of a matrix visual and Table1[Status] in the columns
2. Create this measure (format as %) and place it in the visual
PercPASS = DIVIDE ( COUNT ( Table1[Status] ), CALCULATE ( COUNT ( Table1[Status] ), ALL ( TAble1[Status] ) ) )
User | Count |
---|---|
98 | |
76 | |
74 | |
49 | |
26 |