Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

How to show data for last 4 weeks based on selected week in slicer?



I am currently stucked trying to figure out how to show in table data for previous 4 weeks based on selected week in slicer? Ideally, if it is selected current week (2022-11-26 - I am showing as Week Ending), to have in Rows only weeks for current month, meaning:





In my Calendar table, I have columns:

1) Week Ending, [Date]-MOD([Date]-1,7)+

2) This Week Slicer = if( value(YEAR (NOW() ) & 100 + WEEKNUM (NOW() )) = value(('Calendar'[Week Year Number])), "This Week",FORMAT('Calendar'[Week Ending],"YYYY-MM-DD")) - I am using this one for slicer where "This Week" represent current week (in my case 2022-11-26)
3) Last Week Ending = DATEADD('Calendar'[Week Ending],-7,DAY) - I am using this one for table to show always data for previous week based on week selected in slicer.
...but how to show 4 previous weeks instead of only one? Why slicer does not alow me to show list of all previous weeks, instead of only one?


Frequent Visitor

Never mind. I fould solution. Thanks anyhow.

Super User
Super User

Weeks and Months are not compatible. Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors