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

excluding zero values of other field from count distinct

good day,

 

my fields are:

Traffic In

Tseq No

 

I want to compute for the conversion

Count(distinct [Tseq No])/Sum([Traffic In])

 

how can I disregard Tseq No that has corresponding Traffic In value equivalent to zero in the computation?

 

thank you.

image1.jpg

 

Labels (1)
  • SaaS

11 Replies
anushree1
Specialist II
Specialist II

works for me.

Please check the attached ,I have put jus 2 expressions , you can add similar expressions , also check the Data Handing Section it should be unchecked for Include Zero Vaues if you do not add an if condition for Sum(Traffic)

 

Kashyap_R
Partner - Specialist
Partner - Specialist

Hi 

Try this expression for the date dimension

IF(traffic>0,Date)

Hope this helps

Thanks

Thanks and Regards
Kashyap.R