Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Restrict colomn of a row

Hi Guys,

I want to show 0 in Product B under Stage 2. How can I restrict it in dimension or in expression please.

Time in Hours
ProductStage 1
Stage 2
Stage 3Total
A52411
B
1
2
36
C78621
5 Replies
richard_chilvers
Specialist
Specialist

Hi Shoaib

How do you decide when you'd like a 0 to show ? Is there a rule?

Not applicable
Author

Hi Richard,

By default Product B under Stage should be 0. But the the application can have more than one products. e.g. application has product A and B. In this case my code shows the same time in A and B i.e. 2. But actually under B and Stage 2 it should be 0.

Not applicable
Author

Hi Shoaib,

Try the below condition in script (if Product and Stage2 are in a same table).

if(Product='B',0,Stage2) as Stage2

If the above doesn't help please share the sample app to understand it better.

--

Vinoth

Not applicable
Author

Hi Vinoth.

I need to solve the following thread please:

http://community.qlik.com/thread/109500


Not applicable
Author

Sure shoaib.

At the same time if you got the answer for the above thread please mark the correct answer and close the thread.

--

Vinoth