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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
anand_kumar
New Member

Set the default date range in dashboard

Hi, do you have any idea how to set the date range to show the data for the last 1 week? The data would be shown for the last 7 days from today, data refresh every day.

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @anand_kumar 

 

I'd like to suggest you use relative date slicer or filter to display the result. I created data to reproduce your scenario.

Table:

a3.png

 

Result:

a2.png

a1.png

 

For further information, please refer to the following document.

Creating a relative date slicer and filter in Power BI 

 

Best Regards

Allan

 

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

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @anand_kumar 

 

I'd like to suggest you use relative date slicer or filter to display the result. I created data to reproduce your scenario.

Table:

a3.png

 

Result:

a2.png

a1.png

 

For further information, please refer to the following document.

Creating a relative date slicer and filter in Power BI 

 

Best Regards

Allan

 

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

amitchandak
Super User
Super User

@anand_kumar , You have to create a column like this and use

 

In last 7 days  = if('Date'[Date]>=TODAY()-7 && 'Date'[Date]<=TODAY(),"Last 7 Days",[Date]&"")

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.