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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
chaitanyajami
Partner - Creator
Partner - Creator

Count in set analysis

Hi all,

I want to calculate the number of MDM ID'd that have call count ( count(src_cal_nm)>0)  greater than "0", i am using below expression but could not achive it, can some one suggest me with the correct formula  to achieve it.

count({<src_call_nm-={"$(Null())"}}>}distinct [MDM ID])

or

count({<[MDM ID] = {"=Count([src_call_nm])>0"}>} distinct [MDM ID] )

6 Replies
tresesco
MVP
MVP

Try like:

count({<src_call_nm= {"=Len(trim(src_call_nm))>0"}>} distinct [MDM ID] )

jonathandienst
Partner - Champion III
Partner - Champion III

Tresesco's solution should work, but you might also be able to use:

Count({<[MDM ID] = {"=$(=Count([src_call_nm])>0")}>} distinct [MDM ID])


But this depends on the relationship between the two fields - does the count differ for each distinct MDM ID value?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sushil353
Master II
Master II

Hi

Try :

count({<src_call_nm-={' '}>}distinct [MDM ID])

or

count({<src_call_nm={">=$(Len(trim(src_call_nm)))"}>}distinct [MDM ID])


HTH

Sushil

chaitanyajami
Partner - Creator
Partner - Creator
Author

Hi Jonathan,

Yes those are related fields, one ID may have more than one call id, i need to calculate number of mdm id's that have call count greater than 0

chaitanyajami
Partner - Creator
Partner - Creator
Author

Thanks a ton, Its working fine

chaitanyajami
Partner - Creator
Partner - Creator
Author

Thanks a ton, Its working fine