Ops.. Sorry.. try to like below
if (workdayYN = '1') then (1) else (null)
change 0 to null
because 0 also count.. if value is null, count function ignore null
------------------------------
JinHo Ko
------------------------------
Original Message:
Sent: Fri July 03, 2020 03:18 AM
From: Peter Hess
Subject: Special Working Day Calculation
Hi JinHo,
thank you, but it does not works. The expression running-count( ( IF ( [Modell View].[IsWorkingDay].[WorkingDayFlag] = 1 ) THEN ( 1 ) ELSE ( 0 ) ) ) counts also the non-working days in the continous counting of days.
Peter
------------------------------
Peter Hess
------------------------------
Original Message:
Sent: Thu July 02, 2020 10:17 PM
From: JinHo Ko
Subject: Special Working Day Calculation
try like this
running-count( (if workdayyn = '1') then (1) else (0) )
i think you already knew how to solve it :)
------------------------------
JinHo Ko