mateo
mateo

Reputation: 89

Is there a way to display a different graph only when you select a graph variable?

first, i wanna show only pie graph. and only if i select one of the pie graph fragments, I'd like to show the corresponding bar graph value.

Is there a way?

enter image description here

Upvotes: 0

Views: 858

Answers (1)

Stefan Stoychev
Stefan Stoychev

Reputation: 4987

In QlikView

  1. Open the chart preferences
  2. Add the calculation condition = GetSelectedCount(FieldName) = 1 (More about GetSelectedCount function)

Calculation condition

  1. Open Error Messages

Error messages button

  1. Select Calculation condition unfulfilled

Standard messages

  1. Enter the message. It can be a plain text or expression/calculation

Message

Now if nothing is selected in Director field (or more than one value is selected) the error message will be shown

Before

If only one value is selected then the chart will be calculated

After

In Qlik Sense

In the chart properties expand Data handling and add the condition in Calculation condition and the message in Displayed message (as in QV the message can be plain text or calculation) Data handling

Nothing is selected (or more than one is selected) and the message is shown

Before

Only one value is selected and the chart is calculated

After

Upvotes: 1

Related Questions