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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Brip51
Creator
Creator

Displaying a reference Line in a chart when name selected

Hi,

I am creating a chart that tracks revenue amounts by a particular person,.  I want to create a reference line for a quota for each person, but only display the reference line for the person when that person is selected.

I can get as far as selecting ANY of the names with -

=if(substringcount(getcurrentselections(),'FeildMarketName')>0,70000000,0).

I want somthing like -

=if(substringcount(getcurrentselections(),'FeildMarketName') = 'jay',70000000,0) ... That does not work.

I need to get to-

If the value selected for FeildMarketName = A then display the reference line at B value.  I know I need some set analysis, but I cant figure out the syntax

Any suggestions or help would be greatly appreciated

Brian

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

UPDATED:

=IF(SubStringCount(CONCAT(GetFieldSelections(FeildMarketName) ,'|'),'jay'),70000000,0)

View solution in original post

2 Replies
MK_QSL
MVP
MVP

UPDATED:

=IF(SubStringCount(CONCAT(GetFieldSelections(FeildMarketName) ,'|'),'jay'),70000000,0)

Brip51
Creator
Creator
Author

Hi Manish,

Perfect.  Thank you.  It seems so simple NOW!!!!

Brian