Following we want to reach:

I use the superstore dataset to show and explain step by step this dynamic visualization.
On rows you can see the dimension “Sub-Category” and on columns the measure “Difference from subcategory set”.
1. Step – Create the set for the dimension of your choice

Click on one element of the Set
2. Step – Create a new calculated field, that returns the absolute Value of your measure for the chosen Element

You need for the calculation of the difference the absolute value for the chosen Element of the set. Therefore you can use a conditional Fixed LOD-Expression.
3. Step – Create a new calculated field and calculate the difference of your measure

We sum the sales for each subcategory and subtract the value we calculated in step 3. I used the SUM() aggregation for “Sales for Subcategory Set”, because I had to sum the sales for each category and both values have either to be aggregated or not. A mix is not possible.
4. Step – Create the bar chart with the difference of your measure and sort it

5. Step – Create the set action

Click Ctrl + Shift + A to open the action configuration window. Click on “Add action” and choose “Change Set Values”. Choose in the set action window your created set and choose “keep set values”. Click “ok”.
6. Optional: Remove the highlight
Create a dummy-variable. Use a highlight-actions:

Create a dummy only with any string. Drag the Dummy on details. Open the action configuration window with Ctrl + Shift + A. “Add action” and click on “Highlight”. Choose in the highlight configuration window under “Target highlighting” the option “selected fields” and then our new calculated field “dummy”.

