On the Y shelf, click the icon to the right of the variable.

In the dropdown, hover over Analytic Functions.

From the Analytical Functions menu, select Percent of group.

In the Analytical Function: Percent of Group modal window,

In Select aggregate for this measure, leave the default Sum.

Under Select entities over which to take calculate percentage, select state.

Click Apply.

Click Refresh Visual.

Note the expression used for calculating the percent of group:

sum([population]) / sum(sum([population])) over (partition by [state]) as 'percent(population)'

Percent of Group Analytic Function

Follow these general steps to create a percent of group visual:

When creating or editing a visual, determine for which field variable you must apply an analytic function.

The shelves that support analytic functions depend on the visual type, and are typically available for X and Y axes, Measures, Dimensions, Colors, and Tooltips.

Click the icon to the right of the variable.

In the dropdown, click Analytic Functions.

From the Analytic Functions menu, select Percent of Group.

In the Analytic Function: Percent of Group modal window, in Select entities over which to calculate percentage, choose one of:

Sum [default]

Count

Approx Distinct Count

Exact Distinct Count

Minimum

Maximum

Average

[Optional] Under Select entities over which to calculate percentage, select one or more entities listed in the modal window.