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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to hide certain elements of a dimension in a chart?

Hi

I came across this question where I can't figure out how to hide "var" and only display "Bud" and "Est" from the Type Dimension.

Anyone knows how to do this? Any difference if I'm using a straight table vs a pivot table?

Capture2.27.15.PNG

Thanks

Zixiao

1 Solution

Accepted Solutions
Colin-Albert
Partner - Champion
Partner - Champion

Try this. The -= in the set expression may show a red underline indicating an error but the expression will work.

     sum({<Type -={'Var'}>} Amount)

An alternative is

     sum({<Type ={'Bud, Est'}>} Amount)


View solution in original post

5 Replies
maxgro
MVP
MVP

try this

use a calculated dimension instead of Type

if(Type<>'Var', Type)

and check suppress when value is null

saurabh5
Creator II
Creator II

hi ZiXiao,

you may require to create a new field using if condition something like:

if(Type='var',' ',Type) as Modified_Type,

this will create a blank space if you have 'var' as field value.

Thanks

Regards

Saurabh

Anonymous
Not applicable
Author

Thanks Massimo and Saurabh for your answers.  The calculated dimension does remove 'var' field value, however it doesn't remove the measure though.   This is how the chart looks like now... and I did check 'Supress when value is null'. Any way I can remove the whole row with measure value?

Capture.PNG

Thanks

Zixiao

Colin-Albert
Partner - Champion
Partner - Champion

Try this. The -= in the set expression may show a red underline indicating an error but the expression will work.

     sum({<Type -={'Var'}>} Amount)

An alternative is

     sum({<Type ={'Bud, Est'}>} Amount)


anbu1984
Master III
Master III

Sum(If(Type <> 'Var',Amount))

Or

Do you want to hide rows if Sum(Amount) is negative?

If(Sum(Amount)>0,Sum(Amount))