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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count with multiple conditions

Hi,

I have issues with a mutliple count condition function.

Below 2 expressions works fine:

  1. (count({<[Status]={'Perdue'}>} [ID opportunité]))
  2. (count({$<Year = {$(=max(Year ))}, Month= {"<=$(=max({<Year ={$(=max(Year ))}>} Month))"}>} [ID offre]))

But when I want to create a new expression by putting the expression 1 inside expression 2 so having 3 conditions in total, it doesn't work.

Here is the expression with which I struggle:

(count({$<Year = {$(=max(Year ))}, Month= {"<=$(=max({<Year ={$(=max(Year ))}>} Month))", Status={'Perdue'}>} [ID opportunité]))

Many thank for your help!!

PS: I am using Personal edition

Labels (1)
1 Solution

Accepted Solutions
effinty2112
Master
Master

Hi Christophe,

                         There appears to be a curly bracket missing. I've added it in bold here:

(count({$<Year = {$(=max(Year ))}, Month= {"<=$(=max({<Year ={$(=max(Year ))}>} Month))"}, Status={'Perdue'}>} [ID opportunité]))


Try it again and good luck


Andrew

View solution in original post

3 Replies
effinty2112
Master
Master

Hi Christophe,

                         There appears to be a curly bracket missing. I've added it in bold here:

(count({$<Year = {$(=max(Year ))}, Month= {"<=$(=max({<Year ={$(=max(Year ))}>} Month))"}, Status={'Perdue'}>} [ID opportunité]))


Try it again and good luck


Andrew

Not applicable
Author

Awesome you made my day

effinty2112
Master
Master

Well Christophe your reply made mine.