The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!!!
User | Count |
---|---|
26 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
30 | |
15 | |
12 | |
12 | |
7 |