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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Rosh89
Helper I
Helper I

Need date range filter to automatically update with yesterday's date on a daily basis

Hi,

 

I have a sales report published in service which shows sales for the year 2022. I have a date slicer which is as shown below 

 

Rosh89_0-1646223079273.png

 

The date on the left (1/1/2022) should not change and the date on the right (1/3/2022) should update everyday with yesterday's date when a report is being sent today. Is there a way I can accomplish this using DAX in desktop and need not worry about changing the date manually in service everyday?

 

Thanks in advance.

 

Regards,

Rosh

3 REPLIES 3
Anonymous
Not applicable

Hi @Rosh89 ,

 

I think you can create a DimDate table by "Calendar" function in Dax.

Date = 
CALENDAR(DATE(2022,01,01),TODAY()-1)

It will always show dates in range from 2022/01/01 to yesterday.

1.png 

 

Best Regards,
Rico Zhou

 

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

Hi @Anonymous,

 

I tried what you suggested but it does not work for sending emails automatically on a daily basis. The date slicer will always show the date the report was published from desktop to service. 

 

Best Regards,

Rosh 

amitchandak
Super User
Super User

@Rosh89 , As far as I know, you can not initialize date range slicer. You can log an idea https://ideas.powerbi.com/ideas/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.