Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
roee1983
Contributor III
Contributor III

ABOVE Function

Dear All,

I'm Trying to use Above Function to calculate dif between hours.

Please Help me

attched:

IDHourDiff
108:12:200
208:10:202

Thank u all

Roee

3 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

I am not sure how your data model looks that's why I have created the back-end version:

tmp:

LOAD ID,

     Time(Hour) as Hour,

     Diff

FROM

[https://community.qlik.com/thread/319275]

(html, codepage is 1257, embedded labels, table is @1);

NoConcatenate

tmp2:

LOAD *

Resident tmp

Order By ID

;

DROP Table tmp;

tmp:

LOAD *

,Peek(Hour) - Hour  as New_diff

Resident tmp2;

DROP Table tmp2;


The output:

Screenshot_2.jpg !

sunny_talwar

You are looking to do this on the front end? What is the issue that you are running into when you use Above() function?

Frank_Hartmann
Master II
Master II

Straight Table:

Dim:

ID

Expression1:

Hour

Expression2:

Interval(Above(Hour)-Hour,'hh:mm:ss')


Unbenannt.png