Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |