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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Ayyappa5678
Helper III
Helper III

Last 3 months date column using DAX in pbi, Kindly please help?

Hi Team,

I am new to power bi. 

I have date column as like below snapshot. based on this column I need to filter last 3 months data only.

By using relative date in slicer settings it will not working and not changing anything in visual level.

Kindly please help me with DAX Query for last 3 months?

Thanks in advance!

 

Ayyappa5678_0-1689174405398.png

 

1 REPLY 1
Anonymous
Not applicable

Hi @Ayyappa5678 ,

 

Check the model that the table with the [actual-delivery] is at 1 side of the relationship. 

Understand star schema and the importance for Power BI - Power BI | Microsoft Learn

 

Normally we create a date table in the model to filter the fact table. 

 

DateTable = CALENDAR(MIN('Table'[actual-delivery]),MAX('Table'[actual-delivery]))

 

Then use 'DateTable'[Date] to connect to 'FactTable'[Date]. And use the 'DateTable' [Date] column as the slicer value.

vcgaomsft_0-1689302208968.png

The exact cause of the problem can only be determined after checking your model.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.