Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Add Column with percentage change in Table Chart

Hey,

I have the following problem.

I have a table with 3 columns in my QVD-file.

The colums are month_year, person, sales

month_yearpersonsales
201408A55
201409A66
201408B100
201409B125
201408C5
201409C7

I want to solve the following problem:

I want to know how much more ore less a person sales, compared by the last month and the month before the last month, regarding the actual month (201410 in this case)

If I generate an expression as follows:

=(if(Month(month_year)=Month(Today())-1,sales))/(if(Month(month_year)=Month(Today())-2,sales))-1

with the dimension person I only get NULL-values.

Can you help me solving this case?

Thanks a lot in advance and best Regards!

Alexander

10 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Could you please mark my answer if you desire ....