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: 
soniasweety
Master
Master

round seconds

Hi all ,

I have one column like duration 

that are in seconds  like

30210.00

916372.00

56483.00

like above I don't want to see .00  I want  output like

hh.mm  : =30210     is to be shown like this   8.39  

am using in my script already like this    Num([Duration],'#.#0') as "Task Duration",   I need along with this format

Thanks

Sony

1 Solution

Accepted Solutions
PrashantSangle

num(floor(dateField)/3600,'##.##')

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

4 Replies
PrashantSangle

try like

floor(fieldName)/3600

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
soniasweety
Master
Master
Author

thanks Prashanth,

but I need the format also  like what I mentioned above.

how can include this into above?

is this correct?

floor( Num([Duration]/3600,'#.#0')) as "Task Duration"

PrashantSangle

num(floor(dateField)/3600,'##.##')

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
soniasweety
Master
Master
Author

thanks prashanth its working as expected