IF RUNNING_SUM(SUM([Sales])) > [Sales_Target] THEN RUNNING_SUM(SUM([Sales])) END
It wouldn't load your data, it wanted me to log into Tableau Online so I just added Superstore for the example. 9.2
Sorry for my data. My fault.
Thanks for your answer. The same I tried before, but that is not exactly, what I'm looking for.
If I use your formula, only the orange part of the line will be displayed (see the screenshot).
Let me explain it more detailed:
In the screenshot you can see, what I want. In this case it is OK. But - if I would select with my paramater a value, which is higher than my Maximum (here about 15000000) - e.g. 20000000 - nothing should be displayed - no line. If the parameter value is less than my maximum of running sum, then the all running sum line shall be displayed - from the beginning to the selected parameter value.
I hope, it is easier to understand now.
That is exactly what I was looking for.
Thank you, Adam!