Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

What is the difference between these expressions?

I have two expressions, one to count null values and one to count non-null values. However, they seem to be pulling the opposite thing...

count({$<FeeOne={"*"}>}Shipments)  <<<Looks like it counts null values, based on my data set...

Count(if(IsNull(FeeOne),Shipments))         <<<Looks like it counts non-null values, based on my data set...

I am confused. Help?

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

count({$<FeeOne={"*"}>}Shipments) is to count number of shipments has non null FeeOne


Count(if(IsNull(FeeOne),Shipments)) is to count number of shipments has null FeeOne

Nothing wrong in this.

Which version of Qlikview ur using?

Why you confused?Did you verified the data?

View solution in original post

3 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

count({$<FeeOne={"*"}>}Shipments) is to count number of shipments has non null FeeOne


Count(if(IsNull(FeeOne),Shipments)) is to count number of shipments has null FeeOne

Nothing wrong in this.

Which version of Qlikview ur using?

Why you confused?Did you verified the data?

MayilVahanan

Hi,

    

count({$<FeeOne={"*"}>}Shipments)  -> "*" represents all include values , so in this, calculate the shipment based on all value in FeeOne

Count(if(IsNull(FeeOne),Shipments))   -> calculate the shipment,if feeone is null values.

you can use like this,

Count(If(Len(Trim(FeeOne)) > 0, ShipMent)

(or)

Count({<FeeOne -={'0'} >} ShipMent)

Check one FeeOne has values in your data set..

Example:

sum( {$<Year = {“*”} – {2000}, Product = {“*bearing*”} >} Sales )
returns the sales for the current selection but with a new selection in “Year”: all years except 2000; and only for products containing the string ‘bearing’.

hope it helps..

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
chematos
Specialist II
Specialist II

Use this to count  non null values:

count({<FeeOne -= {'*'}Shipments)

and this to count null values or count values that FeeOne is like *

count({<FeeOne = {'*'}Shipments)