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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
gerrycastellino
Creator III
Creator III

question on distinct in list box

I'm creating a list box with values, based on distinct year from a ship date:

=distinct(year(ShipDate))

QV does not like this.

3 Replies
PrashantSangle

Hi,

if your shipdate in timestamp then,

Just write

Year(floor(ShipDate))

or

Year(ShipDate)

then List Box will show you only distinct value

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable

you can try this

distinct(year(date(shipdate)))

Anonymous
Not applicable

Hi Gerry,

if you want to calculate year in front end not in backend then

Directly you can write in list box expression

year(date).