Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to always show an expression?

Hi all,

I have a radar chart, which uses a macro to show/hide expressons depending on what the user has selected.

BUT I want the expression : My Group, to always show.

Does anyone have an idea in which I always show this expression, but allowing the others to be optional.

Many thanks

9 Replies
Not applicable
Author

Any ideas on this one?

The 'My Group' expression disappears once I've selected which expressions to show (using the tickbox on the right)

Maybe through the Conditional box on the 'Expressions' tab. - Not sure?

SunilChauhan
Champion II
Champion II

you need to check always in layout

chart properties->layout->check always radio

thanks

Sunil Chauhan

Sunil Chauhan
Not applicable
Author

Even though this radio button is checked as 'always', the expression-My Group seems to always hide.

SunilChauhan
Champion II
Champion II

Control+M

Control+A

comment macro

Sunil Chauhan
Not applicable
Author

I tried this, but nothing really happens.?

Anonymous
Not applicable
Author

Did you try to add "My Group" to your inline script?

Like:

[Expressions]:

replace LOAD * INLINE [

Expressions

My Group

UK Average

Group1

Peer Group

];

What happens then?

Not applicable
Author

Thanks for the response.

Unfortunately this doesn't really do much.

hmmmm?

Not applicable
Author

hI beanz,

if i've understood well, why don't you use an if like this?

if(e.ExpressionVisual.Label.v="My Group")          then

                                                  expression.Enable = TRUE

                                                  ELSE

                                                  expression.Enable = FALSE               'disable the expression

                                        end if

So My Group is always enable.

But maybe it's too easy, i haven't understood surely..

C u,

Stefano

Not applicable
Author

I'm getting there.BUT I'd like the macro to run for a number of charts.

As soon as I add multiple charts in the macro editor -

set chart            = ActiveDocument.getSheetObject("CH15")

set chart            = ActiveDocument.getSheetObject("CH14")

set chart            = ActiveDocument.getSheetObject("CH22")

It ignores the macro each time.

Is there anyway I can change the macro to allow this functionality to run on all Charts.?