executeHR.xml 16.1 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362
<?xml version="1.0" encoding="UTF-8"?>
<xmlacycle>
<Execute xmlns="urn:schemas-microsoft-com:xml-analysis">
  <Command>
    <Statement>
      SELECT {[Measures].[Org Salary]} ON columns, Hierarchize(Union({[Employees].[All Employees]}, [Employees].[All Employees].Children)) ON rows FROM HR WHERE ([Time].[1997])
    </Statement>
  </Command>
  <Properties>
    <PropertyList>
      <Catalog>${catalog}</Catalog>
      <DataSourceInfo>${datasource}</DataSourceInfo>
      <Format>Multidimensional</Format>
      <AxisFormat>TupleFormat</AxisFormat>
    </PropertyList>
  </Properties>
</Execute>
<xmla:ExecuteResponse xmlns:xmla="urn:schemas-microsoft-com:xml-analysis">
  <xmla:return>
    <root xmlns="urn:schemas-microsoft-com:xml-analysis:mddataset" xmlns:EX="urn:schemas-microsoft-com:xml-analysis:exception" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <xsd:schema elementFormDefault="qualified" targetNamespace="urn:schemas-microsoft-com:xml-analysis:mddataset" xmlns="urn:schemas-microsoft-com:xml-analysis:mddataset" xmlns:sql="urn:schemas-microsoft-com:xml-sql" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <xsd:complexType name="MemberType">
          <xsd:sequence>
            <xsd:element name="UName" type="xsd:string"/>
            <xsd:element name="Caption" type="xsd:string"/>
            <xsd:element name="LName" type="xsd:string"/>
            <xsd:element name="LNum" type="xsd:unsignedInt"/>
            <xsd:element name="DisplayInfo" type="xsd:unsignedInt"/>
            <xsd:sequence maxOccurs="unbounded" minOccurs="0">
              <xsd:any maxOccurs="unbounded" processContents="lax"/>
            </xsd:sequence>
          </xsd:sequence>
          <xsd:attribute name="Hierarchy" type="xsd:string"/>
        </xsd:complexType>
        <xsd:complexType name="PropType">
          <xsd:attribute name="name" type="xsd:string"/>
        </xsd:complexType>
        <xsd:complexType name="TupleType">
          <xsd:sequence maxOccurs="unbounded">
            <xsd:element name="Member" type="MemberType"/>
          </xsd:sequence>
        </xsd:complexType>
        <xsd:complexType name="MembersType">
          <xsd:sequence maxOccurs="unbounded">
            <xsd:element name="Member" type="MemberType"/>
          </xsd:sequence>
          <xsd:attribute name="Hierarchy" type="xsd:string"/>
        </xsd:complexType>
        <xsd:complexType name="TuplesType">
          <xsd:sequence maxOccurs="unbounded">
            <xsd:element name="Tuple" type="TupleType"/>
          </xsd:sequence>
        </xsd:complexType>
        <xsd:complexType name="CrossProductType">
          <xsd:sequence>
            <xsd:choice maxOccurs="unbounded" minOccurs="0">
              <xsd:element name="Members" type="MembersType"/>
              <xsd:element name="Tuples" type="TuplesType"/>
            </xsd:choice>
          </xsd:sequence>
          <xsd:attribute name="Size" type="xsd:unsignedInt"/>
        </xsd:complexType>
        <xsd:complexType name="OlapInfo">
          <xsd:sequence>
            <xsd:element name="CubeInfo">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element maxOccurs="unbounded" name="Cube">
                    <xsd:complexType>
                      <xsd:sequence>
                        <xsd:element name="CubeName" type="xsd:string"/>
                      </xsd:sequence>
                    </xsd:complexType>
                  </xsd:element>
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
            <xsd:element name="AxesInfo">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element maxOccurs="unbounded" name="AxisInfo">
                    <xsd:complexType>
                      <xsd:sequence>
                        <xsd:element maxOccurs="unbounded" minOccurs="0" name="HierarchyInfo">
                          <xsd:complexType>
                            <xsd:sequence>
                              <xsd:sequence maxOccurs="unbounded">
                                <xsd:element name="UName" type="PropType"/>
                                <xsd:element name="Caption" type="PropType"/>
                                <xsd:element name="LName" type="PropType"/>
                                <xsd:element name="LNum" type="PropType"/>
                                <xsd:element maxOccurs="unbounded" minOccurs="0" name="DisplayInfo" type="PropType"/>
                              </xsd:sequence>
                              <xsd:sequence>
                                <xsd:any maxOccurs="unbounded" minOccurs="0" processContents="lax"/>
                              </xsd:sequence>
                            </xsd:sequence>
                          </xsd:complexType>
                          <xsd:attribute name="name" type="xsd:string" use="required"/>
                        </xsd:element>
                      </xsd:sequence>
                      <xsd:attribute name="name" type="xsd:string"/>
                    </xsd:complexType>
                  </xsd:element>
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
            <xsd:element name="CellInfo">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:sequence maxOccurs="unbounded" minOccurs="0">
                    <xsd:choice>
                      <xsd:element name="Value" type="PropType"/>
                      <xsd:element name="FmtValue" type="PropType"/>
                      <xsd:element name="BackColor" type="PropType"/>
                      <xsd:element name="ForeColor" type="PropType"/>
                      <xsd:element name="FontName" type="PropType"/>
                      <xsd:element name="FontSize" type="PropType"/>
                      <xsd:element name="FontFlags" type="PropType"/>
                      <xsd:element name="FormatString" type="PropType"/>
                      <xsd:element name="NonEmptyBehavior" type="PropType"/>
                      <xsd:element name="SolveOrder" type="PropType"/>
                      <xsd:element name="Updateable" type="PropType"/>
                      <xsd:element name="Visible" type="PropType"/>
                      <xsd:element name="Expression" type="PropType"/>
                    </xsd:choice>
                  </xsd:sequence>
                  <xsd:sequence maxOccurs="unbounded" minOccurs="0">
                    <xsd:any maxOccurs="unbounded" processContents="lax"/>
                  </xsd:sequence>
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
        <xsd:complexType name="Axes">
          <xsd:sequence maxOccurs="unbounded">
            <xsd:element name="Axis">
              <xsd:complexType>
                <xsd:choice maxOccurs="unbounded" minOccurs="0">
                  <xsd:element name="CrossProduct" type="CrossProductType"/>
                  <xsd:element name="Tuples" type="TuplesType"/>
                  <xsd:element name="Members" type="MembersType"/>
                </xsd:choice>
                <xsd:attribute name="name" type="xsd:string"/>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
        <xsd:complexType name="CellData">
          <xsd:sequence>
            <xsd:element maxOccurs="unbounded" minOccurs="0" name="Cell">
              <xsd:complexType>
                <xsd:sequence maxOccurs="unbounded">
                  <xsd:choice>
                    <xsd:element name="Value"/>
                    <xsd:element name="FmtValue" type="xsd:string"/>
                    <xsd:element name="BackColor" type="xsd:unsignedInt"/>
                    <xsd:element name="ForeColor" type="xsd:unsignedInt"/>
                    <xsd:element name="FontName" type="xsd:string"/>
                    <xsd:element name="FontSize" type="xsd:unsignedShort"/>
                    <xsd:element name="FontFlags" type="xsd:unsignedInt"/>
                    <xsd:element name="FormatString" type="xsd:string"/>
                    <xsd:element name="NonEmptyBehavior" type="xsd:unsignedShort"/>
                    <xsd:element name="SolveOrder" type="xsd:unsignedInt"/>
                    <xsd:element name="Updateable" type="xsd:unsignedInt"/>
                    <xsd:element name="Visible" type="xsd:unsignedInt"/>
                    <xsd:element name="Expression" type="xsd:string"/>
                  </xsd:choice>
                </xsd:sequence>
                <xsd:attribute name="CellOrdinal" type="xsd:unsignedInt" use="required"/>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
        <xsd:element name="root">
          <xsd:complexType>
            <xsd:sequence maxOccurs="unbounded">
              <xsd:element name="OlapInfo" type="OlapInfo"/>
              <xsd:element name="Axes" type="Axes"/>
              <xsd:element name="CellData" type="CellData"/>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:element>
      </xsd:schema>
      <OlapInfo>
        <CubeInfo>
          <Cube>
            <CubeName>HR</CubeName>
          </Cube>
        </CubeInfo>
        <AxesInfo>
          <AxisInfo name="Axis0">
            <HierarchyInfo name="Measures">
              <UName name="[Measures].[MEMBER_UNIQUE_NAME]"/>
              <Caption name="[Measures].[MEMBER_CAPTION]"/>
              <LName name="[Measures].[LEVEL_UNIQUE_NAME]"/>
              <LNum name="[Measures].[LEVEL_NUMBER]"/>
              <DisplayInfo name="[Measures].[DISPLAY_INFO]"/>
            </HierarchyInfo>
          </AxisInfo>
          <AxisInfo name="Axis1">
            <HierarchyInfo name="Employees">
              <UName name="[Employees].[MEMBER_UNIQUE_NAME]"/>
              <Caption name="[Employees].[MEMBER_CAPTION]"/>
              <LName name="[Employees].[LEVEL_UNIQUE_NAME]"/>
              <LNum name="[Employees].[LEVEL_NUMBER]"/>
              <DisplayInfo name="[Employees].[DISPLAY_INFO]"/>
            </HierarchyInfo>
          </AxisInfo>
          <AxisInfo name="SlicerAxis">
            <HierarchyInfo name="Time">
              <UName name="[Time].[MEMBER_UNIQUE_NAME]"/>
              <Caption name="[Time].[MEMBER_CAPTION]"/>
              <LName name="[Time].[LEVEL_UNIQUE_NAME]"/>
              <LNum name="[Time].[LEVEL_NUMBER]"/>
              <DisplayInfo name="[Time].[DISPLAY_INFO]"/>
            </HierarchyInfo>
            <HierarchyInfo name="Store">
              <UName name="[Store].[MEMBER_UNIQUE_NAME]"/>
              <Caption name="[Store].[MEMBER_CAPTION]"/>
              <LName name="[Store].[LEVEL_UNIQUE_NAME]"/>
              <LNum name="[Store].[LEVEL_NUMBER]"/>
              <DisplayInfo name="[Store].[DISPLAY_INFO]"/>
            </HierarchyInfo>
            <HierarchyInfo name="Pay Type">
              <UName name="[Pay Type].[MEMBER_UNIQUE_NAME]"/>
              <Caption name="[Pay Type].[MEMBER_CAPTION]"/>
              <LName name="[Pay Type].[LEVEL_UNIQUE_NAME]"/>
              <LNum name="[Pay Type].[LEVEL_NUMBER]"/>
              <DisplayInfo name="[Pay Type].[DISPLAY_INFO]"/>
            </HierarchyInfo>
            <HierarchyInfo name="Store Type">
              <UName name="[Store Type].[MEMBER_UNIQUE_NAME]"/>
              <Caption name="[Store Type].[MEMBER_CAPTION]"/>
              <LName name="[Store Type].[LEVEL_UNIQUE_NAME]"/>
              <LNum name="[Store Type].[LEVEL_NUMBER]"/>
              <DisplayInfo name="[Store Type].[DISPLAY_INFO]"/>
            </HierarchyInfo>
            <HierarchyInfo name="Position">
              <UName name="[Position].[MEMBER_UNIQUE_NAME]"/>
              <Caption name="[Position].[MEMBER_CAPTION]"/>
              <LName name="[Position].[LEVEL_UNIQUE_NAME]"/>
              <LNum name="[Position].[LEVEL_NUMBER]"/>
              <DisplayInfo name="[Position].[DISPLAY_INFO]"/>
            </HierarchyInfo>
            <HierarchyInfo name="Department">
              <UName name="[Department].[MEMBER_UNIQUE_NAME]"/>
              <Caption name="[Department].[MEMBER_CAPTION]"/>
              <LName name="[Department].[LEVEL_UNIQUE_NAME]"/>
              <LNum name="[Department].[LEVEL_NUMBER]"/>
              <DisplayInfo name="[Department].[DISPLAY_INFO]"/>
            </HierarchyInfo>
          </AxisInfo>
        </AxesInfo>
        <CellInfo>
          <Value name="VALUE"/>
          <FmtValue name="FORMATTED_VALUE"/>
          <FormatString name="FORMAT_STRING"/>
        </CellInfo>
      </OlapInfo>
      <Axes>
        <Axis name="Axis0">
          <Tuples>
            <Tuple>
              <Member Hierarchy="Measures">
                <UName>[Measures].[Org Salary]</UName>
                <Caption>Org Salary</Caption>
                <LName>[Measures].[MeasuresLevel]</LName>
                <LNum>0</LNum>
                <DisplayInfo>0</DisplayInfo>
              </Member>
            </Tuple>
          </Tuples>
        </Axis>
        <Axis name="Axis1">
          <Tuples>
            <Tuple>
              <Member Hierarchy="Employees">
                <UName>[Employees].[All Employees]</UName>
                <Caption>All Employees</Caption>
                <LName>[Employees].[(All)]</LName>
                <LNum>0</LNum>
                <DisplayInfo>65537</DisplayInfo>
              </Member>
            </Tuple>
            <Tuple>
              <Member Hierarchy="Employees">
                <UName>[Employees].[All Employees].[Sheri Nowmer]</UName>
                <Caption>Sheri Nowmer</Caption>
                <LName>[Employees].[Employee Id]</LName>
                <LNum>1</LNum>
                <DisplayInfo>7</DisplayInfo>
              </Member>
            </Tuple>
          </Tuples>
        </Axis>
        <Axis name="SlicerAxis">
          <Tuples>
            <Tuple>
              <Member Hierarchy="Time">
                <UName>[Time].[1997]</UName>
                <Caption>1997</Caption>
                <LName>[Time].[Year]</LName>
                <LNum>0</LNum>
                <DisplayInfo>4</DisplayInfo>
              </Member>
              <Member Hierarchy="Store">
                <UName>[Store].[All Stores]</UName>
                <Caption>All Stores</Caption>
                <LName>[Store].[(All)]</LName>
                <LNum>0</LNum>
                <DisplayInfo>3</DisplayInfo>
              </Member>
              <Member Hierarchy="Pay Type">
                <UName>[Pay Type].[All Pay Types]</UName>
                <Caption>All Pay Types</Caption>
                <LName>[Pay Type].[(All)]</LName>
                <LNum>0</LNum>
                <DisplayInfo>2</DisplayInfo>
              </Member>
              <Member Hierarchy="Store Type">
                <UName>[Store Type].[All Store Types]</UName>
                <Caption>All Store Types</Caption>
                <LName>[Store Type].[(All)]</LName>
                <LNum>0</LNum>
                <DisplayInfo>6</DisplayInfo>
              </Member>
              <Member Hierarchy="Position">
                <UName>[Position].[All Position]</UName>
                <Caption>All Position</Caption>
                <LName>[Position].[(All)]</LName>
                <LNum>0</LNum>
                <DisplayInfo>5</DisplayInfo>
              </Member>
              <Member Hierarchy="Department">
                <UName>[Department].[All Departments]</UName>
                <Caption>All Departments</Caption>
                <LName>[Department].[(All)]</LName>
                <LNum>0</LNum>
                <DisplayInfo>12</DisplayInfo>
              </Member>
            </Tuple>
          </Tuples>
        </Axis>
      </Axes>
      <CellData>
        <Cell CellOrdinal="0">
          <Value xsi:type="xsd:double">39431.6712</Value>
          <FmtValue>$39,431.67</FmtValue>
          <FormatString>Currency</FormatString>
        </Cell>
        <Cell CellOrdinal="1">
          <Value xsi:type="xsd:double">39431.6712</Value>
          <FmtValue>$39,431.67</FmtValue>
          <FormatString>Currency</FormatString>
        </Cell>
      </CellData>
    </root>
  </xmla:return>
</xmla:ExecuteResponse>
</xmlacycle>