Forum Discussion
george31
6 years agoRegular Visitor
Problems calculating week to date from selected date
I am trying to calculate the WTD (week to date starting on Mondays) and MTD / YTD figures on a table where person can select the date to base this on. It would seem it should be fairly easy as we wa...
- 6 years ago
george31 see attached, there are many tables, for you, just look at customer service and calendar table and measures in Customer Service table
Would appreciate Kudos 🙂 if my solution helped.
george31
6 years agoRegular Visitor
Correction: formulae should have been <= [Selected Date]
Have also tried
CALCULATE(SUM(TRC[Answered]), FILTER(TRC,TRC[dateYearWeek] = [Selected YearWeek]))
and
CALCULATE(SUM(TRC[Answered]), FILTER(ALL('Calendar'),'Calendar'[calYearWeek] = VALUES('Calendar'[calYearWeek]) && 'Calendar'[Date] <= MAX('Calendar'[Date])))
but none seem to give correct result and always seem to return the SUM(Answered) for selected day.