code: func (obj *Doc) GetSetAnalysis(ctx context.Context, stateName string, bookmarkId string) (string, error) {
  	result := &struct {
  		SetExpression string	`json:"qSetExpression"`
  	} {}
  	err := obj.rpc(ctx, "GetSetAnalysis", result, stateName, bookmarkId)
  	return result.SetExpression, err 
  }
docs: // Returns a set analysis expression from active selections or from a saved bookmark. Fields on the fly and Calculated dimensions will not be included in the generated expressions, instead a message indicating 'missing fields' will provided within the expression.
  //   | | BookmarkId empty | BookmarkId set |
  //   |-----------------------|--------------------------------------|----------------------------------------------------|
  //   |StateName empty (or $) | Default selections state is returned.| Default state ($) in bookmark with id is returned. |
  //   |StateName set | State selections is returned. | State in bookmark with id is returned. |
  //
  // Parameters:
  //
  // ◾ stateName    -   Optional. The name of the state to get set analysis expression for. If left empty, the default state will be retrieved.
  //
  // ◾ bookmarkId   -   Optional. The Id of the bookmark to get the set analysis expression for. If left empty, the current selection will be retrieved.
  //