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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

the date is wrong

I have get the table as the following . I get E from C & D , but the $(E) is the same value . It should DEALDATE>='20140101'  for A &B company and '20140401' for company C . It get the same '20140401' value.  How to do it  ?

A BCDEF
COMPANYITEMINDATEmin({<DEALDATE={'<=ENDDATE>=STARTDATE'}>}DEALDATE)

if(IsNull(D),INDATE,D)sum({<DEALDATE={">=$(E)"}>} QTY)
A2PU8256120420140101   201401015
B2PU8256120420140101     201401016
C2PU825612042014010120140401201404017
9 Replies
MK_QSL
MVP
MVP

Didn't understand your question.

Can you please elaborate little more?

Not applicable
Author

Hi,

I think your set definition for D should have double quotes instead of simple ones: {"<=ENDDATE>=STARTDATE"}

Otherwise, some sample data would help for the answer.

preminqlik
Specialist II
Specialist II

can you please elaborate more ?.....because where is deal date ?....

Not applicable
Author

A,B,C  column  is raw data .  D  column is the formula value  . I get E column from D column(for test ) . The F column is what I want to get . But the  F  column  is wrong because it get the same date   for company A,B,C  .  It should are different value for different company.

Not applicable
Author

for example , company A have many dealdate  for one item . the indate is only value for company&item. The startdate and enddate is input date scope. I want to sum the QTY  starting from E COLUMN DATE . I set D &E COLUMN as variables.

anbu1984
Master III
Master III

Can you provide sample data?

Not applicable
Author

Dear Jack he,

You can use the below script in scripting.@@@@

Date(right(INDATE,2)&'/'&mid(INDATE,5,2)&'/'&left(INDATE,4),'DD/MM/YYYY')

Please find the attachment.

Regards,

Shrikanth H Koppad

Not applicable
Author

the sample is as attached.

Not applicable
Author

sample file