Are you trying to apply this comparison across different tables? If you are then, yes, you will need to provide row context for the calculation for the remote table.
If you're making the comparison across two columns in the same table then the row context should be implicit, and there's another issue at play.
Now accepting Kudos! If my post helped you, why not give it a thumbs-up?
Proud to be a Datanaut!