Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Reference line based on x axis values

Hello everyone,

I have a graph with y = some %  and x= time in month.

I would like to add a reference line which represents the goal for each month. For january to June 2015 , the reference value must have a value = 93 and for July to December 2015, the reference line must be equal to 95.

I have tried in the expression :

if(num([Month ]) <7, 0.93, 0.95) but it doesn't work, the reference line is always equal to 95%.

How can I do ?

Thank you for your answer

Have a good day.

Laura

1 Reply
morganaaron
Specialist
Specialist

As far as I know, a reference line is static across the whole range of your chart - so you won't be able to add any conditions to it, it can only be a static line.

Your best option would be to create another expression such as:

if( [your dimension] < [value], 0.93, 0.95)

Bare in mind this would show the link between the two as genuine movement however, so if you wanted two separate lines you'd need two expressions, one for the 0.93 and one for the 0.95.