Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

farisahamad
Contributor

Dropdown list for selecting views

How can i create a dropdown list which has the values " Bar Chart" and " Pie Chart" and upon selecting Bar Chart i must see bar chart only..and upon selecting pie chart i must see pie chart.

Please help me on this .

4 Replies

Re: Dropdown list for selecting views

Load one table

ChartSele:

LOAD * Inline

[

ChartType

Bar

Line

];

On Bar Chart Layout property write

=GetFieldSelections(ChartType)='Bar'

On Line chart Layout property write

=GetFieldSelections(ChartType)='Line'

Re: Dropdown list for selecting views

You have to introduce one table in your data model for chart type selection

Ex:-

ChartSele:

LOAD * Inline

[

ChartType

Bar

Line

];

On Layout property Bar chart in Show >> conditional >> 

=GetFieldSelections(ChartType)='Bar'

On Layout property Bar chart in Show >> conditional >> 

=GetFieldSelections(ChartType)='Line'

See attached also

farisahamad
Contributor

Re: Dropdown list for selecting views

Hi,

Where exactly we have layout property in qlik sense?

Regards,

Faris.

Re: Dropdown list for selecting views

If you working on Qliksense then check the Qlik Branch site you have to find any API for this.