Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to count 3 different statuses based on several different conditions:
This is what I've tried so far:
for example:
status | date | desired status outcome |
won | 1/1/2020 | 1 |
anything but won | 2/1/2020 | 2 |
- | 3/1/2020 | 2 |
- | - | 3 |
won | - | 3 |
anything but won | - | 3 |
1. count if the status = 'Won' and if the date is not null
Count({<Status={'Won'}, Date={"=Len(Date)>0"}>} Status)
2. count if the status is not 'Won' and if the date is not null
Count({<Status-={'Won'}, Date={"=Len(Date)>0"}>} Status)
3. count if the date is null
Count({<Date={"=Len(Date)=0"}>} Status)
Thank you, #1 and #2 are working! But I'm getting and output of 0 for #3
the magic function is : isnull() :
Count(if(isnull(Date), Status))
Thank you that worked!! I knew about that function but wasn't using it right apparently
@tbgrant33 please close this thread by marking accepted solution which is worked for you