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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Comparing selected week to previous week

Hi,

I have a date field (Salesweek) and few other KPI's. I created listbox for Salesweek and other table chart has KPI's.

When I select Salesweek 8/18/2014 in the list box and my table charts has to show NET KPI for that selected date and a week before data 8/11/2014.

Prod          NET          NETpreviousweek

LAPTOP   $2000        $2500

Is this can be achieved by set expression?

Thanks,

10 Replies
jyothish8807
Master II
Master II

Hi,

try this:

sum({<Date={">$(=Var)<$(=Var)-7"}>}Amount)

Regards

KC

Best Regards,
KC