Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Solved! Go to Solution.
Hi @SandraGDS
Please use this measure:
Timestamp =
VAR CurrentCase = 'Export Worksheet'[TRAY_NO]
VAR CurrentIndex = 'Export Worksheet'[STTN_NO_R]
VAR PreviousIndex =
CALCULATE (
MAX ( 'Export Worksheet'[STTN_NO_R] ),
REMOVEFILTERS ( 'Export Worksheet' ),
'Export Worksheet'[TRAY_NO] = CurrentCase,
'Export Worksheet'[STTN_NO_R] < CurrentIndex
)
RETURN
CALCULATE (
SELECTEDVALUE ( 'Export Worksheet'[AMD_DATE] ),
REMOVEFILTERS ( 'Export Worksheet' ),
'Export Worksheet'[TRAY_NO] = CurrentCase,
'Export Worksheet'[STTN_NO_R] = PreviousIndex
)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @SandraGDS
Please use this measure:
Timestamp =
VAR CurrentCase = 'Export Worksheet'[TRAY_NO]
VAR CurrentIndex = 'Export Worksheet'[STTN_NO_R]
VAR PreviousIndex =
CALCULATE (
MAX ( 'Export Worksheet'[STTN_NO_R] ),
REMOVEFILTERS ( 'Export Worksheet' ),
'Export Worksheet'[TRAY_NO] = CurrentCase,
'Export Worksheet'[STTN_NO_R] < CurrentIndex
)
RETURN
CALCULATE (
SELECTEDVALUE ( 'Export Worksheet'[AMD_DATE] ),
REMOVEFILTERS ( 'Export Worksheet' ),
'Export Worksheet'[TRAY_NO] = CurrentCase,
'Export Worksheet'[STTN_NO_R] = PreviousIndex
)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.