Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi Team,
I am looking for some help to create a DAX formula for achieving the only True SLA percentage by customer wise.
I have tried multiple solutions it's not working. appreciate your help.
Find the sample content for your reference
Customer | Ticket ID | SLA |
A | 1456 | FALSE |
A | 1457 | TRUE |
A | 1458 | FALSE |
A | 1459 | FALSE |
B | 1460 | TRUE |
B | 1461 | TRUE |
B | 1462 | FALSE |
B | 1463 | FALSE |
C | 1464 | TRUE |
C | 1465 | TRUE |
C | 1466 | TRUE |
C | 1467 | FALSE |
Solved! Go to Solution.
@sivaksk147
Add the following measure to a table visual where you have your customers:
TRUE SLA % =
IF(
HASONEVALUE(Table12[Customer]),
DIVIDE(
CALCULATE( COUNTROWS(Table12), Table12[SLA] = TRUE() ),
COUNTROWS(Table12)
)
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@sivaksk147
Add the following measure to a table visual where you have your customers:
TRUE SLA % =
IF(
HASONEVALUE(Table12[Customer]),
DIVIDE(
CALCULATE( COUNTROWS(Table12), Table12[SLA] = TRUE() ),
COUNTROWS(Table12)
)
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you very much for your support. the solution worked as I desired.
Hi @sivaksk147 !
Please post the desired output as well. How you want to calculate SLA percentage a business description.
Regards,
Hasham
User | Count |
---|---|
97 | |
85 | |
77 | |
66 | |
62 |
User | Count |
---|---|
110 | |
96 | |
95 | |
64 | |
57 |