Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Rolling 5 days back

Hi Guys,    I want to create a line chart with on the axis the date and in the value of the chart the total sum or count of 5 days back from every specific day on the axis. So if in the date axis c...
  • sanjeev803's avatar
    6 years ago

    Hi - Try below measure.

     

    Rolling 5 Days = CALCULATE(SUM(Data[Value]),DATESINPERIOD(Data[Date],LASTDATE(Data[Date]),-5,DAY))

     

    Refer date column in DATESINPERIOD(), and make sure its format is date.

     

    I hope this will help.

     

    Cheers!
    Sanj