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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Difference between the same value at different date

Hy experts,

I'm new on qlikview.

I have a barshart which display the number of sales by date :

Exemple :

May : 250

June : 200

Jully : 300

My question is how to creat a calculated expression to display the difference between two months ?

x (June/May) = - 50

X (Jully/June) = 100

Could you help me please ?

Regards,

Pierre.

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Hi Pierre,

if you want to show the difference between current and previous month you can use "above" function

sum(Value) - above(sum(Value))

The function will calculate diff from previous dimension value for each value.

Hope this helpes!

Stefan

View solution in original post

2 Replies
Not applicable
Author

Hi Pierre,

if you want to show the difference between current and previous month you can use "above" function

sum(Value) - above(sum(Value))

The function will calculate diff from previous dimension value for each value.

Hope this helpes!

Stefan

Not applicable
Author

Thanks Stefan, it works

Regards.