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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
sayadutt
Creator
Creator

help on Expression

Hi Team,

I have one expression where I am calculating count of all BLANK values like below.

=(count({<myfield={''}>}myfield)/count(myfield) )

Now I want to use another expression which will give me count of all NON BLANK values.

Is short, how to add NOT operator in the above expression.

Thanks

1 Solution

Accepted Solutions
avinashelite

try like this

=(count({<myfield - ={''}>}myfield)/count(myfield) )

View solution in original post

6 Replies
avinashelite

try like this

=(count({<myfield - ={''}>}myfield)/count(myfield) )

maxgro
MVP
MVP

try


=( count({<myfield={"=Len(Trim(myfield)) = 0"}>}myfield) / count(myfield) )

avinashelite

or

if(len(trim(myfield)>0,count(myfield) )

tamilarasu
Champion
Champion

Try like below,


=count({<myfield={'*'}>}myfield)/count(myfield)


Or


=count({<myfield={"=Len(Trim(myfield)) <> 0"}>}myfield) / count(myfield)

MayilVahanan

Hi

Try like this

=( count({<myfield={"=Len(Trim(myfield)) = 0"}>}myfield)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

=(count({<myfield={''}>}myfield)/count(myfield) )


The best approach is to handle this in script


LOAD

*,

If(Len(Trim(FieldName)) = 0 , 1, 0) AS Flag

FROM DataSource;


Now use below expression


For Blank values:

=(count({<Flag={1}>}myfield)/count(myfield) )


For Non Blank values:

=(count({<Flag={0}>}myfield)/count(myfield) )


Hope this helps you.


Regards,

Jagan.