Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rustyfishbones
Master II
Master II

Help with an expression

Hi All,

I have the following expression.

ONLY({<[date-added] = {'$(=DATE(MAX([date-added])))'}>}TaskStartTime)

the expression returns the following data, I only want the first time for each operator for that day, see in bold.

 

TaskDescriptionTaskOperatorTaskEndTimeDateONLY({<[date-added] = {'25/06/2018'}>}TaskStartTime)
PickingHyfb Qiheepzq10:04:0025/06/201808:33:00
BREAK/LUNCHHyfb Qiheepzq10:15:0025/06/201810:04:00
PickingHyfb Qiheepzq13:04:0025/06/201810:15:00
BREAK/LUNCHHyfb Qiheepzq13:38:0025/06/201813:04:00
PickingHyfb Qiheepzq15:12:0025/06/201813:38:00
BREAK/LUNCHHyfb Qiheepzq15:23:0025/06/201815:12:00
PickingHyfb Qiheepzq15:23:0025/06/201815:23:00
PickingJfkee Inpqdc10:05:0025/06/201807:31:00
BREAK/LUNCHJfkee Inpqdc10:20:0025/06/201810:05:00
PickingJfkee Inpqdc12:39:0025/06/201810:20:00
BREAK/LUNCHJfkee Inpqdc13:18:0025/06/201812:39:00
PickingJfkee Inpqdc13:18:0025/06/201813:18:00
11 Replies
sunny_talwar

Can you add this expression to the bottom table and share a screenshot? My guess is that it is related to rounding issues....

Min(TOTAL <TaskOperator,[date-added],TaskDescription> {<[date-added] = {'$(=DATE(MAX([date-added])))'}>}TaskStartTime)

If this is rounding issue.. may be you can try this

If(Round(TaskStartTime*86400) = Round(Min(TOTAL <TaskOperator,[date-added],TaskDescription> {<[date-added] = {'$(=DATE(MAX([date-added])))'}>}TaskStartTime) * 86400), TaskStartTime)

rustyfishbones
Master II
Master II
Author

close enough, this is the correct expression.

TIME(aggr(min({<[date-added]={'$(=DATE(MAX([date-added])))'}>} TaskStartTime), TaskOperator, [date-added]),'hh:mm')

Thanks