Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
manju421
Contributor II
Contributor II

Missing Date using month filter

If I select month Nov, I should be able to see Deal 1 & 2, as they are active in month of Nov because there end date is Dec.

Now I can only see Deal 3&4 

Screenshot_20201210-133002__01.jpg

1 Solution

Accepted Solutions
Taoufiq_Zarra

@manju421  can you confirm , if you select Nov you should be able to see Deal 1 & 2 &3 &4 also ?

for exemple you can use this script to :

Data:

load Deal,Date#([Start Date],'D-MMM-YY') as [Start Date],Date#([End Date],'D-MMM-YY') as [End Date] inline [
Deal,Start Date,End Date
1,2-Oct-19,20-Dec-19
2,6-Oct-19,21-Dec-19
3,11-Nov-19,22-Dec-19
4,18-Nov-19,23-Dec-19
5,2-Dec-19,24-Dec-19
];
left join 
load Deal,Month(Date([Start Date] + IterNo() - 1)) as MonthFiltre resident Data While [Start Date] + IterNo() -1 <= [End Date];

 

output:

Capture.PNG

 

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

1 Reply
Taoufiq_Zarra

@manju421  can you confirm , if you select Nov you should be able to see Deal 1 & 2 &3 &4 also ?

for exemple you can use this script to :

Data:

load Deal,Date#([Start Date],'D-MMM-YY') as [Start Date],Date#([End Date],'D-MMM-YY') as [End Date] inline [
Deal,Start Date,End Date
1,2-Oct-19,20-Dec-19
2,6-Oct-19,21-Dec-19
3,11-Nov-19,22-Dec-19
4,18-Nov-19,23-Dec-19
5,2-Dec-19,24-Dec-19
];
left join 
load Deal,Month(Date([Start Date] + IterNo() - 1)) as MonthFiltre resident Data While [Start Date] + IterNo() -1 <= [End Date];

 

output:

Capture.PNG

 

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉