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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
iliaisyah
Contributor III
Contributor III

Date Period in X axis as date in different tab

i have data as example excel.

i wish to have a flat table only in qlikview, to show monthly changes in each Block.

i wish to see the changes over the month but the date month seperated in each tab.

 

how i want to put it in qlikview

 

Labels (1)
1 Solution

Accepted Solutions
agni_gold
Specialist III
Specialist III

if you don't want to use macros , please use below code to load ,

ODBC CONNECT TO [Excel Files;DBQ=C:\Users\agnivesh_kumar\Downloads\DatabaseIDN qv dis.xlsx];
ExcelSheets: SQLTABLES; Sheets: Load Distinct TABLE_NAME Resident ExcelSheets where TABLE_TYPE='SYSTEM TABLE'; DROP Table ExcelSheets;

For i =1 to NoOfRows('Sheets')
Let vSheet = Replace(Peek('TABLE_NAME',$(i),'Sheets'),'$','');
Data:
LOAD * , '$(vSheet)' as Period
FROM
[C:\Users\agnivesh_kumar\Downloads\DatabaseIDN qv dis.xlsx]
(ooxml, embedded labels, table is $(vSheet));
Next;
Drop Field TABLE_NAME;

View solution in original post

2 Replies
agni_gold
Specialist III
Specialist III

if you don't want to use macros , please use below code to load ,

ODBC CONNECT TO [Excel Files;DBQ=C:\Users\agnivesh_kumar\Downloads\DatabaseIDN qv dis.xlsx];
ExcelSheets: SQLTABLES; Sheets: Load Distinct TABLE_NAME Resident ExcelSheets where TABLE_TYPE='SYSTEM TABLE'; DROP Table ExcelSheets;

For i =1 to NoOfRows('Sheets')
Let vSheet = Replace(Peek('TABLE_NAME',$(i),'Sheets'),'$','');
Data:
LOAD * , '$(vSheet)' as Period
FROM
[C:\Users\agnivesh_kumar\Downloads\DatabaseIDN qv dis.xlsx]
(ooxml, embedded labels, table is $(vSheet));
Next;
Drop Field TABLE_NAME;