Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
adiarnon
Creator III
Creator III

DATE TABLE

hi,

i have this table-

projectstart datefinish date
A1.1.143.1.14
B2.1.145.1.14
C15.1.1416.1.14

and i want to create this table -

projectdate
A1.1.14
A2.1.14
A3.1.14
B2.1.14
B3.1.14
B4.1.14
B5.1.14
C15.1.14
C16.1.14

HOW CAN I DO THAT?

TNX,

ADI

5 Replies
tresesco
MVP
MVP


Load
project,
Date([start date]+IterNo()-1) as Date
While [start date]-1+iterno()<=[finish date];


LOAD project,
     Date#([start date], 'DD.MM.YY') as [start date],
     Date#([finish date],'DD.MM.YY') as [finish date]
FROM
[http://community.qlik.com/thread/120967]
(html, codepage is 1252, embedded labels, table is @1);

its_anandrjs

By Iterno() function you can create missing dates see the load script for that or you can create another table and use that table for new date columns if old table not required you can drop them

Raw:

LOAD

     project,

     Date(Date#([start date], 'D.M.YY')) as [start date],

     Date(Date#([finish date],'D.M.YY')) as [finish date];

LOAD * Inline

[

project,start date, finish date

A, 1.1.14, 3.1.14

B, 2.1.14, 5.1.14

C, 25.1.14,3.2.14

];

NewTable:

Load project, Date([start date]+IterNo()-1) as date

Resident Raw

While [start date] - 1 + iterno() <= [finish date];

//DROP Table Raw;

Not applicable

let vstartdate = floor(date#('20101001','YYYYMMDD'));

let vEnddate = floor(monthend(today()));

Temp:

LOAD $(vstartdate) + RowNo() as temp_date

AutoGenerate($(vEnddate) - $(vstartdate));

MAP_FISCAL_MONTH:

Mapping LOAD *  Inline

[

MonthName, MonthNo

Oct, 01

Nov, 02

Dec, 03

Jan, 04

Feb, 05

Mar, 06

Apr, 07

May, 08

Jun, 09

Jul, 10

Aug, 11

Sep, 12

];

Josh_Good
Employee
Employee

Create a master calendar that uses the minimum start date and the maximum end date as the range of dates. See this Re: Creating A Master Calendar. But in your case lines  7-11 would be:

Temp: 

Load 

               min(Start Date) as minDate, 

               max(End Date) as maxDate 

Resident <tablename>; 

 

Then use the Intervalmatch function to link you calendar to your data table.

Not applicable

Hi

I used Interval Match it worked perfectly

Please see below blog

http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch

thanks and regards

Padma