<Schema name="SteelWheels">
	<Cube name="SteelWheelsSales" cache="true" enabled="true">
		<Table name="orderfact">
		</Table>
		<Dimension foreignKey="CUSTOMERNUMBER" name="Markets">
			<Hierarchy hasAll="true" allMemberName="All Markets" primaryKey="CUSTOMERNUMBER" primaryKeyTable="">
				<Table name="customer_w_ter">
				</Table>
				<Level name="Territory" column="TERRITORY" type="String" uniqueMembers="true" levelType="Regular" hideMemberIf="Never">
				</Level>
				<Level name="Country" column="COUNTRY" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
				</Level>
				<Level name="State Province" column="STATE" type="String" uniqueMembers="true" levelType="Regular" hideMemberIf="Never">
				</Level>
				<Level name="City" column="CITY" type="String" uniqueMembers="true" levelType="Regular" hideMemberIf="Never">
				</Level>
			</Hierarchy>
		</Dimension>
		<Dimension foreignKey="CUSTOMERNUMBER" name="Customers">
			<Hierarchy hasAll="true" allMemberName="All Customers" primaryKey="CUSTOMERNUMBER">
				<Table name="customer_w_ter">
				</Table>
				<Level name="Customer" column="CUSTOMERNAME" type="String" uniqueMembers="true" levelType="Regular" hideMemberIf="Never">
				</Level>
			</Hierarchy>
		</Dimension>
		<Dimension foreignKey="PRODUCTCODE" name="Product">
			<Hierarchy name="" hasAll="true" allMemberName="All Products" primaryKey="PRODUCTCODE" primaryKeyTable="products" caption="">
				<Table name="products">
				</Table>
				<Level name="Line" table="products" column="PRODUCTLINE" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
				</Level>
				<Level name="Vendor" table="products" column="PRODUCTVENDOR" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
				</Level>
				<Level name="Product" table="products" column="PRODUCTNAME" type="String" uniqueMembers="true" levelType="Regular" hideMemberIf="Never">
				</Level>
			</Hierarchy>
		</Dimension>
		<Dimension type="TimeDimension" foreignKey="TIME_ID" name="Time">
			<Hierarchy hasAll="true" allMemberName="All Years" primaryKey="TIME_ID">
				<Table name="time">
				</Table>
				<Level name="Years" column="YEAR_ID" type="Integer" uniqueMembers="true" levelType="TimeYears" hideMemberIf="Never">
				</Level>
				<Level name="Quarters" column="QTR_NAME" ordinalColumn="QTR_ID" type="String" uniqueMembers="false" levelType="TimeQuarters" hideMemberIf="Never">
				</Level>
				<Level name="Months" column="MONTH_NAME" ordinalColumn="MONTH_ID" type="String" uniqueMembers="false" levelType="TimeMonths" hideMemberIf="Never">
				</Level>
			</Hierarchy>
		</Dimension>
		<Dimension foreignKey="STATUS" name="Order Status">
			<Hierarchy hasAll="true" allMemberName="All Status Types" primaryKey="STATUS">
				<Level name="Type" column="STATUS" type="String" uniqueMembers="true" levelType="Regular" hideMemberIf="Never">
				</Level>
			</Hierarchy>
		</Dimension>
		<Measure name="Quantity" column="QUANTITYORDERED" formatString="#,###" aggregator="sum">
		</Measure>
		<Measure name="Sales" column="TOTALPRICE" formatString="#,###" aggregator="sum">
		</Measure>
	</Cube>
</Schema>
