Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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 (3)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/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
Partner Ambassador/MVP
Partner Ambassador/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

@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
Partner Ambassador/MVP
Partner Ambassador/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

@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
Partner Ambassador/MVP
Partner Ambassador/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