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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
phiilip
Contributor II
Contributor II

Reference line that changes based on what dimension is chosen

Hello all,

so I have a chart with three alternative dimensions (Year/Month/Week), where I want to have a reference line that changes based on what dimension is currently active in the chart. For year i want to show 10 000, for month 800 and for week 200.

 

How do I go about this?

Labels (1)
1 Reply
SRA
Partner - Creator
Partner - Creator

Hi,

Not sure this is possible when using alternative dimensions. It would be easier if you use an variable dimension with : pick(match(YourVariable, 'Year', 'Month', 'Week'), Year,Month, Week). You could used the pick line formula : pick(match(YourVariable, 'Year', 'Month', 'Week'), 1000 , 800, 200)

Let me know if you need more precise description. And if this answer is fittting your requirement, you can tick it as a solution. 

Regards

SRA