Have a look in the attached,
Create two calculated fields returning the measure you need when the parameter value is selected and null otherwise. This way the line will disappear when not needed.
Test ref line ed mc.twbx 368.5 KB
Thanks Michel sorry for late reply
that worked for me