@UserName will not work in selective replication formulas. Separate selective replication formulas are needed for each individual who needs to see a subset of data in a database.
It is a nightmare to maintain these separate formulas. When possible, use reader names to provide subsets of data to remote users.