DAX date functions

KimC2504

Board Regular
Joined
Jul 17, 2012
Messages
141
Hi,
I have a list of data of which one column is the date the opportunity was last updated. Each opportunity can have several parts so I have created a formula to give me the last date the opportunity was updated as follows:

Last Updated = max(SFDC[Last Modified Date])

This formula is working fine however I now want to change the formula to look at opportunities that were updated over 2 months ago only. I have tried the following formula:

Updated > 2mths ago = [Last Updated]<(today()-60)
I have checked the formula and it is ok however it takes forever to read the data and the spinning wheel doesn’t stop and I end up pressing escape. Any suggestions as to how to solve this problem?

I would also like a criteria added of Version=”Current” if possible?

Thanks

Kim
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I would think the below would work fine, though... often this sort of thing works better if its related to a (smaller) calendar table, where you are filtering fewer rows there.

MaxOver2MoAgo := CALCULATE(MAX(SFDC[Last Modified Date]), SFDC[Last Modified Date] < TODAY() - 60)

Not clear to me if you were intending a calc column vs measure/calc field?
 
Upvote 0

Forum statistics

Threads
1,224,045
Messages
6,176,067
Members
452,703
Latest member
kinnowboxes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top