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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Age Analysis

Hi All

I have to fields namely "CustInvoice Year" and "Custpayment Year". The two fields contain years ie.2012,2011,2009...etc

I am required to calculate the basic customer aging using these two fields, how can I do this?

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

May be this code will be useful.

View solution in original post

9 Replies
robert_mika
Master III
Master III

Could you share your data?

mukesh24
Partner - Creator III
Partner - Creator III

Hi,

Use Age() to calculate date difference

manojkulkarni
Partner - Specialist II
Partner - Specialist II

If you could share some sample data, then it will be much easier to try

Not applicable
Author

Here is t data. I must use these wo tables to calculate the age analysis.

robert_mika
Master III
Master III

I can not see those two fields in your data set

Not applicable
Author

Hi,

  You have concatenate both table but there is no common data on selection of TranYear or InvoiceYear.

Firstly concatenate both data with common key.

If you will select one invoice number then for that particular case both date should be available.

Regards

Vimlesh

Not applicable
Author

Hi,

May be this code will be useful.

Not applicable
Author

Thank you! This heps a lot