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

Set Analysis Date range

Hi All,

I need to get the sum of sales for date range between x to y date. My Expression look like this

=(sum({$<PROMOTION_CODE=,PROMOTION_NAME=,STYPE_KEY={2},SALES_DATE = {">=$(=date(max(SALES_DATE)-21))<=$(=date(max(SALES_DATE)-1))"}>}DAY_SLS_ACT_BC))

I checked in header whether the date parameter is passing or not,

=(sum({$<PROMOTION_CODE=,PROMOTION_NAME=,STYPE_KEY={2},SALES_DATE = {">=20/02/2013<=12/03/2013"}>}DAY_SLS_ACT_BC))

But i'm get the sum as "0". Please help me to identify where i'm wrong in this expression

Thanks in advance,

Selva

1 Solution

Accepted Solutions
sushil353
Master II
Master II

Hi,

please make sure that the SALES_DATE and the parameter format are same...

if yes then please share sample application..

HTH

Sushil

View solution in original post

2 Replies
sushil353
Master II
Master II

Hi,

please make sure that the SALES_DATE and the parameter format are same...

if yes then please share sample application..

HTH

Sushil

Not applicable
Author

Thanks Sushil,

Format is wrong. Now fixed

Selva