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! Request now

Reply
Kiranganesh
New Member

Identify if a suport ticket is followed up consistently

Helllo, 

I have a table with 3 columns:

Support Ticket NumberStatusDate
3789In31-07-2020 14:53
6490Out30-07-2020 12:45
3789In28-07-2020 08:51
3789Out29-07-2020 11:53
6490Out29-07-2020 10:30

I would want to check how many times a support ticket (for example) "3789"with status "In" as missed an entry in the table between the first entry for the Support Ticket and the last entry in the table. Note: The status shoule be "In" or "Out" on daily basis, if the status is "In" but as missed to follow-up on the next day, then the support ticket needs to be flagged.

Can someone help on this this ?. hope the scenario mentioned above is understandable.

Regards,

Kiran

4 REPLIES 4
nandic
Super User
Super User

@Kiranganesh , could you share some more information?
So there are 2 requirements:
1) add a flag if status was yesterday "In" and today there is no info (there was no follow up). What if today status is "Out"?
Another question, does it always compare to next day or next appearance in table? (Ie: if it is weekend, is it still expected to be followed up or not?)
2) count if status "In". Count how many times each support ticket had status "In", right?
So you will get table like this:
Ticket   In-counter
3789     2
6490     0
Or it has different logic?

Best way is to add needed column (make it in excel) and share expected results.

amitchandak
Super User
Super User

@Kiranganesh , a measure like this will help you

But have a date only column

Date New = [Date].date

 

countx(filter(summarize(table, table[Support Ticket],Table[Date New],"_1",calculate(count(table[Support Ticket]),Table[Status]="In"),"_2",calculate(count(table[Support Ticket]),Table[Status]="Out")),[_1]<[_2]),[Support Ticket])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks for replying. Unfortunately, the proposed solution did not work. May be my request was not put up clearly, let me attempt again:

Tickets are raised by users, once the ticket is recieved the status of the ticket changes to "In", if the request is responded by suppot team(Seeking additional clarification on the reported issue) the status of the ticket changes to "Out". There could be mulltip "In" and "Out" for a single ticket.

My inrest is to find how many of the tickets were followed up(in days- ">1") by either "users" or "support team" without the other responding. Also, include the count of in between days the follow-up or response was missed by either "user" or "support team".

Data from a table:

Support Ticket NumberStatusDate
229156In01 January 2020
229156Out06 January 2020
229158In01 January 2020
229158Out01 January 2020
229176In02 January 2020
229176In03 January 2020
229176In06 January 2020
229176In22 January 2020
229185In01 January 2020
229185In02 January 2020
229185In03 January 2020
229185In06 January 2020
229185Out06 January 2020

 

Expected Result:

Support Ticket NumberStatusDateMissed_Days
229156In01 January 20205
229156Out06 January 20205
229176In06 January 20203
229176In22 January 202016
229185In06 January 20203

 

Hi @Kiranganesh 

 

 

Create a Calculated Column

 

 

 

Column = 
VAR __thislogin = 'Table'[Date]
VAR __nextlogout =
CALCULATE(
MIN ( 'Table'[Date] ),
ALLEXCEPT ( 'Table', 'Table'[Support Ticket Number] ),
'Table'[Date] > __thislogin

)

RETURN
IF (
'Table'[Status] = "IN",
DATEDIFF ( __thislogin, __nextlogout, DAY ),
BLANK ()
)

 

 

 

1.jpg

 

 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.