Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance 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 |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |