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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Summation of two fields

Hello Experts,

I want to add two fields,

First one is coming from script, I written some logic for it and output of that field is in this format 'HH:MM'.

Second field is subtraction of two different date fields, interval(date1-date2,'hh:mm').

Here, I want sum of 'HH:MM' and 'hh:mm'.

Thanks In advance!!

1 Solution

Accepted Solutions
swuehl
MVP
MVP

If you are using QV date and time functions to format your value in your first script expression, 'MM' will not return minutes, but month. Please check the Help file for the format codes.

Why are you using different format codes?

In general, if your values still have a numeric representation, just add the values and format using interval.

View solution in original post

2 Replies
swuehl
MVP
MVP

If you are using QV date and time functions to format your value in your first script expression, 'MM' will not return minutes, but month. Please check the Help file for the format codes.

Why are you using different format codes?

In general, if your values still have a numeric representation, just add the values and format using interval.

Not applicable
Author

Thanks!!