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
Mystery
Helper I
Helper I

Visual filter for sysdate -7

Hi,

 

I have a report requirement where I have added a table and lot of measures in that table.I have to show all the measures for a date range = todays date -7.

 Is there a way to create a visual level filter on the table or I have to create separate measures to achieve the same.

 

Regards

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Try relative date slicing in visual or  page or report level filters

 

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

Try relative date slicing in visual or  page or report level filters

 

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
ibarrau
Super User
Super User

Hi! It deppends on the requirement. If you want to show the last 7 days of the last date in a table of your model, then you can add a visual level filter type "relative" with the date column. If you want last 7 days from NOW(), then you might need to create a column in your table comparing dates like "if you date column > last 7 days then yes else no". You can then add that new column in a visual level filter and check "yes".

 

Hope this helps, let me know if you need more assistant with the calculated column.

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


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.