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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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