Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to date filters within a month field

Hi All,

I want to add date filters to the month field. E.g. I want to be able to click on Dec and get the following dates to be filtered out.

Click on Dec under Monthly field and get

linestartdate <= '12/31/2015' 

lastbilldate > '11/30/2015'

linecanceldate > '12/31/2015'.

Capture.PNG

Thanks in advance,

4 Replies
harsh44_bhatia
Creator
Creator

Hi,

You have to apply macros on d2.MONTHLY field.

Based on the values selected you have to code in macro to select the date ranges in the other three list boxes.

let me know if u need help on the macros.

MK_QSL
MVP
MVP

You can use trigger for that... Provide sample data to work.

Not applicable
Author

Hi,

I have never done Macros in Qlikview. Can you guide me on how to implement it?

for the Month = Dec

Line Start <=12/31/2015 for Nov this would be 11/30/2015

Bill Date > 11/30/2015 for Nov this would be 10/31/2105

Cancel Date > 12/31/2015 fro Nov this would be 11/30/2015.

and so on with the months.......

Please I want to automate these also so I won't have to put up with the hassle of updating it monthly.

Thanks,

Not applicable
Author

Hi Manish,

Please find attached the sample data.

I want to click on Jan and want to have the following dates to be filtered out within it.

linestartdate <= '01/31/2015' for Feb this would be 2/28/2015

lastbilldate > '12/31/2014' for Feb this would be 1/31/2015

linecanceldate > '01/31/2015 for Feb this would be 2/28/2015


Likewise for March, April, etc....


Thanks,