Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dynamic Reference Line Chart


Dear,

i have define 5 expressions as a Group (cyclic) and two dimensions in chart, and its working fine, now i am going to define Reference line based on expression for example is given below:

exp1 is Gross login & reference line for Gross Login is 20

exp2 is Return & reference line for Return is 25

exp3 is Net login & reference line for Net Login is 30. and so on.

Problem is how i can define the reference line expression based on above expression, means if i select Gross login expression then reference line move on 20 or if i select Return expression then reference line move on 25 and so on.

Kindly guide me how i can define this.

Regards,

Zain.

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I have implemented the cycling using a variable instead. Updated qvw attached.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

10 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Use something like this for the reference line expression:

=Pick(Match(GetCurrentField(Group), 'Gross login', 'Return', 'Net login'), 20, 25,30)

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

You might get a syntax warning (squiggly underlines) under the group name - just ignore these

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Dear thanks for the reply, I tried but its didnt show me reference line and kindly remember i grouped all expression and expression group havnt assign name,

i also attached the application.

Regards,

Zain.

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You are not using a cyclic group - you are using an expression group. I don't know any way to identify which expression is selected in an expression group.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
oleg_orlov
Creator
Creator

Hi!

How to get the used expression?

Hope this helps,

Oleg

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I have implemented the cycling using a variable instead. Updated qvw attached.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanks a lot Jonathan for your effort.

Regards,

Zain

Not applicable
Author

Oleg, Thank for the information.

Regards,

Zain.

qlikpahadi07
Specialist
Specialist

Hi Shiekh,

First thanks Oleg for sharing the link I really appropriate.

Also it seems Jonathan have given the solution which seems perfect.... for a record I have implemented the same and find the attachment

Cheers to all

Learned new think today

Thanks