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: 
samuel_brierley
Creator
Creator

reference line expression

Hi all,

first of all thanks for any and all help its much appreciated.

I want to add a reference line onto a chart but I want the reference line to be a value from an excel table.

this table is not releated to the data on the chart and a lookup in the script seems to take FARRRRR too long so thats out.

id like the line to show the value of RLev10 in the table.

Parameter:Value:
RLev10750

thanks for any help.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

the expression should be

=only( {1 <Parameter={RLev10}>}  Value)

example in the attachment

View solution in original post

18 Replies
samuel_brierley
Creator
Creator
Author

apologies i forgot to add the name of the table is Settings, im pretty sure this will be required.

thanks again

MK_QSL
MVP
MVP

Go to Presentation >> Reference Lines >> Add >> Expression >> =RLev10 or =750

samuel_brierley
Creator
Creator
Author

Doesnt work,

I cant just put 750 as im trying to make a temp[late that will work regardless of the input data.

MK_QSL
MVP
MVP

Can you share your sample data or apps or even a picture of your current chart?

samuel_brierley
Creator
Creator
Author

Ye no Prob

on the chart I just need a reference line that shows rLev10 in the table Settings( in this version I havent named the table so its just called Sheet1), you can see that this isnt related if you look in table viewer you will see the standalone table.

also If you know how would it be possible to add a referene line that is Y=X?

https://www.dropbox.com/s/0r9kv1wo1jlq4wk/multidays.qvw

maxgro
MVP
MVP

load your excel and see image

1.png

samuel_brierley
Creator
Creator
Author

thanks youve definalty sussed it but how did you specify to puse the value for RLev10?

jfkinspari
Partner - Specialist
Partner - Specialist

Just type RLev10 into the expression. It's where Massimo has written Value

samuel_brierley
Creator
Creator
Author

Hi,

I have entered into the box (spelling and Case is correct) but no line appears?

rLev10.PNG.png