Forum Discussion
Creating a rolling 6 week date range for use in graphs
- 10 years ago
mur2za instead of putting the measures you used into the graph, use them in either the page level filter or the graph visual filter. Then for your axis put in a date column. The measures should filter the axis to what you want.
The other option is to create a custom column as follows:
Last 42 days = IF(AND(DateKey[Date]>=[Today]-42,DateKey[Date]<=[Today]),1,0)
[Today] is a measure : Today = DATE(YEAR(NOW()),MONTH(NOW()),DAY(NOW()))
Enter the last 42 days column in the page level or visual level filter and then select 1. Enter a date column in the axis of the graph. This will maintain a rolling 42 day axis.
Thanks,
Giles
i need rolling six week vs current week option in slicer and my week starts from friday to thursday
it should exclude the current week and take respective weeks for rolling 6 weeks
Eg - i have data from Wk.1 to Wk.6 and wk.7 has only 4 days data and i am in 5th day so rolling 6 week would be Wk.1 (Friday) to Wk.6(Thursday) and current Week would have Wk.7 Friday till today-1
Email - [email protected] / [email protected]