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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
QlikSenseUser2
Contributor III
Contributor III

Dividing a timestamp by a Number

I'm trying to divide timestamp by a number and get day, hour, and minute results. I currently have 

Interval(END_DATE_TIME-WO_DATE_TIME,'hh: mm')/Sum([WO Count])  this give me a number I need it the be in DD MM HH format

 

QlikSenseUser2_1-1627302293717.png

 

 

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

I see. You will need to Sum() the timestamp deltas.

 

Interval( Sum(END_DATE_TIME-WO_DATE_TIME) / Sum([WO Count]) , 'd mm hh')

-Rob

 

View solution in original post

10 Replies
rwunderlich
MVP
MVP

Interval( (END_DATE_TIME-WO_DATE_TIME) / Sum([WO Count]) , 'd mm hh')

-Rob

QlikSenseUser2
Contributor III
Contributor III
Author

It gave me the right format but didn't divide it.

 

QlikSenseUser2_0-1627339384163.png

 

Kushal_Chawda
MVP
MVP

@QlikSenseUser2  for the first record 65:00, what is the number are dividing? Also, what should be the output for that?

QlikSenseUser2
Contributor III
Contributor III
Author

Dividing by 2 and 32.99 hrs

rwunderlich
MVP
MVP

As a test, how about adding 

Sum([WO Count])

as a measure in that table?  I suspect you are dividing by 1. 

-Rob

Kushal_Chawda
MVP
MVP

@QlikSenseUser2  how about below

interval(Interval( END_DATE_TIME-WO_DATE_TIME) / Sum([WO Count]) , 'd mm hh')

QlikSenseUser2
Contributor III
Contributor III
Author

The ones  that are divided by 1   work but anything above doesn't

QlikSenseUser2_0-1627481952584.png

 

QlikSenseUser2
Contributor III
Contributor III
Author

 

The ones  that are divided by 1   work but anything above doesn't

QlikSenseUser2_1-1627482167694.png

 

rwunderlich
MVP
MVP

I see. You will need to Sum() the timestamp deltas.

 

Interval( Sum(END_DATE_TIME-WO_DATE_TIME) / Sum([WO Count]) , 'd mm hh')

-Rob