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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
suvechha
Helper IV
Helper IV

How to filter Max(Date) - 31 days ?

Hi All ,

 

In my chart I use Day Month in X axis ... Can I filter by using Date and the condition will be Max(Date) -31 days 

suvechha_0-1635385209141.png

 

4 REPLIES 4
TheoC
Super User
Super User

Hi @suvechha 

 

If my earlier post doesn't achieve what you are after, you can also use the Relative Filter to achieve the identical outcome. Alternatively, you can use 1 month etc rather than 31 days (similar to that of the earlier post).

TheoC_3-1635747979093.png

 

Hope this helps  🙂

 

Theo

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Hi TheoC,

 

This one worked, but the sort order not working correct . Will you be able to help me ?

 

Currently the sort order like below -

1.PNG

 

But it should be like below-

2.PNG

Anonymous
Not applicable

@suvechha 

I believe relative slicer will do your favor. 

Use a relative date slicer or filter in Power BI - Power BI | Microsoft Docs

Vpazhenmsft_0-1635747532201.png

 

Best regards
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

TheoC
Super User
Super User

Hi @suvechha 

 

You should be able to adjust the Date field to the following criteria:

 

TheoC_0-1635385672124.png

 

The output will look like the below (note that my Date table in this example has 30 September as the max date):

 

TheoC_1-1635385768233.png

 

Hope this helps 🙂

 

Theo

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors