Forum Discussion

pal95's avatar
pal95
Icon for Helper III rankHelper III
4 years ago
Solved

Cumulative Line Chart for Mileage Register

Hi, I have a huge 'timesheet' like dataset where every employee registers the car they used and how many miles they made:     It generates a nice line chart where I can see mileage change...
  • amitchandak's avatar
    amitchandak
    4 years ago

    pal95 , Using a date table in measure and visual axis

     

    Cumm = CALCULATE(SUM(Table[Miles]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

     

    or

     

    Cumm = CALCULATE(SUM(Table[Miles]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))