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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date ranges

Hi community!

I have the following data:

Issuing Bank
Due Date (DD/MM/YYYY)Amount
Bank130/05/20131,100.00
Bank120/05/2013800.00
Bank115/06/20132,000.00
Bank225/05/2013900.00
Bank218/05/20141,300.00
Bank218/05/20171,000.00

And I need to show in QlikView a table like this:

Issuing Bank8 days8 days to 30 days30 days to 90 days
90 days to 180180 days to 1 yearOver 5 years
TOTAL
Bank1800.001,100.002,000.000.000.000.003,900.00
Bank20.00900.000.000.001,300.001,000.003,200.00

How do I do?

Thanks in advance!

1 Solution

Accepted Solutions
Not applicable
Author

Hi there,

I think you have to create a chart in which you are using Issuing Bank as dimension and use expressions like

sum({<Due Date={">$(=Today())<$(=Today()+9)"}>}Amount),

sum({<Due Date={">$(=Today()+8)<$(=Today()+31)"}>}Amount), etc.

So you sum up all amounts for a specific Bank where the due date is between Today+X and Today+Y, where X is the lower bound an Y the upper bound in days. Use Sum(Amount) for your last column.

Hope this helps you.

View solution in original post

2 Replies
Not applicable
Author

Hi there,

I think you have to create a chart in which you are using Issuing Bank as dimension and use expressions like

sum({<Due Date={">$(=Today())<$(=Today()+9)"}>}Amount),

sum({<Due Date={">$(=Today()+8)<$(=Today()+31)"}>}Amount), etc.

So you sum up all amounts for a specific Bank where the due date is between Today+X and Today+Y, where X is the lower bound an Y the upper bound in days. Use Sum(Amount) for your last column.

Hope this helps you.

jpapador
Partner - Specialist
Partner - Specialist

A nested if statement in the script would work.  For example:

If([Dub Date]) = Today() + 8, '8 Days',

     If([Due Date] > Today() +8 and < Today() + 30, '8 to 30 Days',

          If([Due Date] > Today()+ 90 and < Today() +180, '90 to 180 days' as Segments

Make all the segments.  Then in your chart make an expression for all you segments like this:

Sum({$<Segments={'8 Days'}>} Amount)

Make your dimension issuing bank and this will give you the second chart.