Forum Discussion
rgirotra
9 years agoFrequent Visitor
Calculated Measure performance enhancement
I have created a measure to calculate the Last 45-day cumulative SalesValue for particular SKU of selected Date. this measure is taking more time than expected to load the data. is there any better...
- 9 years ago
Alternate dax statement does same thing:
CALCULATE( [Total Sales],
DATESINPERIOD( Dates[Date], MAX( Dates[Date] ), -30, Day ) )
am using generic table/field names, not yours, 30 day example of course - and Dates table is just that ....assume you have one...
I've never seen a statement that this would be faster so am interested if it is, hope you'll post....
CahabaData
9 years agoMemorable Member
Alternate dax statement does same thing:
CALCULATE( [Total Sales],
DATESINPERIOD( Dates[Date], MAX( Dates[Date] ), -30, Day ) )
am using generic table/field names, not yours, 30 day example of course - and Dates table is just that ....assume you have one...
I've never seen a statement that this would be faster so am interested if it is, hope you'll post....