Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Sum till selected month

Hey there,   I want to calculate the total amount till the selected month in the slicer. I´ll show the result in a card.    
  • amitchandak's avatar
    6 years ago

    Anonymous , No clear Try like

    Till Date =
    VAR _max = MAXX(Allselected('Calendar'), 'Calendar'[DATE] )
    return 
    CALCULATE (
    SUM ( Sales[amount] ),
    FILTER ( all('Calendar'),'Calendar'[DATE] <=_max),
    )