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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hide Column based on Expression

Hi,

I have a table as below with record type as dimension.. I need to hide the rows which have no issue and display only the once with the issue. How can I achieve this.

Capture.PNG

Thanks in advance

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Mohan,

I usually use a workaround method for this and that is using the same condition in all expressions.

In you case

if(Issue<>'No Issue', DM)

if(Issue<>'No Issue', Oats)

if(Issue<>'No Issue', DM-Oats)

if(Issue<>'No Issue', Issue)


Hope this helps.


Laxmi

View solution in original post

15 Replies
vishsaggi
Champion III
Champion III

IS this a Straight table ? If yes,

In the Expression tab:

Check Enable conditional for that specific Column name (Issue)

Then write = Only(Issue) = 'No Issue'

Try this.

Not applicable
Author

I tired it. The expression says " Bad Field Name(s): Issue.. Its not working..

Not applicable
Author

and it s a straight table..

ecolomer
Master II
Master II

You can also, write this expression in the dimension:

=if(Issue <> 'No Issue', [Record Type])

and check option  "Supress when is Null value"

vishsaggi
Champion III
Champion III

What is the field name for this No Issue value in the table ?

Not applicable
Author

It is not a field in the table.. It is an expression defined based on this "=if([DM]-[Oats]<0,'Oats Not in DM', if([DM]-[Oats]>0,'DM Not IN Oats', if([DM]-[Oats]=0,'No Issue')))"..

vishsaggi
Champion III
Champion III

Can you try this?

Edit the expression for Issue Calculated column as below:

=if(DM - Oats < 0,'Oats Not in DM',

if(DM - Oats > 0,'DM Not IN Oats',

if(DM - Oats = 0, DUAL('No Issue', 0)

)))

-> Go to Presentation tab and Check Supress Zero values.

Not applicable
Author

I tired it but it doesn't work either.. I tired it from the script side and pulled up only differences and populated the chart.

vishsaggi
Champion III
Champion III

Right, I need you to send me your sample app with scrambled data if any confidential information. I have populated based on the image you have sent and it worked fine at my end. Can you populate some sample data and send it pls ?