Forum Discussion
Data Between Custom Week Start and Week End Date
- 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
Seems like you could grap the MAX of the "My WeekEndDate" column and then FILTER down to that row essentially. So, something like:
Measure =
VAR __max = MAX([My WeekEndDate])
RETURN
SUMX(FILTER('Table',[My WeekEndDate] = __max),[Ticket Count CFY])- Anonymous7 years agoNot applicable
Thank your for the response, Yes that makes sense when we don't have data for the Current week,Let me explain againIn the below example i have data for Week Ending 31 March as well and in this scenario if i run the report on 28th March 2019 i should see only data for 3/18/2019-3/24/2019 i.e. 5, the Data for 03/25/2019 to 03/31/2019 should only be reflected in the report when i run refresh the data on 04/01/2019.
- v-lili6-msft7 years agoCommunity Support
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