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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Qliksense - creating a measure only if values exist in other dimensions

Dear Qliksense users,

I'm stuck in creating a measure for a project. Let me try and describe it best.

My dataset has 4 Fields/Dimensions - ObjectID, LocationID, Date, Type

ObjectIDLocationIDDateType
A03347loc0751-A
A03348loc07525th Jan-
A03349-6th FebB
A03350loc06497th Mar

C

A03351loc60508th AprD

In my analysis I want to count all the objectIDs which have existing(non 0 or not null) values in all 3 other fields. So in the case above,

Count(ObjectID) in Qliksense expression would give me an answer 5 while i am only expecting 2 as the answer.

To be a bit more clear, I only intend to count ObjectIDs A03350 and A03351 since the rest of the ObjectIDs have missing values in either LocationID, Date, or Type.

What is the best way to go about doing this?

Thanks folks.

1 Reply
OmarBenSalem

try this:

Count(distinct {<LocationID={"=len(trim(LocationID))<>0"},Date={"=len(trim(Date))<>0"},Type={"=len(trim(Type))<>0"}>} ObjectID)