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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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