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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
John-SSI
Creator
Creator

count out minutes

Hi, 

I want to have a variable so i can remove minutes from a calculated time.

The time is: HH:MM:SS, and i want to remove 40 min (00:40:00) 

so : 05:40:00, then remove 40 minutes the time should be 05:00:00

Doable?

Br John

Labels (3)
1 Solution

Accepted Solutions
John-SSI
Creator
Creator
Author

Hi, i want it as a varible and have an option to change the value, but i think i found it.:)

View solution in original post

4 Replies
robert_mika
Master III
Master III

=MakeTime(left('05:40:00',2),0,0)

 

or

=MakeTime(left( yourdim,2),0,0)

Vegar
MVP
MVP

Do you always want to remove 40 minutes from  time or do you want to ignore the minutes and the second part of  the time values.

Alternative 1: Time(time_value - interval#(40,'m'))

Alternative 2: maketime(hour(time_value))

John-SSI
Creator
Creator
Author

Hi, i want it as a varible and have an option to change the value, but i think i found it.:)

Vegar
MVP
MVP

@John-SSI 

Great that you found the solution for you problem.

Is it possible for you to post it here and mark it as the solution? Your solution might be helpful for future community users having a similar problem.

Thanks!