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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi, Folks!
I need help with the code to calculate the kilometers between two services.
the readings are in the same column (data for several vehicles) with diferrent dates.
Looking forward to hearing from you.
Regards,
Luis Neves
Solved! Go to Solution.
@neveld ,
New column =
Var _max = maxx(filter(Table, [vehicle] = earlier([vehicle]) && [Kms] < earlier([Kms]) ) ,[Kms])
return
[kms] -_max
Thank you very much!!!
Check out the November 2025 Fabric 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!