Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Live chat with experts, bring your API Integration questions. June 15th, 10 AM ET. REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
soha1902
Creator
Creator

This Year vs Previous Year

I have Year and Sales data.

Now I want if user select any year then table will show selected year and previous year sales.

Please help me. Sample app attached.

2 Replies
VishalWaghole
Specialist II
Specialist II

Hi Soha,

PFA Hope this will solve your issue.

Current Year = sum({<Year= {'$(=Max(Year))'}>} Sales2)

Previous Year = sum({<Year= {'$(=Max(Year)-1)'}>} Sales2)

-- Regards,

Vishal Waghole

er_mohit
Master II
Master II

Hi

Go here Current Period and Last year Same Period

Hope it helps you