Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Data Between Custom Week Start and Week End Date

In my report i have created Week Start and Week End date and for my organization the Week Start Date is Monday and End Date is Sunday,  in the table above we have only data until 3/24/2019, but ...
  • v-lili6-msft's avatar
    v-lili6-msft
    7 years ago

    hi, Anonymous 

    Just adjust the measure formula as below:

    Measure3 = 
    VAR __max = CALCULATE(MAX('Table'[Week End Date]),FILTER('Table','Table'[Week End Date]<TODAY()))
    RETURN
    SUMX(FILTER('Table',[Week End Date] = __max),[Count])

    You could use Current Day instead of TODAY()

     

    Best Regards,

    Lin