When you post a thread about an error, it kinda helps out if you post the error too....
...but I suspect the error you are getting is because you are not including the function owner when you call it. UDF calls must include the owner of the function:
select title from dbo.SalesByStore(getdate())
If it's not practically useful, then it's practically useless.