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: 
subbareddykm
Creator II
Creator II

Table store

HI All ,

How to divide my table based on State Field and create the QVD's corresponding statename Qvd's with single load and store statements.

1 Solution

Accepted Solutions
stascher
Partner - Creator III
Partner - Creator III

States:

load distinct State from Sample.xlsx (ooxml, embedded labels, table is Sheet1) ;


for each state in fieldvalueList('State')

Temp:

  load * from Sample.xlsx (ooxml,embedded labels,table is Sheet1) where State='$(state)';


  store Temp into [OutFile_$(state).qvd]; // change to your desired output file name template.

  drop table Temp;

next state;

drop table States;

View solution in original post

1 Reply
stascher
Partner - Creator III
Partner - Creator III

States:

load distinct State from Sample.xlsx (ooxml, embedded labels, table is Sheet1) ;


for each state in fieldvalueList('State')

Temp:

  load * from Sample.xlsx (ooxml,embedded labels,table is Sheet1) where State='$(state)';


  store Temp into [OutFile_$(state).qvd]; // change to your desired output file name template.

  drop table Temp;

next state;

drop table States;