Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to calculate month-on-month comparison?

QQ截图20140623165458.png

As we can see from the picture above,there are two columns and two lines in the chart.

I have already add two columns and the expressions are used as follows:

ADamount: sum({$<cal_month={"2014*"}>}[AD_amount])/1000

Receiveamount: sum({$<cal_month={"2014*"}>}[receiveamount])/1000

QQ截图20140623170612.png

But how to add two lines as month-on-month comparison?

1 Solution

Accepted Solutions
Not applicable
Author

Can't you try using above.

Sum(AD_amount)- Sum(above(AD_amount)) as the MOM Expression?

View solution in original post

10 Replies
tresesco
MVP
MVP

Use combo chart. Four expressions. In the expression tab, you can select an expression and choose bar/line from display options.

Not applicable
Author

I know it need combo chart. But how to write the expressions?

Not applicable
Author

Can anyone solve the problem?

Not applicable
Author

Can't you try using above.

Sum(AD_amount)- Sum(above(AD_amount)) as the MOM Expression?

Not applicable
Author

Thank you for your reply.

But when I use your expression,it doesn't show any number,why?

QQ截图20140624141401.png

Not applicable
Author

Oh, I've modified the expression to:

sum({$<cal_month={"2014*"}>}[AD_amount])/1000/Above(sum({$<cal_month={"2014*"}>}[AD_amount])/1000)-1

And it works.

Thank you very much.

Not applicable
Author

can you mark the thread as 'Answered' please?

Not applicable
Author

Done. Thank you very much.

Not applicable
Author

hi Joy, would you mind share this chart.