Forum Discussion

arifulice09's avatar
arifulice09
Helper I
4 years ago
Solved

Cumulative Total

I have a fact table and a dimension table, in my fact table there is column "ID" I want to the cumulative sum of the unique Id, please see the attached picture. 

 

 

 

3 Replies

  • arifulice09 , Try a measure like

     

    calculate(sumx(values(Table[Date]), calculate(distinctCOUNT(Table[ID]))), filter(allselected(Table), Table[Date] <= Max(Table[Date])))

    • arifulice09's avatar
      arifulice09
      Helper I

      amitchandak  it is good for daily data, but I am facing a problem with weekly data, please see the attached below.