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: 
dwighttrumbower
Creator
Creator

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
Creator
Author

Thank you, that worked.