Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
neha_shirsath
Specialist
Specialist

Multiple dates in same table

Hello Community,

I'm facing issue with multiple dates.

I've one table containing created date, release date and changed on date and need to create calendar(here i'm using created date for calendar).

I'm attaching the sample data in that if i'm selecting created date as 2 then i want to see all the lot released on 2 and changed on 2.

so how we can do this on set analysis/in script?

Thanks in advance.

-Neha

13 Replies
nirav_bhimani
Partner - Specialist
Partner - Specialist

Hi Neha,

Please find the attached file. You have to use the date island table.

hope this will help you.

Regards,

Nirav Bhimani

petter
Partner - Champion III
Partner - Champion III

First of all: The UniqueID field is just a helper field to collect the rows that results from a search. The comparison you write in between the double quotes is what matters - trust me.

This pose as a new question ... but anyways - I updated the sample application with real dates not like the ones you showed as sample data. And the approach still works like using the Month()-function. Notice how the search string looks like now.

2017-01-12 13_29_11-QlikView x64 - [C__Users_psd_Downloads_Set Analysis with Several Dates (real dat.png

I had to create some randomized test data and introduce the dates as real dates so the load script looks like this:

2017-01-12 13_28_13-Edit Script [C__Users_psd_Downloads_Set Analysis with Several Dates (real dates).png

neha_shirsath
Specialist
Specialist
Author

Hi Manish,

Have use your code and put the below set expression-

=count({<CommonDate={$(=Month(max(CommonDate)))},CommonDate=>}DISTINCT lot)

And its working with the result i wanted.

Thank you so much.

-Neha

neha_shirsath
Specialist
Specialist
Author

Thank you guys for your prompt reply.

It's helps me a lot to think out of the box.

petter-s‌, Thanks for your precious time, will try this solution also.

-Neha