Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
The goal of this report is to analyze milage data. To do this, I need to calculate how many miles they have driven since the last time data was entered. To do this, I created three measures.
Start Date = FIRSTDATE(ALL(Combined[Date]))
End Date = MIN(Combined[Date])-1
Last Odom Reading = CALCULATE(MAX(Combined[Odometer]),DATESBETWEEN(Combined[Date],[Start Date],[End Date]))
Here are the pictures: it kept giving me an error when I initially made the thread
Summarized Data
Unsummarized Data
Hi @dyee4613 ,
Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dyee4613 ,
I created a measure that you can have a try.
Measure = CALCULATE(SUM('Table'[Odometer]), FILTER('Table','Table'[Date] >= MIN('Table'[Date]) && 'Table'[Date] < MAX('Table'[Date])-1))
If it is not what you want, please share your expected results.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.