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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

Calculate Debtors age wise oustanding

Dear all


I have following table  along with  invoices and there payments which are in negative values


Cust CodeDoc_noDoc DateAmt
A00001S0000101/04/201312000
A00001S0000112/05/2013-1000
A00001S0000130/06/2013-6000


My requirement is calculate age wise outstanding as on date  on following criteria


When User Select Date As ono/s will be
12/05/201311000
01/07/20135000


Please help me arrive the same  excel sheet is attached for the same.


Thanks in adv


Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
3 Replies
Sokkorn
Master
Master

Hi Vikas,

You may try this script

[Data]:

LOAD * Inline [

CustCode, Doc_no, DocDate, Amt

A00001, S00001, 01-04-2013, 12000

A00001, S00001, 12-05-2013, -1000

A00001, S00001, 30-06-2013, -6000];

[Data2]:

LOAD

  [CustCode] AS [CustCode2],

  [Doc_no] AS [Doc_no2],

  [DocDate] AS [DocDate2],

  [Amt] AS [Amt2],

  RangeSum([Amt], Peek('Amt3')) AS [Amt3]

RESIDENT [Data] ORDER BY [DocDate];

Regards,

Sokkorn

Sokkorn
Master
Master

And you may look into this doc also.

vikasmahajan
Author

Thanks Sokkorn Cheav

I Am Working on it I will get back you.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.