Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

fmigg2295p
New Contributor

Select automatic-created date field on year.

Hi,

I have a Date with format MM/DD/YYYY, Qlik Sense Desktop splits it into

DATE.Year,

DATE.QuarterYear,

... ,

etc

I'm trying to select DATE.Year into field() as a parameter in the following way:

app.field('DATE.Year').unlock();

app.field('DATE.Year').selectValues([2010]);


But instead displaying existent data in 2010 specifically, the code displays the visualization normally as if I didn't do anything.


How is the correct way to call auto-generated date fields in field() function. 

Tags (3)
Community Browser