Good day!
I am having virtual column decimal type that calculates duration in days.
Ifs([Status] =โOpenโ, TotalHours(Today() -[_Thisrow]. [Date Due]) /24) this formula works fine.
But I want to combine with this formula
Ifs([Status] =โClosedโ, Totalhours([_thisrow]. [Date Return] - [Due Date]) /24)
Any suggestions how to Combine this 2 formula?
You can have the other condition and value as 3rd and 4rth parameter.
Ifs(
[Status] =โOpenโ,
TotalHours(Today() -[_Thisrow]. [Date Due]) /24,
[Status] =โClosedโ,
Totalhours([_thisrow]. [Date Return] - [Due Date]) /24
)
Iโd normally use a switch in these situations
SWITCH(
[Status],
โOpenโ, TotalHours(Today() -[_Thisrow]. [Date Due]) /24),
โClosedโ, TotalHours(Today() -[_Thisrow]. [Date Due]) /24)
)
User | Count |
---|---|
35 | |
31 | |
30 | |
19 | |
18 |