Discussion Board for collaboration on QlikView Scripting.
I have an excel file with all dates of the year. I dont have the month inside the excel. Is it possible to get the month in QV that i can select them by month with july and not with "7"?
Yes its possible create an inline table and join with the month of the excel file
LOAD * INLINE [
Month_ID, Month, Quarter
2, Feb, Q1
3, Mar, Q1
4, Apr, Q2
5, May, Q2
6, Jun, Q2
7, Jul, Q3
8, Aug, Q3
9, Sep, Q3
10, Oct, Q4
11, Nov, Q4
12, Dec, Q4
Month(Date) AS Month,
Here u r joing with the month field to the inline table ,
so by default whaterver the month number u get selected respective month name is shown..
If ur still unclear about this ,
post a sample file ..
I believe you meant month is there but in numeric format, if it is so, you can read the excel date in qlikview like the following (to get the month name):
Date(Yourdatefield, 'DD-MMM-YYYY') as QVDate,
Date(Yourdatefield,'MMM') as Month
From <Excel path>;
The exemple file is just some dates... and the values are random tipped in....
If you want to just convert from numeric to text representation you can do this way:
Load (...), Date(Date#(ExcelMonth,'MM'),'MMM') as MonthDescriptionFROM ExcelFile;
Date(Date#(ExcelMonth,'MM'),'MMM') as MonthDescription