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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem regarding Distinct function.

Dear All,

             Distinct is a easy function to use but my problem is that

             when I use it in a straight table expression inside a sum

            function the total is comming smaller,because the distinct

            eleminates duplicate value in to one value.But I need to show

             the actual total.

             How to resolve it?Please help me.I am waiting for your first respone.

Thanks & Regards,

Koushik Roy.

(GreenCube Infotech.)

2 Replies
its_anandrjs
Champion III
Champion III

Hi,

You have to sum some think like below

Sum( Distinct If( isnull( Yourfield ) = -1,1,0 ) ) + Sum( Distinct Yourfield )

try this

Let me know

HTH

Rgds

Anand

SunilChauhan
Champion II
Champion II

use below

RangeSum(Top(Sum(Fieldname), 1, NoOfRows()))

hope this helps

Sunil Chauhan