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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
berryandcherry6
Creator III
Creator III

getting error "garbage after statement" while loading script

Hi all,

I am trying to create table in script  to get client id  according to below condition but it showing me error while loading.

Client_IdData:

Load

campaign_id   Where campaign_start_date < today() and campaign_start_date > (today()-7)  Resident INVITATION;

Please help me in this regard.

15 Replies
SunilChauhan
Champion II
Champion II

thats ok but from where you are getting campaign_start_date. I cant see in beoth Tables

Sunil Chauhan
jonathandienst
Partner - Champion III
Partner - Champion III

>>campaign_start_date  is not in Invitation Table,its in CAMPAIGNMETRICS Table.

Not in the script you posted...

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
berryandcherry6
Creator III
Creator III
Author

Hi,

    date(floor(campaign_start_date),'MM-DD-YYYY') as campaign_start_date, 

campaign_start_date will be in CAMPAIGNMETRICS Table. Sorry i missed adding over there.


Thanks

berryandcherry6
Creator III
Creator III
Author

Hi,

    date(floor(campaign_start_date),'MM-DD-YYYY') as campaign_start_date,

campaign_start_date will be in CAMPAIGNMETRICS Table. Sorry i missed adding over there.


Thanks

berryandcherry6
Creator III
Creator III
Author

Hi,

    date(floor(campaign_start_date),'MM-DD-YYYY') as campaign_start_date,

campaign_start_date will be in CAMPAIGNMETRICS Table. Sorry i missed adding over there.


Thanks

SunilChauhan
Champion II
Champion II

I thing you could

Invitation

left join

CAMPAIGNMETRICS

based on batch_meta_data_id i.e make sure no other id common

then

Client_IdData:

Load

campaign_id

Resident INVITATION Where (campaign_start_date < today() and campaign_start_date > (today()-7) );

Sunil Chauhan