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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error in Expression

Hi

Could some one rectify this expression , it is not executing.

=Count(if([P ID]='1',([Review Name]='ECO1' , [Review Decision]<>'Pass') and

if([P ID]='2',([Review Name]='ECO2', [Review Decision]<>'Pass'),PRJ_ID)))

need to count PRJ_ID based on theses conditions  [P ID]='1',([Review Name]='ECO1' , [Review Decision]<>'Pass'

Thanks

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Kush141087:

=Count({<[P ID]={'1'},[Review Name]={'ECO1'} , [Review Decision] - ={'Pass'}> * <[P ID]={'2'},[Review Name]={'ECO2'} , [Review Decision] - ={'Pass'}>} PRJ_ID)

I agree, except that you need a union rather than an intersection:

=Count({<[P ID]={'1'},[Review Name]={'ECO1'} , [Review Decision] -={'Pass'}> + <[P ID]={'2'},[Review Name]={'ECO2'} , [Review Decision] -={'Pass'}>} PRJ_ID)

(and no spaces between the - and = for the -= operator)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

6 Replies
tamilarasu
Champion
Champion

Hi Vamsi,

Try this,

=Count({<[P ID]={'1','2'},[Review Name]={'ECO1','ECO2'} , [Review Decision]=-{'Pass'}>} PRJ_ID)

Anonymous
Not applicable
Author

HI

Try this

  • =Count({<PID={'1'},ReviewDecision-={'PASS'},ReviewNAme={'EC01'}>}PRJ_ID)
Not applicable
Author

Try this below Set analysis Expression  I hope this will works..

=Count({<[P ID]={'1'},[Review Name]={'ECO1'},notMatch([Review Decision],'Pass')>}PRJ_ID)

Kushal_Chawda

try

=Count({<[P ID]={'1'},[Review Name]={'ECO1'} , [Review Decision] - ={'Pass'}> * <[P ID]={'2'},[Review Name]={'ECO2'} , [Review Decision] - ={'Pass'}>} PRJ_ID)

jonathandienst
Partner - Champion III
Partner - Champion III

Kush141087:

=Count({<[P ID]={'1'},[Review Name]={'ECO1'} , [Review Decision] - ={'Pass'}> * <[P ID]={'2'},[Review Name]={'ECO2'} , [Review Decision] - ={'Pass'}>} PRJ_ID)

I agree, except that you need a union rather than an intersection:

=Count({<[P ID]={'1'},[Review Name]={'ECO1'} , [Review Decision] -={'Pass'}> + <[P ID]={'2'},[Review Name]={'ECO2'} , [Review Decision] -={'Pass'}>} PRJ_ID)

(and no spaces between the - and = for the -= operator)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thankyou Jonathan