Forum Discussion
Last Week Number Selected in Slicer
- 5 years ago
I believe i do! 🙂
What i mean is that you need to create a new column to use in the slicer and make sure that this column is sorted in a way where the "Last week" value always will be located at the top.
Like this:
Br,
J
tex628 Thanks for your reply.
But, actually the Week Number column has only Week Number for the whole year from 1 to 52 /53
and the column Weektype has Values of Week, Last Week and This Week as you can see in the Table ScreenShot.
I acutally want that slicer to be pre selected of that last week, week number i.e Week -12- 2021 for the month of March which is 22 to 28 March.
hope you understand
I believe i do! 🙂
What i mean is that you need to create a new column to use in the slicer and make sure that this column is sorted in a way where the "Last week" value always will be located at the top.
Like this:
Br,
J
- MH35 years agoHelper V
tex628
Well as per your workaround, I have done thisWeekNumberTest = if(DimDate[Week Type]="Last Week", "0 - Last Week",DimDate[WeekNumber])
and I dropped that field into the Slicer
The Date Range on the Top Right shows the correct Date Range from 22 to 28 March. 😄
Will this work as a professional workaround? or it's just a used case scenario?- tex6285 years agoCommunity Champion
Well it's the default functionality of the single select slicer to use the first indexed value in the slicer column. You will meet issues if you allow users to save filter applications in service, as this will override the default functionality so you will either need to remove that possibilty or live with the fact that user filter selections will affect the state of the report.
Br,
Johannes