QueryOptions object
Applies drilling only to the group of members in which the selection is made. Enabling this property is only meaningful when the report contains two or more dimensions of data down a report as rows or across a report as columns. This type of report is considered asymmetric, which is characterized by groups of nested members that differ by at least one member.
Read-write, Boolean
This example shows how to enable the IncludeWithinSelectedGroup (Property) when a check box is checked:
if (ActiveDocument.Sections["QueryOptions"].Shapes["CheckBox8"].Checked) { ActiveDocument.Sections["Query"].QueryOptions.IncludeWithinSelectedGroup = true} else {ActiveDocument.Sections["Query"].QueryOptions.IncludeWithinSelectedGroup = false}