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: 
Not applicable

Qlikview Help

Dear All,

I want to help in Qlikview.

1) The excel Auto Save in a Folder every day and qlikview every day load the excel file.

2) 20140325AAL it is my excel. how i insert 2014= Year, 03= Month, 25= day, than AAL= Factory Name= AAL Auto Create in Qlikview.

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Actually load this way and for auto reload and creation you have to use the QV publisher and from there schedule the Qlikview app and reload on that time. And let me know from the excel file you want to read the Year,Month,Day and factory name if so then use this script

LOAD

SL,

[Type of Bill],

Remarks,

Left(Filebasename(),4) as Year,

Mid(Filebasename(),5,2) as Month,

Mid(Filebasename(),7,2) as Day,

Right(Subfield(Filebasename(),'_',1),3) as Factoryname,

FileBaseName() as Name

FROM

[..\20140325AAL.xls]

(biff, embedded labels, table is [20140325AAL$], filters(

Remove(Row, Pos(Top, 1))

));

And You get

You Get this.png

Regards

Anand

View solution in original post

12 Replies
AbhijitBansode
Specialist
Specialist

Use Subfield(filebasename(),'_',1) as Source to get whole filename. then you can string functions on it get desired fields. Like :

Left(Subfield(Filebasename(),'_',1),4) as Year

Right(Subfield(Filebasename(),'_',1),3) as Factoryname

and on...

its_anandrjs
Champion III
Champion III

In excel sheet you want to insert the 2014= Year, 03= Month, 25= day, than AAL= Factory Name= AAL, Or in the Qlikview you want.

Regards

Anand

Not applicable
Author

Thank's please sent a example.

Not applicable
Author

Thank's Please sent a example.

anbu1984
Master III
Master III

Load *,Left(FileNm,4) as Year,Mid(FileNm,5,2) as Month,Mid(FileNm,7,2) as Day,PurgeChar(FileNm,'0123456789') As FactoryNm;

LOAD Factory,

     AAL,

     F3,

     filebasename() as FileNm

    

FROM

[20140325AAL.xls]

(biff, embedded labels, table is [20140325AAL$]);

its_anandrjs
Champion III
Champion III

Try this below load script and but let me know from excel sheet you want to read to the Qlikview

LOAD Factory,

     AAL,

Left(Filebasename(),4) as Year,

Mid(Filebasename(),5,2) as Month,

Mid(Filebasename(),7,2) as Day,

Right(Filebasename(),3) as Factoryname,

FileBaseName() as Name

FROM

[20140325AAL.xls]

(biff, embedded labels, table is [20140325AAL$]);

Regards

Anand

Not applicable
Author

Thank's for your nicely cooperation but I am extremely sorry for your

valuable time wastage.

I want to Qlikview auto load the excel file every day 3:00Pm and auto

create date every day and auto create factory.

On Fri, Oct 31, 2014 at 12:53 PM, anbu cheliyan <qcwebmaster@qlikview.com>

Not applicable
Author

See the attatchment

Not applicable
Author

Hii

Field:20140325AAL

Left(field,4) as year

mid(field,5,2) as month

mid(field,7,2) as day

right(field,3) as  Factory Name