Hi all,
I have this table:
![67487 67487](https://chandoo.org/forum/data/attachments/67/67579-6f346f6b64433a28a409d2cc9a40d239.jpg)
I want to create a column "excludedUser" in which to return "1" when the column "status" says "ExcludedFromProject"
But sometimes a user is accidentally excluded, and later included ("IncludedInProject") again.
In the example above (rows in yellow) the first "ExcludedFromProject" for user 14195 must not return "1" in column "excludedUser" because is later the user is included again.
On 9-1-2019 the user is excluded for real, and then "1" should be returned.
Could someone help me?
Thanks!
govi
I have this table:
![67487 67487](https://chandoo.org/forum/data/attachments/67/67579-6f346f6b64433a28a409d2cc9a40d239.jpg)
I want to create a column "excludedUser" in which to return "1" when the column "status" says "ExcludedFromProject"
But sometimes a user is accidentally excluded, and later included ("IncludedInProject") again.
In the example above (rows in yellow) the first "ExcludedFromProject" for user 14195 must not return "1" in column "excludedUser" because is later the user is included again.
On 9-1-2019 the user is excluded for real, and then "1" should be returned.
Could someone help me?
Thanks!
govi