
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Difference between two dates
Hello ,
I have two fields and i would like to have the difference between them :
The two fileds are timestamp
and I need to have condition the difference is > 30 minutes
Thanks
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
try
if(num(num#(interval(Field2-Field1,'mm'),'###'))>30,'Hello', 'No')
Regards
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
interval(field1-field2,'mm')
use this in any condition like if (interval(field1-field2,'mm') >30 , eepression1, expression2)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To find difference between two timestamp use
interval()
try like
interval(dateField1-dateField2,'mm')
Regards,
Prashant Sangle
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello ,
The answer is :
interval(Filed 2 - Field 1,'mm:ss')
Thanks for all

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use this for the condition but it doesn't work :
if (interval(field1-field2,'mm') >30 , eepression1, expression2)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
where exactly are you using this? and if you need only minutes why using mm:ss?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes yes I delete the ss and i tryed
if ( interval(field1-field2,'mm') >30 , eepression1, expression2)
it doesn't work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
use if(num(num#( interval(field1-field2,'mm') >30)),epression1, expression2)
interval() is formatting function it wont convert actual data.
Regards,
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Preshant,
I used this :
if(num(num#( interval(Field2-Field1,'mm') >30)),'Hello', 'No') and this is the result :
the value is 189 > 30 and it display 'No '

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
try
if(num(num#(interval(Field2-Field1,'mm'),'###'))>30,'Hello', 'No')
Regards
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

- « Previous Replies
-
- 1
- 2
- Next Replies »