Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help to add numeric value with date field

Good Morning All,

When I try to add 30 days with a date filed the output is wrong, I tried like this =Invoice date +30 it shows incorrect value.

How to do this..Can you help me..

Chriss

1 Solution

Accepted Solutions
Not applicable
Author

Dear Chriss,

if u want to add 30 days in invoice date to make it due date u should write the script like this

Load [Invoice Number],

[Invoice Date],

date([Invoice Date]+30) as DueDate

FROM

(biff, embedded labels, table is Sheet1$);

View solution in original post

6 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    First thing make sure that the field contains valid date.

 

    Second if you want to change the month (30/31 days) you can use the addmonth() function to achieve it.

    For more on addmonth() look for Qlikview Help.

    If not then please send us the sample qvw file.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

try this ..........

=date(Date + 30)

Not applicable
Author

Hello Kaushik,

Thanks for your reply, In the script itself I would like to add 30 days with the Invoice date for calculation.

is it possible..

LOAD [Invoice Number],

     [Invoice Date],

     [Invoice Date] as duedate +30

FROM

(biff, embedded labels, table is Sheet1$);

Regards

Chriss

Not applicable
Author

Date( [Invoice Date] + 30) as Duedate

Not applicable
Author

Dear Chriss,

if u want to add 30 days in invoice date to make it due date u should write the script like this

Load [Invoice Number],

[Invoice Date],

date([Invoice Date]+30) as DueDate

FROM

(biff, embedded labels, table is Sheet1$);

Not applicable
Author

Dear Gunjita,

Thanks for your help, it works

Chriss