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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ChipTz
Frequent Visitor

Time stamp to event UUID

Hi, I have the following two example tables in my data:
 
EVENTS

TimeStampNode
01/10/2019 11:23A
01/10/2019 12:43A
01/10/2019 12:55B
01/10/2019 16:23A
02/10/2019 09:27B
02/10/2019 11:23A
02/10/2019 16:22C
02/10/2019 19:45C
03/10/2019 07:03A
03/10/2019 09:11A
03/10/2019 11:55B
04/10/2019 11:14C


 
CHECKS

NodeUUIDENDDATE
AFADFSA01/10/2019 20:30
BTREVFD02/10/2019 10:00
ATFDASN03/10/2019 16:15
CGRVWSI03/10/2019 19:30
BTRHYZH04/10/2019 00:30
CJIUOEW04/10/2019 11:15


 
I need to add a calculated column to the events table with the following conditions
 
EVENTS[Node] = CHECKS[Node]
EVENTS[TimeStamp] <= CHECKS[ENDDATE]
EVENTS[TimeStamp] > PREVIOUS CHECKS[ENDDATE]
 
The end result would look like this:
 
EVENTS

TimeStampNodeCalculated_Matching_UUID
01/10/2019 11:23AFADFSA
01/10/2019 12:43AFADFSA
01/10/2019 12:55BTREVFD
01/10/2019 16:23AFADFSA
02/10/2019 09:27BTREVFD
02/10/2019 11:23ATFDASN
02/10/2019 16:22CGRVWSI
02/10/2019 19:45CGRVWSI
03/10/2019 07:03ATFDASN
03/10/2019 09:11ATFDASN
03/10/2019 11:55BTRHYZH
04/10/2019 11:14CJIUOEW


 
I tried to look for a solution but couldn't find one. How can I use DAX to build this calculated column?
Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@ChipTz try this and check if it works for you

Column = CALCULATE(MIN(Check[UUID]),FILTER(Check,Check[ENDDATE]>=Event[TimeStamp] && Check[Node]=Event[Node]))

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@ChipTz try this and check if it works for you

Column = CALCULATE(MIN(Check[UUID]),FILTER(Check,Check[ENDDATE]>=Event[TimeStamp] && Check[Node]=Event[Node]))

Thanks for the fast feedback. It did work on the example data I posted but it is not working on my real data. I need to check what is wrong wiht my data 😐

 

I don't get why MIN is the function that solves this, tough. I was expecting something as SELECTEDVALUE.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors