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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
dwighttrumbower
Creator II
Creator II

Create new table with no records

Is this possible? I want to create a new table in script that data will be added to with cancatenate and in a loop?

WeeklyStreaks:
LOAD
QuotaSalesRegion,
WeekStartDate,
Year,
Week,
Month,
WeeklySales,
WeeklyQuota,
QuotaMetFlag,
0 AS Streak
WHERE 0; // Empty initial table

It does error out. So syntax might not be correct .

Labels (2)
1 Solution

Accepted Solutions
aitho
Partner - Contributor
Partner - Contributor

Hi, try this:

WeeklyStreaks:

LOAD

Null() as QuotaSalesRegion,

Null() as WeekStartDate,

Null() as Year,

Null() as Week,

Null() as Month,

Null() as WeeklySales,

Null() as WeeklyQuota,

Null() as QuotaMetFlag,

Null() as Streak

Autogenerate 0;

View solution in original post

2 Replies
aitho
Partner - Contributor
Partner - Contributor

Hi, try this:

WeeklyStreaks:

LOAD

Null() as QuotaSalesRegion,

Null() as WeekStartDate,

Null() as Year,

Null() as Week,

Null() as Month,

Null() as WeeklySales,

Null() as WeeklyQuota,

Null() as QuotaMetFlag,

Null() as Streak

Autogenerate 0;

dwighttrumbower
Creator II
Creator II
Author

Thank you, that worked.