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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Date Filter : Today's date + 2week and -2 week

Hello,

I would like to create a date filter which automatically changes todays date everyday and include data for +2 weeks and -2 weeks from todays date.date filter.PNG

 

 

 

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

As I know, we could create the relative date slicer like below.

 

relative date slicer.PNG

 

In addition, if you have a calendar table, you could create the measure like below.

 

 

Measure = DATEADD('Table'[Date],-14,DAY)
Measure2 = DATEADD('Table'[Date],14,DAY)

Here is the output.

output.PNG

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hello Cherry,

 

Thank you for your reply. But I have few doubts , regarding the date slicer using relative date filter. I am able to create that for two different date range, but once I do that I am not able to view any of my data in the visualization.

 

 

date error.PNGSecond doubt,how did you create the table using the measure? I created a table with calendar date in one column and added your measure formula, but it ended up ina error message. I have attached the screenshot of it.

 

Let me know if you know the solution. Tnx!

Hi @Anonymous,

 

Sorry for the delay! 

 

If it is convenient, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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