Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I tried using the YEAR() function but I am not getting any records.
I imported an excel file in my qlikview and I wanted to extract year from a timestamp column, but I am unbale to do so.
What could be the error?
PFA screenshot
I want to Year from the ORDERED DATE list box,
for example
2014
2015
2016
Thanks
This either in Script / Listbox Expression ..
=Date(Date#([ORDERED DATE],'DD/MM/YY hh:mm TT'),'YYYY')
Try like:
Year(Date#([Ordered Date], 'DD/MM/YY hh:mm TT'))
This one
Year( Date(Date#([Ordered Date], 'DD/MM/YY hh:mm TT'),'YYYY') )
Perfect, Thanks
But now I want distinct year in the list box, how do I get that?
Thanks, even this worked. But I want distinct values in listbox.
For Distinct May be this?
In script
Load Distinct Date(Date#([ORDERED DATE],'DD/MM/YY hh:mm TT'),'YYYY') as DateFieldName;
In Listbox, Try this? and give it caption as business
Aggr(Date(Date#([ORDERED DATE],'DD/MM/YY hh:mm TT'),'YYYY'), [ORDERED DATE])
Using year() as I showed above should give distinct values in list box. Could share a sample qvw.
Hey, it worked when applied in script...got distinct year! Thanks a lot.
Can you close the thread now with appropriate answers correct / Helpful or references.