Qlik Community

Ask a Question

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Talk to Experts Tuesday, January 26th at 10AM EST: Qlik Sense. REGISTER NOW
Showing results for 
Search instead for 
Did you mean: 
Contributor III
Contributor III

Multiview Bargraph condition function

Hi for starters i'm new to QlikSense and QlikView.

I am trying to display dynamic charts that changes based on measure sorted in a descending order (On user click it changes based on the measure). Does anyone know the function for sorting a dynamic chart?

Edit: my chart is a bar graph with one measure and one alternative measure

I am thinking of something like,  if user clicked on chart X to be displayed then sort by X function, if user clicked on chart Y to be displayed then sort by Y function.

I have tried to place a condition based on a label but nothing works 

my expression logic:

if(LabelName = label_name then count(X) else count(Y))

Any tips and tricks are appreciated

1 Reply
Contributor III
Contributor III


What worked for me is placing this expression in the sort tab:  if(GetObjectMeasure()= Label Name ,do expression, else expression)