Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sridhar_sigired
Creator
Creator

Input box value conversion

Hi,

I have a input box where user enters the value (seconds), if user enters 180, then it has to convert as 03:00 (as minutes) in input box, i need to use this variable in my expression calculation.

Tried with different option like positive integer, predefined values etc but did not work.

Can any one help me out?

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Divide by 60 to convert to decimal minutes or divide by 86400 (24x60x60) to convert to a QV time/interval value which you can then format withe the Interval() format function:

     =Interval(yourFieldinseconds / 86400, 'hh:mm')

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sridhar_sigired
Creator
Creator
Author

Thanks Janathan, do i need to keep this expression at custom field in input constraint of Input box?

Actually here i am showing input box and user will enter some value which is in seconds, however it should be converted into mm:ss format while displaying it.

jonathandienst
Partner - Champion III
Partner - Champion III

Use the expression where you are displaying it.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein