Forum Discussion

kenthub's avatar
kenthub
Helper I
9 years ago
Solved

Week to date so far

Ok first, please rest assured I have looked through what I presummed all possible answers in the forums first :D   I am trying to create a matrix table that compares sales from the current week and...
  • v-ljerr-msft's avatar
    9 years ago

    Hi kenthub,

     

    Could you try the formula below to see if it works?:smileyhappy:

    Sales-CWeek =
    CALCULATE (
        [SalesTotal],
        FILTER (
            'PeriodDate',
            YEAR ( 'PeriodDate'[Date] ) = YEAR ( NOW () )
                && WEEKNUM ( 'PeriodDate'[Date], 2 ) = WEEKNUM ( NOW (), 2 )
        )
    )
    

     

    Regards