Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a dataset that has ticket numbers with multiple iterations for each ticket and each iteration has multiple stages.
Time duration in minutes is captured at each stage and each iteration.
I have a business rule saying if the ticket is stuck at any iteration for more than 24 hours (Including all stages) then its flagged as 'Non Compliance' and under 24 hours then 'Complaince'.
So in the below example ticket , there are 8 iterations and I have calculated the total number of minutes at each iteration using the measure SLA Minutes.
Created another measure SLA Result to check if that iteration is in Compliance or Non Complaince.
Iterations = Count of distinct Iterations
Solved! Go to Solution.
Is [SLA Result] a calculated column or a measure?
If it is a measure, then you need to work with Summarize functions. Let me know and I can help you here, but need more details in what you created.
Is [SLA Result] a calculated column or a measure?
If it is a measure, then you need to work with Summarize functions. Let me know and I can help you here, but need more details in what you created.
Yes SLA Result is a Measure.
Could you please Let me know how i can achive this? also let me know what details you need.
Should be something like the following...
Measure =
VAR TotalIterations = SUMX(Table, [Iterations])
VAR TotalIterationsNonCompliance = SUMX(SUMMARIZE(Table,TicketNumber,"NewMeasure",COUNTAX(Filter(Table, Minutes>=1400),Ticketnumber),[NewMeasure])
RETURN DIVIDE(TotalIterationsNonCompliance ,TotalIterations ,0)
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |