Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
nevilledhamsiri
Specialist
Specialist

Error in individual product growth

HI! Our experts,

Please look at the data loaded of which the dimension being the Class_code & two expressions such as Current Year & Last Year figures. Once the growth rate was calculated in the normal calculation method as I have done, it is alright except classes M3 & MC which should always be the positive growth but produce the negative growth. Hence please write an expression for me to overcome this. Also the total growth also needs to be correct which needs to be positive figure as shown below.

Also please make sure the expression proposed to be able to apply as it is. I mean I do not require to do this in the script & so on. Is there a expression available just to calculate the growth which produce correct out put!

Thanks

Neville

1 Solution

Accepted Solutions
nevilledhamsiri
Specialist
Specialist
Author

Dear Sunny,Prodigy

Thanks a lot you all!

A very simple straight forward expression worked well & produced my expected results. Thanks a lot again.

View solution in original post

6 Replies
m_woolf
Master II
Master II

sum(CY-LY)/fabs(LY)

YoussefBelloum
Champion
Champion

Hi Dhamsiri,

on the M3 and MC CLASS_CODE, you have a minus sign, so you want to load the data with the minus signs on the lines and ignore them ?

Can you give more explanations please ?

sunny_talwar

May be this

Fabs(Sum(CY-LY)/LY)

or

Sum(CY - fabs(LY))/fabs(LY)

nevilledhamsiri
Specialist
Specialist
Author

Dear Sunny,Prodigy

Thanks a lot you all!

A very simple straight forward expression worked well & produced my expected results. Thanks a lot again.

sunny_talwar

Please mark the response which helped you as correct or helpful instead of marking your own response as correct

nevilledhamsiri
Specialist
Specialist
Author

Ok, Thanks