Question: how to calculate percent of total in tableau?
Answer: Select Analysis > Create Calculated Field. ...  Right-click Percent of Total in the Measures pane and select Default Properties > Number Format... > ...  Place Percent of Total on Columns. Place Region on Rows. Place Segment on Color. Place Percent of Total on Label.