Forum Discussion

RafaelAri's avatar
RafaelAri
Icon for Helper III rankHelper III
3 years ago
Solved

Current Year and Month sales value

I have a Sales table with "Sale-Value" column and time table, with "Year" & "Month" columns. I need a measure to get the sum of "Sale-Value", in the current Year and Month. Appreciate and thank you...
  • johnt75's avatar
    3 years ago

    You can use

    This month sales =
    CALCULATE (
        SUM ( 'Sales'[Sale value] ),
        'Date'[Year] = YEAR ( TODAY () ),
        'Date'[Month] = MONTH ( TODAY () )
    )
    
  • johnt75's avatar
    johnt75
    3 years ago

    You could use REMOVEFILTERS

    This month sales =
    CALCULATE (
        SUM ( 'Sales'[Sale value] ),
        'Date'[Year] = YEAR ( TODAY () ),
        'Date'[Month] = MONTH ( TODAY () ),
        REMOVEFILTERS ( 'Date' )
    )