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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Filter the Power BI report to current date when opening it

Hi,

 

I am using the below filters in my report and all the filters are connected to my Date table which has 10years data in it. From Year 2000 till 2030.

 

When i am opening my report i need all these filters to be selected with current yearm month, week and day values. After entering the report with current values, the user should also be able to change the filter values. How to perform this ? 

 

1.JPG

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , There is no option default using some kind of function.

 

Usally we create a column like this for year and select this year and same

Month Type = Switch( True(),
year([Date]) = year(Today())-1,"Last Year" ,
year([Date])= year(Today()),"This Year" ,
Format([Date],"YYYY")
)

 

The same is true for the month

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

View solution in original post

3 REPLIES 3
vanessafvg
Community Champion
Community Champion

Capture.PNGwhich visual are you using for the week days? is that the slicer? you can use the visual filter to set it to the date you want it to be you can set the relative date filter to filter it to the last day





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Greg_Deckler
Community Champion
Community Champion

@Anonymous - This one comes up so much I should know the answer by heart by now but can't remember exactly. I think it involves creating a column or measure for TODAY() or (TODAY() - [Date] * 1.) so basically a relative number of days and adding the slicer to the page set to 1? Sorry, it's something like that.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@Anonymous , There is no option default using some kind of function.

 

Usally we create a column like this for year and select this year and same

Month Type = Switch( True(),
year([Date]) = year(Today())-1,"Last Year" ,
year([Date])= year(Today()),"This Year" ,
Format([Date],"YYYY")
)

 

The same is true for the month

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.