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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to calculate days in due?

Hi,

I have tablebox with columns from the same table. There is one column DueDate with dates from 2009. How to write script to calculate 'days in due'. I know to calculate in excel with below formula

=DAYS360(Today(),DueDate)

I am trying to wrire in QLikview script. Please can anyone suggest me how to do this.

Thanks.

10 Replies
sibideepak
Creator II
Creator II

Hi  Amelia2000,

Store DueDate as variable

and Make expression like this

=today()-vduedate

it will return number of days

Thanks

Deepak

Not applicable
Author

Thanks. how can I change if it required duedate values to show with three months

for eg: July 2014, August 2014, sept 2014

so, it should populate for every three months.

Please help.

MarcoWedel

Can specify with some more examples?

Not applicable
Author

So you want those three months to be dynamically changing?

Not applicable
Author

Yes you are right

sudeepkm
Specialist III
Specialist III

if you have Due dates per record in your table then you can write a script like below

Today() - DueDate as DueinDays // for future dates the value will be in negative and you can use a flag too.

sibideepak
Creator II
Creator II

Hi

I couldn't able to catch up with your concept .

Can you little more explain it ??

Thanks ,

Deepak

Not applicable
Author

Sorry if not clear.  I have to send a table data to user daily. This table is from access and all the columns are from only one table. days in due is one column which I have been using a formula in excel


=DAYS360(TODAY(),DueDate)


This DueDate should have dates changes dynamically every day. but the date range should be

for eg: now we are in August. so the DueDate dates will be from July 2014 to 31 August 2014. I need this values should change dynamically. so, the days in due will get automatic values.


now I decided to build a Qlikview report to generate this automatically.

is it possible with variable? Please suggest

sibideepak
Creator II
Creator II

One thing needed to be clear !!

how you are getting this due dates ??

how your calculating due dates(logic) in your business ??