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

Announcements
Discover how organizations are unlocking new revenue streams: Watch 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.

18 Replies
jfkinspari
Partner - Specialist
Partner - Specialist

The expression is red, meaning it cant find the field in the datamodel.

Make sure you have load the field value from the Excel sheet.

Eventual you can upload a sample of the qvw file.

Roop
Specialist
Specialist

Your expression needs to be = 750, or if you want to make it more variable make it equal to a variable that you then give the value of 750 to

maxgro
MVP
MVP

if you laded your excel and it has 1 record and the name of the field is Value (Value=750), put

Value in expression

samuel_brierley
Creator
Creator
Author

thats because my Field is named Paramater and the record is rLev10, their are obviously other records in this table but for this reference line I only require rLev10, apologies if that wasnt clear

Roop
Specialist
Specialist

Your Rlev10 does not exist as it has a red underline in the window. I think that this is just a problem of spelling or upper/lower case - these need to be exact. I would suggest selecting RLev10 from your field names already defined in your expression.

samuel_brierley
Creator
Creator
Author

rLev10 really does exist and im 100% ive spet it correct, the reason it is red is because it is a record not a field.

Capture.PNG.png

maxgro
MVP
MVP

the expression should be

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

example in the attachment

samuel_brierley
Creator
Creator
Author

Thank You very much, I sense that was far more difficult than it should be lol,

have a nice day

Roop
Specialist
Specialist

See Massimo Grossi answer - sorry had not realised it was a parameter inside a table.