6 Replies Latest reply: Jun 15, 2016 3:09 AM by Sattipandu Adabala

# How to make our chart dynamically change based on the customized field Top(5,10,15)

Hi,

Here I am creating a new Dimension by giving the expression  \$(vTop)

Here vTop is the variable having the expression  valueList(5,10,15).

Kind Regards.

• ###### Re: How to make our chart dynamically change based on the customized field Top(5,10,15)

If i am not getting your question wrong you want to limit dimension on the basis of top 5, 10 or 15 measures.

This is what are you asking ?

• ###### Re: How to make our chart dynamically change based on the customized field Top(5,10,15)

Yes

• ###### Re: How to make our chart dynamically change based on the customized field Top(5,10,15)

you need to use a key field but this should work

sum({< Key={"=rank(Sum(Value)) < \$(vTop)"}>}Value)

• ###### Re: How to make our chart dynamically change based on the customized field Top(5,10,15)

Hi Ramon,

Where can i write this expression, can u please give more clarification on this.

Kind Regards......

• ###### Re: How to make our chart dynamically change based on the customized field Top(5,10,15)

HI,

Here is the solution for this.

1).Download the variable extension from https://github.com/erikwett/qsVariable/raw/master/dist/variable.zip and extract       to extensions folder of Qlik Sense. The variable extension is visible in the charts tab as shown in below image. and         choose Render as field from and give name as vTop save it and use vTop in your above expression for the specific         measure to be used in the chart or table...

2).Drag and drop the extension to the work pane.

3).Before that create a variable(here vTop is my variable).

4) Give this name reference to the variable extension Field.

5)Now write the expression of measure using the variable "vTop" like

Sum({<Dealer = {"=rank(sum(support_count))<= \$(vTop)"}>}support_count)

6)now we can see the Top values based on the entered value.

Thanks,

Sattipandu.