Good day!
There is an event log of the employees, the example below.
It is necessary to calculate the arrival time of a meal, usually the difference between the event "Caring for dinner" and the next event.
The fields of the table "Parish" I expect:
Parish: Min ({< [event ID] = {66}>} Time ( [Event time] ))
Care: Max ({< [event ID] = {66,67,73,74}>} Time ( [Event time] ))
Time: Minute (Care-Parish) + Hour (Care-Parish) * 60
Caring for lunch: Min ({< [event ID] = {72}>} Time ( [Event time] ))
Comes with dinner: if ( IsNull ( [Care for lunch] ), Null (),
Min ({< [Time of event] = { "= [Time of event]> $ (# = Min ({<[ ID event] = { 72}>} ([Event time]))) ' }>} [Time Event] ))
And here there is a problem-expression is calculated once $ (# = Min ({<[ ID event] = {72}>} ([Event time])))
How can I solve this problem or what could be the alternative?
Translated with Google Translate - Qlik Community Administrative Team
Доброго времени суток!
Есть журнал событий по сотрудникам, пример ниже.
Необходимо рассчитать время прихода с обеда, обычно это разница между событием "Уход на обед" и следующим событием.
Поля таблицы "Приход" я так рассчитываю:
Приход: Min({<[id события]={66}>} Time([Время события]))
Уход: Max({<[id события]={66,67,73,74}>} Time([Время события]))
Время: Minute(Уход-Приход)+ Hour(Уход-Приход)*60
Уход на обед: Min({<[id события]={72}>}Time( [Время события]))
Приход с обеда: if(IsNull([Уход на обед]),Null(),
Min({<[Время события] = {"=[Время события]>$(#=Min({<[id события]={72}>}([Время события])))"}>} [Время события]))
И вот тут возникает проблема- выражение рассчитывается только один раз $(#=Min({<[id события]={72}>}([Время события]))),
Как можно решить данную проблему или какая может быть альтернатива?