Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
anitamanders
Contributor II
Contributor II

count if...

Hello,

I have a pivot table with a column (1) that loads (sum sales - sum target)

Now I want to count all customernames where column (1) < 0  (so where sales < target)

I have tried this:

 

Count (DISTINCT(if(Column(1)= '<=0',[organisatie_naamorg])))

but this results in 0 for everything, so I am doing something wrong....

Can someone help me with this?

Thanks!


1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Anita,

     Hope the attached file will helpful for you

Regards

Ashok

View solution in original post

8 Replies
tresesco
MVP
MVP

Try: Column(1)<=0

instead of

Column(1)= '<=0'

Not applicable

try this

Count (DISTINCT(if(Column(1)<=0,[organisatie_naamorg])))

anitamanders
Contributor II
Contributor II
Author

no, does not work

Anonymous
Not applicable

Hi Anita,

     Hope the attached file will helpful for you

Regards

Ashok

narender123
Specialist
Specialist

Hi

Try this,

=if(Column(1)<=0,Count(Distinct [organisatie_naamorg]))


Thanks.

anitamanders
Contributor II
Contributor II
Author

thanks a lot Ashok, this works perfectly !!

Anonymous
Not applicable

     Great.

     welcome

Regards

Ashok

Not applicable

Hello Anita,

if you just want to display the number of customers who didn't get the target, then I wonder if the function below helps :

=count(aggr( if( Sales < Target, Name ), Name ))

You could use a text object to test the function ( after you replaced the fields names with yours ofcourse ).

Hope this helps....