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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Current Year vs Last Year

Hi. How can i display all the clients that bought from us this year, but didn't buy the last year.

Labels (1)
3 Replies
abeyphilip
Creator II
Creator II

Using Set analysis.

If you have a year field mention specifically this year. Something like below:

Year={$(=year(today()))}

Regards,

Abey

jagan
Partner - Champion III
Partner - Champion III

Hi,

Check E() in Qlikview help file in Set Analysis section

=sum( {$<Customer = E({1<Year={$(=Year(Today())-1)}>} Customer) >} Sales )


Regards,

Jagan.

Not applicable
Author

try this,

For Max Year Calculation

create one variable like

vMaxYear=max(year(date(Datfield,'DD/MM/YYYY')))

use above variable in setanalysis like

{<Datefield={$(vMaxYear)}>}