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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional Dimension or Expression

Hi,

I need to show Product B & Stage 2 value 0 instead of 2. How should I do it in dimension or expression please.

ProductStage 1
Stage 2
Stage 3Total
A52411
B
1
2
36
C78621
13 Replies
Not applicable
Author

Ajay thanks but i can't download as I am restricted and using personal edition

Not applicable
Author

You can use this expression.

If(Product='B' and Stage2=2,0,Stage2)

Where Stage2 is an expression label.

Anonymous
Not applicable
Author

As I understand you have an expression in Follow Up Docs and Returned Docs, that you want to have it as 0 if product=B, so why don't you keep your expression as it's and multiply it by *only(if(Product='B',0,1))

Anonymous
Not applicable
Author

As I understand you have an expression in Follow Up Docs and Returned Docs, that you want to have it as 0 if product=B, so why don't you keep your expression as it's and multiply it by *only(if(Product='B',0,1))