Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
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)