Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
durgabhavani
Creator III
Creator III

Help me in getting output?

Hi All,

I have one field as below:

Time

4/22/2015 7:06:01 AM

3/20/2015 4:01:01 AM

3/20/2015 3:01:01 AM

2/12/2015 5:01:01 AM

1/15/2015 7:06:01 AM

2/10/2015 6:01:01 AM

2/14/2015 7:04:01 AM

1/08/2015 5:01:01 PM

Now i need to retrieve monthname, monthnumber and year from the above field values.

As I am planning to use monname as dimension in the barchart.

Thanks,

Durga


Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi,

Try this

month(Time) as Month,
num(month(Time)) as MonthNumber,
year(Time) as Year;
load * Inline [
Time
4/22/2015 7:06:01 AM
3/20/2015 4:01:01 AM
3/20/2015 3:01:01 AM
2/12/2015 5:01:01 AM
1/15/2015 7:06:01 AM
2/10/2015 6:01:01 AM
2/14/2015 7:04:01 AM
1/08/2015 5:01:01 PM
]
;

Regards,

Greeshma

View solution in original post

4 Replies
Anonymous
Not applicable

Hi,

Try this

month(Time) as Month,
num(month(Time)) as MonthNumber,
year(Time) as Year;
load * Inline [
Time
4/22/2015 7:06:01 AM
3/20/2015 4:01:01 AM
3/20/2015 3:01:01 AM
2/12/2015 5:01:01 AM
1/15/2015 7:06:01 AM
2/10/2015 6:01:01 AM
2/14/2015 7:04:01 AM
1/08/2015 5:01:01 PM
]
;

Regards,

Greeshma

anbu1984
Master III
Master III

Load
month(Time) as Month,
num(month(Time)) as MonthNumber,
year(Time) as Year;
load Timestamp#(Time,'MM/DD/YYYY hh:mm:ss TT') As Time Inline [
Time
4/22/2015 7:06:01 AM
3/20/2015 4:01:01 AM
3/20/2015 3:01:01 AM
2/12/2015 5:01:01 AM
1/15/2015 7:06:01 AM
2/10/2015 6:01:01 AM
2/14/2015 7:04:01 AM
1/08/2015 5:01:01 PM
]
;

qlikviewwizard
Master II
Master II

Hi durgabhavani,

Check this

Table1:

LOAD month(Time) as Month,

num(month(Time)) as MonthNumber,

year(Time) as Year;

LOAD * INLINE[

Time

4/22/2015 7:06:01 AM

3/20/2015 4:01:01 AM

3/20/2015 3:01:01 AM

2/12/2015 5:01:01 AM

1/15/2015 7:06:01 AM

2/10/2015 6:01:01 AM

2/14/2015 7:04:01 AM

1/08/2015 5:01:01 PM

];

durgabhavani
Creator III
Creator III
Author

Its working! Thanks Everyone!