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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Casi
Helper I
Helper I

Work out dates between one column on multi rows

Hi,

I have a table 'audit' containing all the different stages of an appeal. I need to work out the dates between the date the status was changed but I am struggling without a start date.

 

Casi_0-1748860742761.png

Can anyone please help.

1 ACCEPTED SOLUTION
p45cal
Solution Supplier
Solution Supplier

In the attached, the same query adapted to a changed column name from Date Notified to createdon.

It produces just short of 900k rows so I've reduced it to one row (to be able to attach it here) which means you'll need to refresh the query to see those rows. it takes a few seconds to generate those rows…

View solution in original post

23 REPLIES 23
Casi
Helper I
Helper I

Hi,

This is the output i would like:

ceox_auditlogidceox_incidentidceox_newvalueceox_oldvalueIncident.titleDate Notified
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272810/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272811/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272812/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272813/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272814/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272815/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272816/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272817/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272818/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272819/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272820/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272821/03/2023 00:00
042b04cf-80bf-ed11-83fd-002248c70152cb53f708-25ad-ed11-83ff-0022481b5e4eOpen ReadyPending Information148272822/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272822/02/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272823/02/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272824/02/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272825/02/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272826/02/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272827/02/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272828/02/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272801/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272802/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272803/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272804/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272805/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272806/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272807/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272808/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272809/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272810/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272811/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272812/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272813/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272814/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272815/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272816/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272817/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272818/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272819/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272820/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272821/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272822/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272823/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272824/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272825/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272826/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272827/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272828/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272829/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272830/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272831/03/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272801/04/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272802/04/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272803/04/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272804/04/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272805/04/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272806/04/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272807/04/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272808/04/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272809/04/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272810/04/2023 00:00
0610c234-a0b2-ed11-83ff-6045bd0b12c1cb53f708-25ad-ed11-83ff-0022481b5e4ePending InformationAwaiting Validation148272811/04/2023 00:00
1b72fab5-4522-ee11-9966-002248c87a56cb53f708-25ad-ed11-83ff-0022481b5e4eDismissedNotified148272812/04/2023 00:00
02f496eb-4cbe-ed11-83fe-0022481b9548666e9176-f5d7-4cf2-9067-d446b5aff3b8ListedNotified1459769809/03/2023 00:00
02f496eb-4cbe-ed11-83fe-0022481b9548666e9176-f5d7-4cf2-9067-d446b5aff3b8ListedNotified1459769810/03/2023 00:00
02f496eb-4cbe-ed11-83fe-0022481b9548666e9176-f5d7-4cf2-9067-d446b5aff3b8ListedNotified1459769811/03/2023 00:00
02f496eb-4cbe-ed11-83fe-0022481b9548666e9176-f5d7-4cf2-9067-d446b5aff3b8ListedNotified1459769812/03/2023 00:00
02f496eb-4cbe-ed11-83fe-0022481b9548666e9176-f5d7-4cf2-9067-d446b5aff3b8ListedNotified1459769813/03/2023 00:00
02f496eb-4cbe-ed11-83fe-0022481b9548666e9176-f5d7-4cf2-9067-d446b5aff3b8ListedNotified1459769814/03/2023 00:00
1c965d4f-4ebe-ed11-83fe-0022481b9dcf666e9176-f5d7-4cf2-9067-d446b5aff3b8NotifiedListed1459769815/03/2023 00:00
p45cal
Solution Supplier
Solution Supplier

Can you show how you expect the output to be?

Ideally, attach a simple workbook with just these data (perhaps with a few more incidentids)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors