Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

exclude one more vaules on condition

Hello Expert,

Lets say I have inline data on following format.

Field1Field2Field3
3671@1.comOp
2582@2.comOp
4523@3.comSe
3671@1.comOp Ou
2582@2.comSe
2582@2.comOp Ou

I am creating straight table chart by using

Dimension: if(Field3='Op',Field2)

Expression: count(Field1)

Result: which are fine based on above conditions.

Field2Count
1@1.com1
2@2.com1

But i would like to add another condition to exclude "Op Ou" as well from above result.

Fianl result would be

2@2.com as it doesn't have any values of "Op" and "Op Ou".

Thanks,

Dinesh

2 Replies
its_anandrjs

Hi,

When you select Dimension: if(Field3='Op',Field2) this condition by this you check where ever a value equal to "Op" will display but you want to exclude a "Op Ou" if so you have to write

Dimension: If( Field3 = 'Op' and  Field3 <> 'Op Ou' ,Field2) in dimension part and in expression it will be same

Expression: count(Field1).

Rgds

Anand

Not applicable
Author

Hi,

I have already tried above dimension but it still doesn't display correct value as above.

Any other solution?

Regards,

Dinesh