@Anonymous ,
I think I understand what you’re trying to do but you’re approaching it in the wrong way. You need to use two Lookup functions to identify the date value for a each record, and then compare them with DateDiff. If there are two rows for each record per employee, I assume you have a unique identifier for those employees (e.g. employee name or employee id).
If yes, you can try:
DateDiff(
DateValue(
LookUp(
'Your Table',
'Unique ID for Employee' = "1" && ArtDerArbeits = [@Arbeitsmodel].'Pause ende'
).Zeiten,
"da"
),
DateValue(
LookUp(
'Your Table',
'Unique ID for Employee' = "1" && ArtDerArbeits = [@Arbeitsmodel].'Pause start'
).Zeiten,
"da"
)
)
------------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution
If you like my response, please give it a Thumbs Up.