# GetSetAnalysis method

Returns a set analysis expression from a bookmark. Fields on the fly and calculated dimensions will not be included in the generated expression; instead a `MISSING VALUES` comment will be included within the expression.

## Parameters

| Name | Description | Type |
| --- | --- | --- |
| qStateName | Optional. The name of the state to get set analysis expression for. If left empty, the default state will be retrieved. | String |

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qSetExpression |  | String |