Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to do a unique count of UserNames where the Firm field is blank
I tried this, but it didn't work
=COUNT(DISTINCT {$<Firm-={'*'}>}UserName)
any ideas?
=Count({$<Firm={' '}>}Distinct UserName)
This didn't work. It returned 0
How are your nulls formatted?
It's a text field, which is totally blank
Have you tried =count(distinct {$<Firm = {'',' ',null}>} UserName)
I think my problem may be solved another way
The root issue is that this expression does not count UserNames where the Firm field is blank
=COUNT(DISTINCT {$<Firm-={'ACME','*TEST*'}>}UserName)
Is there a way to alter this to ensure it includes UserName where the Firm field is blank, whilst also excluding Firms called ACME or with TEST in them?
Maybe in your load script, use something like if(Firm = ' ', null, Firm) as Firm? so then all blank values are associated with nulls, then you can use nullcount?
Something like this
=COUNT(DISTINCT {$-<Firm={'*'}>}UserName)