Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Month on Month calculations

Hi, I have a graph which displays the number of items for different months, there is a value for each month. I want to create another graph which will display the month-on-month for each item as a similar line chart.

For example the value for Feb would be

Month-on-Month (Feb) =   (Items in Feb) / (Items in Jan) -1

I'm having trouble getting the values for previous month for each month, have tried a few set expressions but don't seem to work. Is there any way to get the value of previous month for each month using a set expression.

Clipboard01.jpg

Will appreciate any help regarding this

Thanks

Varun

5 Replies
MayilVahanan

Hi

May be try like this

Sum(Exp) / Above(Sum(Exp))

Month in ascending order

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
senpradip007
Specialist III
Specialist III

Hi Mayil,

Its working for continuous period. But for selected period "Above()" function is not fruitful. Pls help.

MayilVahanan

Hi

In that case, you need to bring "flag" for previous month.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
sunny_talwar

Or Try this:


Sum(Exp) / If(Sum(Exp) > 0, Above(Sum({<Period = >}Exp)))

senpradip007
Specialist III
Specialist III

Can you please explain bit more ??