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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sowmi
Creator
Creator

Date field

Hi,

 

I have  a field with complete date and second field with only month ,Now i need a new field with subtract (first field ,second field).for example:

First Field                   second Field                   required o/p(  new Field)

08/31/2022                             4                                   04/31/2022

04/28/2021                             2                                  02/28/2021

 

TIA

 

Labels (2)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

Try using Addmonths() function.

 

Addmonths([First field], - [Second field]) as [New field] 

View solution in original post

1 Reply
Vegar
MVP
MVP

Try using Addmonths() function.

 

Addmonths([First field], - [Second field]) as [New field]