Yes the dummy column has to be in the output for the input parameter to instantiate. Please note that the variable and input parameter serves different purposes. For the "WHERE" condition scenario, you can use variables, but for the calculations, projection filters, currency conversion (any design level filters), it is recommended to use Input parameters.
Regards,
Ravi