I continue to be a huge fan of Tableau Table Calculations in conjunction with Tableau Parameters. In the example below, someone wanted to have a single visual with multiple possible "percent of total" calculations. But, they didn't want to have multiple measurements in play.
Because each Table Calculation can have its own "scope" or "partition" this turns out to be pretty easy to create. Enjoy!