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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calendar Input Box

Hi All,

I need to make a chart counting the no. of records that is outstading based on the calendar input box.

I want the chart looks like this:

StatusSiteCurrent 1-30 Days Over 30 Days Over 60 Days Over 90 Days Over 150 Days Over 240 Days Total
Open






















Released










Grand Total








the formula

= date input - Shipmentdate

current = <0

1-30days = >0<=30

Over 30days = >30<=60

.. and so on

Please see attached file.

Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

=if(vDate-ShipmentDate<=0,dual('Current',-1), if(vDate-ShipmentDate<=240 ,class(vDate-ShipmentDate,30,'days',1),dual('Over 240 days',9999) ))


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw. Is that what you need?


talk is cheap, supply exceeds demand
Not applicable
Author

Yes, Just like that! But I need it to be fix 'Over 240 Days' Is there any way for that to be implemented? Thanks

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Change the calculated dimension to:

=if(vDate-ShipmentDate<0,dual('Current',-1), if(vDate-ShipmentDate<240 ,class(vDate-ShipmentDate,30),dual('Over 240 days',9999)))


talk is cheap, supply exceeds demand
Not applicable
Author

Hello, Thanks for the reply.

Another question please, I need it to be 1< x <= 30 because current is already counted as 0, is this possible to be achieved?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

=if(vDate-ShipmentDate<=0,dual('Current',-1), if(vDate-ShipmentDate<=240 ,class(vDate-ShipmentDate,30,'days',1),dual('Over 240 days',9999) ))


talk is cheap, supply exceeds demand
Not applicable
Author

Thank you!