I would like to get my date slicer to filter for the current week and the upcoming 2 weeks (or any number). Is this possible? Right now the "Relative Date" slicer option has the "Next 3 Weeks", but that does not show the current week. If I use the "This Month" option, that stops at the last day of the current month and doesn't show a full month's time into the next month.
So using this:
I get these results:
I would like to basically set the results back one week to include the current week. Is this possible either through another visual or a measure?
Solved! Go to Solution.
Try adding a Relative Week column to your date table:
Relative Week =
VAR vToday = TODAY()
VAR vWeekEndDate =
[Date] - WEEKDAY ( [Date], 1 ) + 7
VAR vWeekEndDateToday =
vToday - WEEKDAY ( [Date], 1 ) + 7
VAR vResult =
CONVERT ( ( vWeekEndDate - vWeekEndDateToday ) / 7, INTEGER )
RETURN
vResult
Add this column as a filter to your date slicer:
Proud to be a Super User!
Try adding a Relative Week column to your date table:
Relative Week =
VAR vToday = TODAY()
VAR vWeekEndDate =
[Date] - WEEKDAY ( [Date], 1 ) + 7
VAR vWeekEndDateToday =
vToday - WEEKDAY ( [Date], 1 ) + 7
VAR vResult =
CONVERT ( ( vWeekEndDate - vWeekEndDateToday ) / 7, INTEGER )
RETURN
vResult
Add this column as a filter to your date slicer:
Proud to be a Super User!
User | Count |
---|---|
195 | |
80 | |
77 | |
76 | |
46 |
User | Count |
---|---|
165 | |
87 | |
86 | |
80 | |
74 |