Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
krzysztof
Helper III
Helper III

Showing last 4 weeks depending on date selection

I have a problem showing last 4 weeks. If I give top 4 in the filters after the week number, it will throw out an empty table for me because I don't have data for December, etc.


Przechwytywanie.PNG

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @krzysztof ,

 

If I understand you correctly, please create a calculated column and add it to filter as below:

 1.PNG2.PNG

Result would be shown as below:

3.PNG4.PNG

Hopefully works for you.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @krzysztof ,

 

If I understand you correctly, please create a calculated column and add it to filter as below:

 1.PNG2.PNG

Result would be shown as below:

3.PNG4.PNG

Hopefully works for you.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.