Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I'm in trouble with some data I need to compare.
I've a table with some different session_ID and for each I've events with dates (see a sample in screenshot)
I want to compare the sessions on stacked timelines (with the same scale) , so I need to set the first event of each session as t=0 and count the time relative to it.
It suppose, for each session, to substract all times with date of 1st event of the session
For the moment, I can only plot the dates on separate timelines, one for each session (see capture).
Can you help with that ?
I can send you a sample if you want to try something 😉
Solved! Go to Solution.
Based on what I Gor a new column
=datediff(minx(filter(Table, [SessionID] =earlier([SessionID]) ), [timestamp]), [timestamp], second)
Based on what I Gor a new column
=datediff(minx(filter(Table, [SessionID] =earlier([SessionID]) ), [timestamp]), [timestamp], second)
Thank you...
But something went wrong :
@NicoLemarchand , hope you are creating a new column in DAX -https://docs.microsoft.com/en-us/dax/datediff-function-dax
Sorry, a mistake with a stupid copy/paste without adapt to my data
Works perfectly :
Thank you very much !
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!