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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
H_Jones
Helper I
Helper I

Date Filter in New Measure

Hi,

 

Im trying to do a count with a condition on the date.

 

I want to count people who have a date in the 'Acquisition_Date' column thats before 24 months from the current date - so i want to the cut off date to update with every month that passes and not to be fixed. i.e. they have been a customer for at least 2 years. I cant find how to reference 'today'.

 

I would also like to add into this formula that another column ('Value_Change') is '>0'.

 

Please help 🙂

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

Hi H_Jones,

 

If I understand your question correctly, you want to filter the Users which the 'Acquisition_Date' is at least two years ago based on current date. In DAX, you can use TODAY() function to reference 'today'. So your filter expression can be like:

 

FILTER ('User', DATEADD('User'[Acquisition_Date],2,year) < TODAY() )

 

Regards,

 

 

MattAllington
Community Champion
Community Champion

Are you sure you want today?  It seems to me that you should be using a date in the calendar that is 2 years after the acquisition date. That way the answer is still the same regardless what today's date is. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.