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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
TenguMan
Frequent Visitor

Compare one timestamp against multiple other timestamps

Hello,

 

I am working with ServiceNow tickets and have been tasked with pulling assignment groups that were assigned to a ticket while it was in either "Open" or "Awaiting Info" states. I have the timestamps for when each state began and ended, I have the timestamps for when an assignment group was involved with a given ticket, but what complicates this is the fact that a ticket can be in one of those states multiple times.

 

Is there a way I can combine timestamps into a single measure that I would be able to use to compare against another timestamp? For instance, if a ticket was "Open" at 8:00 AM, went to "Awaiting Info" at 9:00 AM, and then back to "Open" at 10:00 AM for another hour, is there a way I can look for a time that falls into one of those two "Open" times?

1 ACCEPTED SOLUTION

If you want to show this on one table then you will need to indicate the temporal granularity.  Is a 10 minute interval enough?

 

It will be much cleaner to show this in separate charts.

lbendlin_0-1719959691147.png

 

 

 

View solution in original post

3 REPLIES 3
TenguMan
Frequent Visitor

To elaborate, I have two tables, one containing the timestamps for when a ticket's state began and ended and a second containing the timestamps for when an assignment group was assigned to a ticket.

 

TicketStateBeginEnd
CC000001Open07/01/2024 8:00:00 AM07/01/2024 8:50:00 AM
CC000001Awaiting Info07/01/2024 8:50:01 AM07/01/2024 10:00:00 AM
CC000001Open07/01/2024 10:00:01 AM07/01/2024 11:00:00 AM
CC000002Awaiting Info07/02/2024 9:00:00 AM07/02/2024 12:00:00 PM

 

TicketAssignment GroupStartEnd
CC000001Team_107/01/2024 8:00:00AM07/01/2024 11:00:00AM
CC000002Team_107/02/2024 9:00:00AM07/02/2024 10:00:00AM
CC000002Team_207/02/2024 10:00:01 AM07/02/2024 12:00:00 PM

The idea is to show, on one table, the assignment groups that were assigned to a given ticket during the timespans specified in the first table. I have tried to use a calculated column and the RELATED function to get the assignment group assigned to it while the ticket is in "Open" (using the ticket number as the related field), but it errors out due to there being multiple values where "State" is Open for a particular ticket.

If you want to show this on one table then you will need to indicate the temporal granularity.  Is a 10 minute interval enough?

 

It will be much cleaner to show this in separate charts.

lbendlin_0-1719959691147.png

 

 

 

lbendlin
Super User
Super User

Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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