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
strn1k
Frequent Visitor

Date slicer default values

Hi, I have date slicer (between) in my report and I would like to set "To date" to todays date and "From date" to first day of current month everytime when user opens that report.
Is this possible in Power BI RS (May - 2024)?
Thanks in advance for the advice.

Martin Strnad

6 REPLIES 6
strn1k
Frequent Visitor

Hi @Anonymous , do you know why the filter is not applied?

Anonymous
Not applicable

Hi, @strn1k 

 

For any view you want to output you can apply measure equal to 1.

vzhangtinmsft_0-1729060322471.png

Please check the attachment to see if it helps.

 

Best Regards,

Community Support Team _Charlotte

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

Anonymous
Not applicable

Hi, @strn1k 

 

You can try the following methods.

Measure = 
Var _date1=DATE(YEAR(TODAY()),MONTH(TODAY()),1)
Var _date2=TODAY()
RETURN
IF(SELECTEDVALUE('Date'[Date])>=_date1&&SELECTEDVALUE('Date'[Date])<=_date2,1,0)

vzhangtinmsft_0-1725257787951.png

Is this the result you expected?

 

Best Regards,

Community Support Team _Charlotte

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

Hi, this is very great, thanks for the answer. 

But there is still one huge issue, the date filter now has the date range that I want but it is not applied to the visualizations :(.

So users have to "confirm" (click to filter and click to both dates) to apply this filter to visualizations and it is very undesirable.

strn1k_0-1726054603621.pngstrn1k_1-1726055717089.png

 

strn1k
Frequent Visitor

Hi @Anonymous , do you know why the filter is not applied?

dan4314
New Member

Hello Martin Strnad,

maybe this will help you https://www.youtube.com/watch?v=JlVHsZUk1nc.

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.