Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I gave a table , contains Week start date and week end date and other columns ,
But i want to load the resident as week numbers also
1
2
3
4
5
6
7
8
9.........
..
..
..
..
52 as Week field.
How can i do that ....
thanks
Probably this one is more clair for you
Yes but you are creating saprate table but i need same thing during resident load from source table.
Please post example data and desired output.
How you decided
autogenerate 2190;
2190 value
I am attaching excel for data .
excel contains two sheets sorce data and desired output please have a look
How you decided
autogenerate 2190;
2190 value
Hi,
maybe like this?:
LOAD *,
Week([Month Date]) as Week;
LOAD Date([Month Date], 'MMM') as month,
Year,
value,
Date([Month Date]+IterNo()-1) as [Month Date]
While [Month Date]+IterNo()-1 <= MonthEnd([Month Date]);
LOAD *,
Date(Date#('1-'&month&'-'&Year)+IterNo()-1) as [Month Date]
FROM [http://community.qlik.com/servlet/JiveServlet/download/598314-122554/Data.xlsx] (ooxml, embedded labels, table is [Sorce Data]);
hope this helps
regards
Marco
This is only for tests
Is only for tests, and is 2190 = 365 (year) x 6