Forum Discussion
Point at which two lines converge
I have two lines on a graph, one of which is dynamic based on some "what if" parameters. I want to find the point on the x axis where the 2 lines meet.
Any help much appreciated!
So I took your inspiration and managed to get it to work using:
backlog_crossover_date = var crossover = MAXX('Calendar Table', if([Forecast Plus Backlog] - [Regression line by hours] > 0, 'Calendar Table'[Date], date(2000, 1, 1))) var result = if(crossover <= DATE(2025, 3, 30), crossover, "No Crossover") RETURN resultit may not be the most elegant but it works!
3 Replies
- AnonymousNot applicable
Hi, I tried with the below measure
Difference =var diff = 'Average of Running total, Regression line by hours, Forecast, Forecast_plus_back'[Average baseline] - 'Average of Running total, Regression line by hours, Forecast, Forecast_plus_back'[Average regression]var result = IF(diff<0,diff)RETURNresult
Got result like below image.I kept the Difference measure in Y-Axis.
So, from intersection point to end of the line the ornge line is displaying.
Hope this will works somewhat for you!!
Regards,
Chiranjeevi Kudupudi- Angus01Regular Visitor
Thank you for this. It feels like a step in the right direction but what I am really trying to do is get a single value for the first point of conversion, such that I can display it on a card or similar.
- Angus01Regular Visitor
So I took your inspiration and managed to get it to work using:
backlog_crossover_date = var crossover = MAXX('Calendar Table', if([Forecast Plus Backlog] - [Regression line by hours] > 0, 'Calendar Table'[Date], date(2000, 1, 1))) var result = if(crossover <= DATE(2025, 3, 30), crossover, "No Crossover") RETURN resultit may not be the most elegant but it works!