Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
ryanfoster84
Creator
Creator

Counting field values where another field is null

Hi,

i am counting the number of hashtags where the campaign field is blank and am using the following formula:

=count({1-<

[Campaign Name]={*}

>}[Hashtags])


this works fine and i am generating the top 10 (see below)


Hashtags Total
14300
CMED71
NNLN45
OptionsFocus39
Ultra1033
BZ20
directoptions;OptionsFocus19
agoptions16
Treasuries16
NNLN;OptionsFocus13



the issue is i want the count to exclude also the blank hashtags and have tried using the table properties (Dimensions) to suppress the null values in hashtags field but this doesn't work. can anyone assist?


thanks

ryan


2 Replies
sunny_talwar

May be this:

=Count({1-<[Campaign Name]={*}, Hashtags = {"=Len(Trim(Hashtags)) > 0"}>}[Hashtags])

=Count({1-<[Campaign Name]={*}, Hashtags = {"=Len(Trim(Hashtags)) = 0"}>}[Hashtags])


ryanfoster84
Creator
Creator
Author

Hi,

No this doesn't work it just count the total of each hashtags. basically the table above i don't want blanks include so the top ten will have values

HashtagsTotal
I WANT THIS REMOVED14300
CMED71
NNLN45
OptionsFocus39
Ultra1033
BZ20
directoptions;OptionsFocus19
agoptions16
Treasuries16
NNLN;OptionsFocus13