Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
bilionut
New Contributor II

Load date from day field and folder name

Hi to everybody,

In a csv file like this:

InvoiceNo,     Day

123456,              1

123457,              5   

123458,              5

123459,             14

123460,             29

located in folders like

..\2011_01\sales.csv.

..\2011_02\sales.csv,

..\2011_03\sales.csv

etc...

I have only a column containing the day of invoice  (1,2,3, ... 31)

How can I load date column compose from folder name and Day field?

Thanks,

Ionut

2 Replies
Not applicable

Re: Load date from day field and folder name

Lonut:

When you load the file you can use fileDir() function to get the filepath. On this apply string functions like keepchar() to keep only year and month to get Year and month.

Next use date#() to for converting the string and day field into a date field.

Kiran.

bilionut
New Contributor II

Re: Load date from day field and folder name

Thanks Kiran for your reply. I try to do as you said.

Ionut

Community Browser