Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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