The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
25 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |