Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
denisb
Contributor III
Contributor III

Scatter Chart Reference Lines in the middle

Hello,

I have a scatter chart. In this chart I want to have a reference line, exactly in the middle of my x axis. So I need the max value of the x axis in my scatter chart. After a selection, the chart will have a new max value of the x axis. Then I need again a reference line exactly in the middle. 

Is there a function? Ideas? 🙂 

 

Thanks

Denis

 

Labels (3)
1 Solution

Accepted Solutions
zhadrakas
Specialist II
Specialist II

Median Approach:

= Median([X_Axis_Expression])

= Median([Y_Axis_Expression])

max/2 Approach:

Max(Aggr(NODISTINCT [X_Axis_Expression]),Chart_Dimension))/2

Max(Aggr(NODISTINCT [Y_Axis_Expression]),Chart_Dimension))/2

Diagonal Line

https://community.qlik.com/t5/New-to-QlikView/Reference-Line/m-p/242698

View solution in original post

2 Replies
zhadrakas
Specialist II
Specialist II

Median Approach:

= Median([X_Axis_Expression])

= Median([Y_Axis_Expression])

max/2 Approach:

Max(Aggr(NODISTINCT [X_Axis_Expression]),Chart_Dimension))/2

Max(Aggr(NODISTINCT [Y_Axis_Expression]),Chart_Dimension))/2

Diagonal Line

https://community.qlik.com/t5/New-to-QlikView/Reference-Line/m-p/242698

denisb
Contributor III
Contributor III
Author

Thanks. 

I use this now:

X = max(aggr(sum(MY_X_VALUES),[MY_DIMENSION])) / 2

Y = max(aggr(SUM([MY_Y_VALUES]),[MY_DIMENSION])) / 2

 

denisb_0-1589873615448.png

 

Best Regards