Forum Discussion

webportal's avatar
webportal
Impactful Individual
10 years ago
Solved

Create a running total using TOTALYTD

How can I create a running total using a measure with formula TOTALYTD?

 

In the formula below, Turnover YTD is using exactly the same fields in the matrix:

 

  • Faturação (Turnover in english)
  • Dia (Day)

  • Yes you are right. The value in the rows/columns should always be coming from the lookup table.

     

    Hope it helped you to gain the understanding of DAX.

7 Replies

  • Running Total:=CALCULATE (
        SUM ( Table[Column] ),
        FILTER (
            ALL ( 'Date'[Date] ),
            'Date'[Date] <= MAX ( 'Date'[Date] )
        )
    )
    • webportal's avatar
      webportal
      Impactful Individual

      Hi,

      Thanks a lot for helping!

      That should work, but it is returning exactly the same result.

       

      Also, what is wrong in my formula?

      • BhaveshPatel's avatar
        BhaveshPatel
        Super User

        Try replacing

         

        SUM ( Table[Column] ) with 

         

        your YTD measure DAX Formula.