Forum Discussion
BlueWhite3699
Helper III
1 year agoMeasure take for ever to run
Hi Experts the following measure retuns back the correct return - no issue there. But when applied to a 16million rows of data for one fiscal year its just take forever to return a value back in ...
- 1 year ago
YTD Forecast (full year) = CALCULATE ( SUMX ( ADDCOLUMNS ( VALUES ( 'Date'[_MonthYearSort] ), "@TotalForecast", [Forecast] ), [@TotalForecast] ), DATESYTD ( 'Date'[Date], "31/03" ) )
BlueWhite3699
Helper III
1 year agoHi - that formula is not going to work on 16million rows of data and based on the model. I have tried that and give the wrong answer
rajendraongole1
Super User
1 year agoHi BlueWhite3699 - can you please check the below logic:
YTD Forecast (full year)_1 =
VAR YTDForecast =
CALCULATE(
[Forecast], -- Use SUM directly for performance
DATESYTD('Date'[Date], "31/03"),
REMOVEFILTERS('Date')
)
RETURN YTDForecast
- BlueWhite36991 year ago
Helper III
Hi Expert - its still incorrect look at my value for Mar 25 407839. thats the correct answer and kindly look at your value