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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
JLeflaive
New Member

Relative date filter for month to date

I need to have a relative filter for a report that filters for all dates in the current month but excluding anything after yesterday.

 

The Current Month filter does not work because it includes data for the entire month.

 

Be glad of any assistance please!

1 ACCEPTED SOLUTION
djurecicK2
Super User
Super User

Hi @JLeflaive ,

 Are you using a date table? If so, you can try creating a column like IsYesterdayorBefore and filtering the report or visual on this field where this field is true. Use this filter in conjunction with the relative data slicer.

 

Something like this:

 

IsYesterdayorBefore =
var YesterdaysDate= TODAY()-1
return
IF(Dates[Date]<=YesterdaysDate,True, False)

View solution in original post

2 REPLIES 2
djurecicK2
Super User
Super User

Hi @JLeflaive ,

 Are you using a date table? If so, you can try creating a column like IsYesterdayorBefore and filtering the report or visual on this field where this field is true. Use this filter in conjunction with the relative data slicer.

 

Something like this:

 

IsYesterdayorBefore =
var YesterdaysDate= TODAY()-1
return
IF(Dates[Date]<=YesterdaysDate,True, False)

Thanks, that works!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.