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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Power BI Dax to find the Reopen Count of Ticket.

I have a dataset which looks like as below. So this whole table is all about journey of a Ticket which is column (number), We have the (Reopen Count) column which tells how many times this ticket is reopen.

This whole table is sorted based on JourneyIndex.

1. Now if the Reopen count is 2 that means in the (value) column there will be 3 times resolved coming, This is because 2 times ticket is reopened but after the last resolved which is the 3rd here it is not open yet.

For ex. If the reopen will be 5 then there will be 6 times resolved will come in value column this is because customer get the solution in the 6th resolved and we can count only 5 as the reopen.

2. Whereever the resolved comes look for two conditions.

       a. Is there any other resolved below to it, if not then it is fine.

       b. if yes than look for the (Journey Category) column and whichever is the Assignment Group update, the no of reopen should show in front of it.

           Based on Below data       value                            JourneyCategory                  Reopen by Asssignment group

                          CSC-SPO-eBusiness Portal Supp       Assignment Group Update             1

                          GT-USDG Prod Support - US            Assignment Group Update              0

                          GT-Digital EEBenefit - US                  Assignment Group Update              1

 

(CSC-SPO-eBusiness Portal Supp ) is having 1 as (Reopen by Asssignment group) because below to it only 1 resolved in the value column is there.

(GT-USDG Prod Support - US) is having 0 as (Reopen by Asssignment group) because below to it no resolved in the value column is there.

(GT-Digital EEBenefit - US) is having 1 as (Reopen by Asssignment group) because below to it 2 resoved is there but the 2nd resoved is the last resolved in the value column so it will not be counted as Reopen.

 

Problem Screenshot.png

1 REPLY 1
Anonymous
Not applicable

whereever is the first Assignment Group Update comes in Journey Category column just count the no. of resolved below to the Assignment Group Update and before the next Assignment Group Update and the count should show in front of the Assignment Group Update in a new column.

For example : In the below table there is Reopen Count column which is the result I want through DAX.

In below table the first Assignment Group Update is coming at journeyIndex 5 and next Assignment Group Update is at journeyIndex 12. Now look resolved in value column in between 5 and 12 it is ony one time coming so count of resoved should show in Reopen Count coumn which is 1.

Next is 0 because between 12 index and 16 index there is no resolved in value column.

At last between 16 to 24 index 2 times resolved is coming but Since after last resolved ticket is not open again so we will not include last resolved count in reopen count that is why in last Assignment Group Update one there in reopent count.

 

Note: Lot of Dax expert have tried this problem but failed to achieve the result, I know problem is really hard but I want to also try here to see whether this community is really having expert or not.

numbertimestampvaluejourneyIndex -journeyCategoryIndexjourneyCategoryReopen CountReopen Count
INC0108474289/27/2023 4:01:00 PMOpened00State Update2 
INC0108474289/27/2023 4:01:00 PMCreated11State Update2 
INC0108474289/27/2023 4:02:00 PM320Priority Update2 
INC0108474289/27/2023 4:02:00 PMActive32State Update2 
INC0108474289/27/2023 4:02:00 PM341Priority Update2 
INC0108474289/27/2023 4:02:00 PMCSC - SPO - eBusiness Portal Supp50Assignment Group Update21
INC0108474289/28/2023 11:03:00 AMWork in progress63State Update2 
INC0108474289/28/2023 11:04:00 AMLorrie Smith70Assigned To Update2 
INC0108474289/28/2023 11:09:00 AMPending84State Update2 
INC0108474289/28/2023 11:36:00 AMResolved95State Update2 
INC0108474289/29/2023 9:30:00 AMActive106State Update2 
INC01084742810/2/2023 8:26:00 AMWork in progress117State Update2 
INC01084742810/2/2023 9:25:00 AMGT - USDG Prod Support - US121Assignment Group Update20
INC01084742810/2/2023 9:25:00 AMActive138State Update2 
INC01084742810/2/2023 9:28:00 AMAshish Konapure141Assigned To Update2 
INC01084742810/2/2023 9:28:00 AMWork in progress159State Update2 
INC01084742810/2/2023 9:43:00 AMGT - Digital EEBenefit - US162Assignment Group Update21
INC01084742810/2/2023 9:43:00 AMActive1710State Update2 
INC01084742810/2/2023 10:56:00 AMCarrie Griffin182Assigned To Update2 
INC01084742810/2/2023 10:56:00 AMWork in progress1911State Update2 
INC01084742810/2/2023 10:59:00 AMResolved2012State Update2 
INC01084742810/2/2023 11:16:00 AMActive2113State Update2 
INC01084742810/2/2023 11:54:00 AMWork in progress2214State Update2 
INC01084742810/2/2023 11:54:00 AMResolved2315State Update2 
INC01084742810/7/2023 12:05:00 PMClosed2416State Update2 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.