You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

count combined with if

edited Jun 12, 2017 3:05PM in Reporting & Analytics for B2C Service 1 comment

Content

Hi all,

maybe I am thinking too complicated, but there is a challenge I have currently no solution for:

I am trying to count records with an if condition. That indeed would not be a problem, but now I want to combine 2  conditions in the expression and I am absolutely not aware how to do that, as I always get errors.

Example:

count(distinct if(tableX.field1 = 1 and tableY.field2=2, transactions.id))

What is the mistake I make?

 

Thanks for any hint in advance

Kai

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!