Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

difference of dates

hi!

i'm working on this pivot table and i want to create a new column with the difference, expressed in number of month, between the column called "mese anno chiusura" and "mese anno apertura", but as you can see there are some cells that not contain dates because the cases are still open; so how can I get a new column with the difference between the dates and where there is no date in column called "mese anno chiusura" is reported "open" in the new column?!

1.JPG.jpg

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Try below

If(IsNull([mese anno chiusura]), 'Open', [mese anno Apertura]-[mese anno chiusura])


Regards

ASHFAQ

View solution in original post

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Se mese anno chiusura è una dimensione modificala scrivendo:

If(IsNull([mese anno chiusura]), 'Open', [mese anno chiusura])

Fammi sapere

ashfaq_haseeb
Champion III
Champion III

Try below

If(IsNull([mese anno chiusura]), 'Open', [mese anno Apertura]-[mese anno chiusura])


Regards

ASHFAQ