Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help me on ..How to hide chart on selection in listbox

ComboChart.PNG.png

i have the above combo box and i have to show sperately line chart and bar chart as according to the selection in the above listbox and hide this above combo box whenevr the selection is made in the above list box and get the following result as i am showing in the below images:barchart.PNG.pnglineChart.PNG.png

8 Replies
alexandros17
Partner - Champion III
Partner - Champion III

in cinditionl show of yhe expresion set the condition Getfieldselections(mesure)=myVal ...

Let me know

tresesco
MVP
MVP

Use two expressions, one for bar, another for line. Now use enabling condition for these expressions. Check the attached qvw.

aveeeeeee7en
Specialist III
Specialist III

Hi

You can use GetFieldSelections() Function to Hide the Chart.

First, create a Variable in the Backend Script. Like this:

LET vVarHide='Combo';

Secondly, Create 2 copies of Orginal Chart:

1) Original Combo Chart (Go to Properties> Layout>Conditional Expression: GetSelectedCount(Measure)='0' )

2) Bar Chart (Go to Properties> Layout>Conditional Expression: GetFieldSelections(Measure)='1' )

3) Line Chart (Go to Properties> Layout>Conditional Expression: GetFieldSelections(Measure)='2' )

See, the Attachment & Snapshots.

Regards

Av7eN

Not applicable
Author

Dear,

pls send me the image file of above qvw .i am using personal edition so it is not opening here.

Thanks

Not applicable
Author

Dear,

pls send me the image file of above qvw .i am using personal edition so it is not opening here.

Thanks

aveeeeeee7en
Specialist III
Specialist III

Create a Variable:

LET vVarHide='Combo';

See the Attached Snapshots.

Regards

Av7eN

Not applicable
Author

Dear,

Thank u so much for ur reply...but i need to keep select one value in measure listbox always either 1 or 2 as according to my another requirements.Hence the measure selectedcount will never have a value equals to zero.So in that case what i have to do to display the combo chart and then after to hide it  as according to display another chart on the same palce..pls let me know...i need a help..

thanks,

aveeeeeee7en
Specialist III
Specialist III

Ok

1) For Combo Chart don't use any Conditional Expression.

2) Create 2 Copies of Combo chart and place it little away from the Original Chart. See below:

Pic Attach.png

Hope that helps you.

Regards

Av7eN