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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Modify date

Hi There,

I'd need to modify a date in a pipeline management dashboard as follows

New_date = Existing_date + i months

if piepeline stage = 1 then i = 6 month

if pipeline stage = 2 then i = 5 month

(...)

My question is:

what is the script to create the New_date using the Existing_date ?

Thanks in advance for your feedback !

1 Reply
Not applicable
Author

What are you loading the data from? Database? QVD?

In T-SQL, you can use:

DateAdd(m, 7 - pipeline_stage, Existing_date) As New_date


If you're loading from a QVD, you can use the built in QlikView function AddMonths:

AddMonths(Exsiting_date, 7 - pipeline_stage) As New_date


The "7 - pipeline_stage" is a guess at how i should be calculated based on you example.