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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 !
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |