Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hide a dimension on a graphic

Hi every body,

I'm novice in Qlik Sense and i have a problem:

I want hide a dimension on my graphic, look this picture

pb_dimension_hide.PNG.png

I have 2 dimensions on my X-axis.

I want hide the USG1 dimension but I want keep the Date dimension.

I tried in Appearence/X-axis/Label and title/  but my problem didn't solved.

Someone know how do that please?

Thank you for your help,

1 Solution

Accepted Solutions
Not applicable
Author

I found it,

Show the correct expression to show the dimension name on the graphic:

IF([Indicateurs]='USG1','')

pb_dimension_hide1.PNG.png

Thank you very much guys

View solution in original post

14 Replies
rubenmarin

Hi Jamaal,

You can try to uncheck the 'show Legend' mark in the dimension tab.

or

You can remove dimension and use set analysis in the expression. (adding to the expression something like ... {<USGField={'USG1'}>}.... )

Michael_Tarallo
Employee
Employee

Hi Jamaal -

It seems that the labels and titles - are tied together when grouped on the same Axis

   - what would be helpful is if you can control the labels individually for each dimension in the grouped X-Axis

I will submit this as an enhancement request.

Let me know if you find a work-around.

Hi Ruben - can you elaborate on the Set Analysis solution you mentioned?

Mike

Regards,
Mike Tarallo
Qlik
Not applicable
Author

thank for your answer, i have this expression for my dimension:

IF(Indicateurs='USG1',Indicateurs)

when i modify like you say me i have error in expression:

IF({<Indicateurs={'USG1'}>},Indicateurs)

Michael_Tarallo
Employee
Employee

Try this:

IF([Indicateurs]='USG1','Indicateurs') - I assume you want Indicateurs to be a value? So it needs to be wrapped in single quotes. Also for an IF statement like this - you do not need to use the Set Analysis syntax using the {} and <>.

But this expressions will still show the values along the bottom - instead of showing USG1 it will just show Indicateurs - which is not what you originally asked for.  Just making sure.

Mike

Regards,
Mike Tarallo
Qlik
Not applicable
Author

hi Michael,

Thanks for your answer, but my i used this expression :

IF(Indicateurs='USG1',Indicateurs)

for my graphic and he works but i tried the Ruben syntaxe and he doesn't work.

However i think Ruben is on the good way because the solution maybe found in the dimension expression to hide it on the graphic.

Michael_Tarallo
Employee
Employee

OK great - let us know and provide screen shots and solution syntax if you get it working.

Please mark the appropriate replies as helpful / correct so our team and other members know that your question(s) has been answered to your satisfaction.

Regards,

Mike

Regards,
Mike Tarallo
Qlik
Not applicable
Author

I found it,

Show the correct expression to show the dimension name on the graphic:

IF([Indicateurs]='USG1','')

pb_dimension_hide1.PNG.png

Thank you very much guys

Michael_Tarallo
Employee
Employee

Nice!

Regards,
Mike Tarallo
Qlik
rubenmarin

If you remove the Indicateurs dimension, you need to use set analysis in the expression so only USG1 indicateur is calculated, ie:

Supossing an expresion like

Sum(Values)

the set analysis expression should be:

Sum({<Indicateurs={'USG1'}>} Values)

That's for expressions, not for the "expression for your dimension", if you uses set analysis on dimension, the dimension will still be shown on the X-axis, you need to remove Indicateurs dimension.

If you need or want to keep the Indicateurs dimension... have you tried to uncheck the 'Show legend' mark?