Forum Discussion

Tiff's avatar
Tiff
Helper I
7 years ago
Solved

dax formulas through differents lines

Hi everyone !    May I implore ur help ? :o  I'm on a probleme for days, I hope you can help me.    I have two columns :    01/01/2017 | 5 01/02/2017 | 7 01/03/2017 | 9 01/04/2017 | 6 01...
  • v-danhe-msft's avatar
    v-danhe-msft
    7 years ago

    Hi Tiff,

    Based on my test, you could refer to below formula:

    Column = var a=[Date]-365 
             var b=CALCULATE(SUM(Table1[Running total]),FILTER('Table1','Table1'[Date]=a))
             return [Running total]-b

    Result:

     

    You could also download the pbix file to have a view.

     

    Regards,

    Daniel He