Forum Discussion
Calculation based on previous record
- 6 years ago
Try
distance covered = table[Milage]) - maxx(filter(table, table[EmpoyeeNumber] = earlier(table[EmpoyeeNumber]) && table[Date]<earlier(table[Date])),table[Milage])Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
Try
distance covered =
table[Milage]) - maxx(filter(table, table[EmpoyeeNumber] = earlier(table[EmpoyeeNumber]) && table[Date]<earlier(table[Date])),table[Milage])
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin