Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
junny
New Member

Calculate service degradation for multiple tools

Hello,

 

I am facing an issue to calculate the total service degradation for an tool in case multiple tickets were logged in by multiple users.

 

refer table below, Ticket TT71020190507010, was created on 7th  & resolved on 10th, another ticket for the same tool TT71020190507011 was created on 8th & resolved on 9th. Here since the incident 7011 was created within the time frame when 7010 was active we should not include do duplicate entry and conly consider the time period of 7010 for dervice degradation time.

Also, for another tool Syndicate, TT71020190511013 & TT71020190511014 were created by different users at almost the same time duration for similiar probelm - the duplicate time period should be removed and only one value (larget one) must be considered as degradation time.

 

Ticket #ToolStart TimeResolved Time
TT71020190507010QRT07-05-2019 09:2310-05-2019 15:45
TT71020190508011QRT08-05-2019 12:2209-05-2019 11:37
TT71020190508012Sydicate08-05-2019 17:1210-05-2019 18:37
TT71020190510013Sydicate10-05-2019 09:2311-05-2019 18:19
TT71020190511014Sydicate10-05-2019 10:0211-05-2019 18:19
TT71020190511015Sydicate12-05-2019 03:0712-05-2019 09:23
TT71020190511016QRT12-05-2019 20:2314-05-2019 13:52
TT71020190514017Sydicate14-05-2019 15:0914-05-2019 19:08
TT71020190514018Sydicate14-05-2019 17:1114-05-2019 21:50
TT71020190514019QRT15-05-2019 21:2315-05-2019 23:46

 

I have been struggling for days to get this sorted out but unable to click it. I basically want to calculate Serrvice degradation time for individual tools while also projecting the avg degradation time for overall tool set.

 

Cheers!

JB

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @junny ,

Based on my test, you could refer to below measures:

Rank a = COUNTROWS(FILTER(ALL('Table1'),ISONORAFTER('Table1'[Start Time],SELECTEDVALUE(Table1[Start Time]),DESC,'Table1'[Ticket #],SELECTEDVALUE(Table1[Ticket #]))&&'Table1'[Tool]=MAX('Table1'[Tool])))
Rank b = COUNTROWS(FILTER(ALL('Table1'),ISONORAFTER('Table1'[Resolved Time],SELECTEDVALUE(Table1[Resolved Time]),DESC,'Table1'[Ticket #],SELECTEDVALUE(Table1[Ticket #]),ASC)&&'Table1'[Tool]=MAX('Table1'[Tool])))
degradation time = IF([Rank b]<CALCULATE(MAXX('Table1','Table1'[Rank a]),FILTER('Table1','Table1'[Rank b]<='Table1'[Rank a])),"degradation time",BLANK())

Result(I have modified a row data to test for more situations):

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-danhe-msft
Employee
Employee

Hi @junny ,

Based on my test, you could refer to below measures:

Rank a = COUNTROWS(FILTER(ALL('Table1'),ISONORAFTER('Table1'[Start Time],SELECTEDVALUE(Table1[Start Time]),DESC,'Table1'[Ticket #],SELECTEDVALUE(Table1[Ticket #]))&&'Table1'[Tool]=MAX('Table1'[Tool])))
Rank b = COUNTROWS(FILTER(ALL('Table1'),ISONORAFTER('Table1'[Resolved Time],SELECTEDVALUE(Table1[Resolved Time]),DESC,'Table1'[Ticket #],SELECTEDVALUE(Table1[Ticket #]),ASC)&&'Table1'[Tool]=MAX('Table1'[Tool])))
degradation time = IF([Rank b]<CALCULATE(MAXX('Table1','Table1'[Rank a]),FILTER('Table1','Table1'[Rank b]<='Table1'[Rank a])),"degradation time",BLANK())

Result(I have modified a row data to test for more situations):

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.