Forum Discussion

chinh_ho's avatar
chinh_ho
Frequent Visitor
3 years ago
Solved

Cumulative values per month

Hi everyone, I have a target goal sale for each saler in my company in 2022, I would like to calculate cumulativetarget line for each person. I have this picture for your reference. Please help me t...
  • amitchandak's avatar
    3 years ago

    chinh_ho , if you have a date with help from a date table

     

    example

    Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

     

    or

     

    Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

     

    You can create date from month and year

     

    Date = Date([year],[month],1)