Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filter on date

Hi,

I have just created a pivot table.
Now I would like to make a choice list of the years.

I use the format for only showing the years.
But now all years are showed like 20 times, but I want every year only 1 show.
Can I use some distinct function in Qlikview?

Example:

2010

2011

2012

1 Solution

Accepted Solutions
Not applicable
Author

You asked to have the years only, but for presentation purpose.

For Qlikview these values are distinct dates formatted to show only the year. So they look like duplicates, but they are actually seperate values.

In General,

Listboxes will only show distinct values.

To avoid this, create a Year filed for the date you want, or you can use as an expression in the list box - Year(date)

(We create at Calender for that purpose.)

Goodluck!

View solution in original post

3 Replies
Not applicable
Author

I'm not sure I understand..

Is the Date (years only) your dimension? If so, what is your expression? it depends what you want to calculate.

Not applicable
Author

No, year is no dimension

I just want to filter the data from the pivot table with year.

Example:

ID     Animal    Count          date

1      Cows       200        01/01/2011

2      Sheeps    100        01/01/2012

3      Horses     50          02/01/2012

Now I want to filter the orders of 2012

Now my choice list is like this

2011

2012

2012

But I want to use distinct so the list would be like this

2011

2012

Not applicable
Author

You asked to have the years only, but for presentation purpose.

For Qlikview these values are distinct dates formatted to show only the year. So they look like duplicates, but they are actually seperate values.

In General,

Listboxes will only show distinct values.

To avoid this, create a Year filed for the date you want, or you can use as an expression in the list box - Year(date)

(We create at Calender for that purpose.)

Goodluck!