Page 1 of 1

Spread % Change add

Posted: Wed Aug 21, 2013 7:50 pm
by pmakulski
I think this is a bug. But after searching around a bit, I don't see anybody else complaining about it, so maybe it is by design. But why anybody would want it that way ...

My user wanted to increase a future budget by 2% over a range of accounts, cost centres and periods.
I had them do a spread, using 2% Add.
But what TM1 actually did surprised the heck out of me.
Negative numbers moved toward zero, instead of away.

e.g. 1000 and -1000 after a 2% Add became 1020 and -980
I expected it to be 1020 and -1020

(The correct incantation is to do a 102% Replacement.)

Undoing this change was quite trickey, because no single transformation would put the numbers back the way they were. I had to write a TI process to operate on just the negative numbers.
So, I got the problem fixed, but the next person who wants to do a spread to increase positive and negative numbers could easily make the same mistake.

(9.5.2)

Re: Spread % Change add

Posted: Wed Aug 21, 2013 8:41 pm
by Duncan P
I think you are right. 2% of a negative number is a negative number.

Re: Spread % Change add

Posted: Wed Aug 21, 2013 11:41 pm
by EvgenyT
Are you using Percentage Change method for data spread?

If you use update action: subtract on negative numbers you get e.g -1020 for -1000 . . . its not ideal, but seems like a work about (only for negative numbers thou)...

ET

Re: Spread % Change add

Posted: Thu Aug 22, 2013 6:39 pm
by pmakulski
EvgenyT:
Yes, it should come out to -1020 but if you try it (% Change add 2%) you'll see that it comes out as -980.
2% of -1000 is -20. But it doesn't add it to the original (which would/shoud be -1000 + -20 = -1020), it adds the absolute value (so -1000 + abs(-20) = -980 )

DuncanP:
Yes I was using %Change add.
I agree, %Change subtract would give the correct value for negative numbers, but it has the same problem as %Change add, whenever it is applied to a mixed collection of positive and negative numbers.

The only thing that works reliably/correctly for mixed collections is %Change replace (ie. 102% for 2% increase or 98% for 2% decrease).

I'd like to be able to configure the spread options available to users so that add and subtract options are not even available, since they yield incorrect irreversible spreads. Or better yet, correct the calculation they perform. (Unless there is a legitimate reason for wanting to increment positive numbers and decrement negative numbers. - I can't think of a reason anyone would want to do that.)