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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
QlikSensor
Partner - Creator
Partner - Creator

Reference Line in Bar Chart or pivots on calendar data

Hi,

I have a bar chart (from vizlib) and a pivot table which shows monthly data (production months).

Now I have a second table which is joined via another dimension (not the production months). In this table there is stated a date which describes a certain measure introduced to the production. I want to draw a reference line in my bar chart at this production introduction date (or highlight it in the pivot).

In the bar chart I used following equation for the reference line, but this doesn't seem to work. 

=max([Introduction date to production])

Any hints, why or is there a better solution?

7 Replies
JordyWegman
Partner - Master
Partner - Master

Hi,

Should this be a horizontal or vertical reference line?

Jordy

Climber

Work smarter, not harder
QlikSensor
Partner - Creator
Partner - Creator
Author

A vertical line. The vizlib Barchart makes that possible. Saying this, I have a similar problem by coloring the "production date" > "introduction in production date" in Pivot tables.

JordyWegman
Partner - Master
Partner - Master

Yes, did you enter an '=' value before? Qlik's native objects don't need that, but these from Vizlib do. Without it, it won't evaluate your statement.

Jordy

Climber

Work smarter, not harder
QlikSensor
Partner - Creator
Partner - Creator
Author

Hi again,

I used this statement (copy from the original post):

=max([Introduction date to production])

QlikSensor
Partner - Creator
Partner - Creator
Author

Please note that [Production Date] (used in the bar chart as dimension) and [Introduction date to production] (used as reference line) are different dimensions.

QlikSensor
Partner - Creator
Partner - Creator
Author

Can this be the problem that they are different dimensions? How can we handle this problem? Both dimensions are classified as dates...

JordyWegman
Partner - Master
Partner - Master

Can you maybe show a sample of your QVF or the data model viewer?

Jordy

Climber

Work smarter, not harder