Modeling Performance
Hi Team,
I would like to get the next year summary value into previous year’s month.
If we need current year summary, then we can use YEARVALUE function to achieve but we need to bring data from next year so we can use either LOOKUP or TIMESUM .
I would like to know which function is effective between LOOKUP and TIMESUM.
Best Answer
-
Assuming you're trying to grab the year summary from next year and drop it into a month in the current year, I'd,
- Introduce a staging line item by year which uses NEXT(Sales), then
- Then refer to this new line with YEARVALUE(x)
Would definitely be more performant than TIMESUM and likely even MOVINGSUM in this instance.
Unfortunately, can't parameterise YEARVALUE(x) and I've found it doesn't really work if you incapsulute YEARVALUE(x) within NEXT/PREVIOUS, e.g NEXT(YEARVALUE(x))
0
Answers
-
OFFSET is also one option. OFFSET(Amount, -12,0) 😄
0 -
Don't use TimeSum() when you have Native Time in the Applies To. Also, you might want to try using MovingSum() as that will be performant. Lastly, I see you are using Cumulate(), if that module is dimensionalized by Time, try using Previous() instead so it would be Previous(Sales)+1.
0