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

differecne of this year value to the previous year

Hi,

i m sharing the app where i need the differecne of this year value to the previous year

suggestion required

1 Solution

Accepted Solutions
Not applicable
Author

Hi

Please find attached file required solution.

Hope this will help.

If no years are fixed, we can do it in your mentioned format as wel.

View solution in original post

6 Replies
ashfaq_haseeb
Champion III
Champion III

Like this

Select any year from year listbox to get previous year sales.

Regards

ASHFAQ

Not applicable
Author

Hi,

Thanks for the reply

i need an extra column that represent the differences of the two years

Year

2012

2011

2010

values

400

200

300

Difference

400-200=200

200-300=100

-

(no prev yr to compare)

this is the format how i req

Not applicable
Author

Hi

Please find attached file required solution.

Hope this will help.

If no years are fixed, we can do it in your mentioned format as wel.

ashfaq_haseeb
Champion III
Champion III

Like this

Regards

ASHFAQ

jyothish8807
Master II
Master II

Hi Wow,

Try this, hope it works.

if(year(Year)<>previous(year(Year)),Values - previous(Values),'') as Difference

order by Year desc

Regards

KC

Best Regards,
KC
Not applicable
Author

Thanks Rajeshri for replying

the expression you have given me yielded the result but what if i have added one dimension let it be item with Car, Bike, Bus added as a dimension to the chart then the chart looks weird and the expression not works

let me know