Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Static Previous weeks Counts

I have sample data with item number and closing date in it. I am trying to display previous week (week start from Sunday) item counts always. I try to use filter function comparing current week-1 opt...
  • Jihwan_Kim's avatar
    5 years ago

    Hi, Anonymous 

    Please try the below.

     

     

    Item count previous week =
    CALCULATE (
    DISTINCTCOUNT ( [ITEM Number] ),
    FILTER (
    'Table',
    WEEKNUM ( 'Table'[Close Date], 1 )
    = WEEKNUM ( TODAY (), 1 ) - 1
    )
    )
     
     

    Hi, My name is Jihwan Kim.


    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


    Linkedin: linkedin.com/in/jihwankim1975/

    Twitter: twitter.com/Jihwan_JHKIM