Forum Discussion

jbajon's avatar
jbajon
Frequent Visitor
5 years ago
Solved

Unexpected Running Total

How do I create a running (cumulative) sum of column C if column C = Column A divided by Column B. The problem seems to be that whenever a YTD function or Calculate with <= dates, it recalculates th...
  • amitchandak's avatar
    5 years ago

    jbajon , Try a measure like

    calculate(sumx(values(Table[date]), calculate(divide(sum(Table[A]),Sum(Table[B])))), filter(AllSelected(Table), Table[date] <=max(Table[date])))