14 Replies Latest reply: Mar 14, 2014 7:32 AM by jagan mohan rao appala

# How to get aging per day?

Hi,

May I ask what function or syntax that be used in getting the aging of an invoice. Can someone give me an example?

Thank you

- Ahyel

• ###### Re: How to get aging per day?

May be

Age([Invoice Date], Today())

• ###### Re: How to get aging per day?

Hi Manish,

Thanks for this.. Just a clarification, do you mean the date TODAY? or will I use today as it is?

My apologies as I havent got any trainings for this yet,

Thank you so much

- AHyel

• ###### Re: How to get aging per day?

Today() is a qv function that returns current day date. However, if you want to calculate the age in no. of days, you should rather use expression like: =Today() - [Invoice Date] rather than age() which gives you completed years.

• ###### Re: How to get aging per day?

Okay, got it. But is it possible that if i make this syntax

Today()-Date#([Request Date],'DD.MM.YYYY') as Aging

the result in the X- axis will be numbers, right? How will i make it like for example, 1 = 1 day the 2 = 2 days.. Something like that..

Thank you so much

- Ahyel

• ###### Re: How to get aging per day?

Hi,

Try like this

Today()-Date#([Request Date],'DD.MM.YYYY') & ' Days' as Aging

Regards,

Jagan.

• ###### Re: How to get aging per day?

Hi Jagan,

can you help me on this?

How can I get the duration of processing from two dates?

From PR Approved date to PO creation date including the weekend?

Thanks a lot!!

Regards,

Ahyel

• ###### Re: How to get aging per day?

Hi,

Try like this

*,

Interval([PR Approved date] - [PO creation date], 'MM/DD/YYYY hh:mm:ss') AS Duration

FROM DataSource;

Regards,

Jagan.

• ###### Re: How to get aging per day?

Try like:

Today()-Date#([Request Date],'DD.MM.YYYY') &

(If (Today()-Date#([Request Date],'DD.MM.YYYY')>1, 'Days', 'Day') as Aging

• ###### Re: How to get aging per day?

as date#(Today(),'DD.MM.YYYY') will give you incorrect format so

try this

Date(Today(),'DD.MM.YYYY') -Date([Request Date],'DD.MM.YYYY') as Ageing

hope this helps

• ###### Re: How to get aging per day?

Hi,

Can you help me on this?

How can I get the duration of processing from two dates?

From PR Approved date to PO creation date including the weekend?

Thanks a lot!!

Regards,

Ahyel

• ###### Re: How to get aging per day?

[PR Approve Date]- [PO Creation date]  as fieldname

or

Interval(PR Aprove date],[Po creation date],'DD') as Field

use expressions provided directly in Expression

hope this make sense

• ###### Re: Re: How to get aging per day?

Hi Ahyel,

See attached....

• ###### Re: How to get aging per day?

If you want to find out number of Days, use as below..

=Interval(Today()-Date,'DD')

• ###### Re: How to get aging per day?

Hi Aheyl,

Age function can be used.

This might be of help:

Re: Age Field