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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to calculate value of x-axis and y-axis intersect?

Hi Qlikview user,

I have a scatterplot with a linear line.
I want to calculate the following:

  • the x value when y=0
  • the y value when x = -10

these are the linest_m and linest_b functions:

Linest_m: LINEST_M(aggr(NODISTINCT Avg({TW1}($(vActiveUnitField))),Cofely.Id),aggr(NODISTINCT Avg({TW1}Cofely.Temperature),Cofely.Id))

Linest_b: LINEST_B(aggr(NODISTINCT Avg({TW1}($(vActiveUnitField))),Cofely.Id),aggr(NODISTINCT Avg({TW1}Cofely.Temperature),Cofely.Id))

My scatterplot has the following expressions:

1: Avg({$ * TW2}Cofely.Temperature)

2: Avg({$ * TW2}($(vActiveUnitField)))

dimension:

Cofely.Id (RecNo())

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You already have the slope m and the y-axis intersection b of the linear equation

y = m*x + b

, so you are all set, aren't you? The rest should be simple:

1) x value for y = 0

0 = m*x + b

---> x = - b/m

2) y value when x = -10

y = m* (-10) + b

View solution in original post

1 Reply
swuehl
MVP
MVP

You already have the slope m and the y-axis intersection b of the linear equation

y = m*x + b

, so you are all set, aren't you? The rest should be simple:

1) x value for y = 0

0 = m*x + b

---> x = - b/m

2) y value when x = -10

y = m* (-10) + b