Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
techvarun
Specialist II
Specialist II

Date Field Filter

I have a date field with timestamp in it. so in list box am getting N number of entries i need to show only one entry for the day

Regards & Thanks in advance

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this.

     Date(Floor(Date)) as Date

     You are seeing this because you have timestamp also in the date, so you need to remove the timestamp and thus the floor function is needed as shown in above example.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

8 Replies
alexandros17
Partner - Champion III
Partner - Champion III

IN the listbox use the expression (at the bottom of fields list) and set date(myfield), in this way the list box shows unique values for dates

techvarun
Specialist II
Specialist II
Author

Sorry dude still it is showing all the values

alexandros17
Partner - Champion III
Partner - Champion III

try date(myDate,'dd/MM/yyyy')

tresesco
MVP
MVP

I would suggest to use MakeDate() function. Date() function formats the value while the underlaying numric value remains same.

techvarun
Specialist II
Specialist II
Author

Still its showing the same

is there any way to fetch unique date values from qvd itself?

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this.

     Date(Floor(Date)) as Date

     You are seeing this because you have timestamp also in the date, so you need to remove the timestamp and thus the floor function is needed as shown in above example.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable

I would advise you do make a new field in the back end Date(Floor(DateTimeField),'DD/MM/YYYY') AS DateField

techvarun
Specialist II
Specialist II
Author

"Floor(Date) as Date" Used this in Load level and resolved the problem

Many Thanks