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.

Announcements
Welcome to our newly redesigned Qlik Community! Read our blog to learn about all the new updates: READ BLOG and REPORTED ISSUES
cancel
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

Solved:

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