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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
akash_durai1507
Contributor II
Contributor II

Calculate rolling Sum of AR amount and overdues.

I'm building Qliksense reports for Accounts receivable finance data.

To achieve rolling sum of amounts,

I've created a As-Of table using IntervalMatch function.
The rolling sum works completely fine.

But while calculating the amount along with other filters, the results are not as expected.
My data model looks like this,
https://imgbox.com/tLrX5S8S

My script to create As-Of Table looks like below,
https://imgbox.com/qwhbZkl2

The exact case where I'm facing issues is that while calculating overdues, there are multiple conditions required so i created an expression as below,

Sum({<GLaccountCode={'121001','117000'}>}If(NetDueDate<=YearEnd([Report Date]) and Arrears>0 and [Clearing Date]>YearEnd([Report Date]),ARAmountLC))

Using Month as key for As-Of calendar table provides the expected results.
But when changed to Report Date as key, numbers are wrong.

Please help! TIA!

Labels (4)
1 Reply
pablolabbe
Partner Ambassador
Partner Ambassador

Probably you need to combine this solution with canonical calendar table Check this post about it https://community.qlik.com/t5/Design/Canonical-Date/ba-p/1463578

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button! | Follow me on Linkedin