Hi,
I have a graph that I want to add target line per if statement (depends on user filters).
1. how to apply IF inside the graph code?
2. how to make the graph recalc and create the needed ref line?
example (the bold is not working):
Those are evaluated when the plot is created and they won't be re-evaluated later. You could (maybe) use graphic script to display the lines. Even easier could be to use Graph Builder and add extra lines to your data with extra columns to indicate the reference line values.