The filter on the URL needs to be a Dimension or a Parameter but you can be creative here. For instance, the examples you mention could be done with a Parameter.
See - Tableau Public (max) vs Tableau Public (min). By creating the calculated field and then setting the parameter to the desired value option for the view, you can control with the URL what should be displayed.
I have attached the workbook I used to create this in version 10.5 as well.