Advertisement
Atheuz

Untitled

Sep 29th, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.75 KB | None | 0 0
  1. <Schema name="FKlubDW">
  2.     <Cube name="Sales">
  3.         <Table name="sales"/>
  4.         <Dimension name="Product" foreignKey="productid">
  5.             <Hierarchy hasAll="true" allMemberName="All Products" primaryKey="productid">
  6.                 <Table name="product"/>
  7.                 <Level name="Name" column="name" uniqueMembers="true"/>
  8.             </Hierarchy>
  9.         </Dimension>
  10.         <Dimension name="Time" foreignKey="timeid">
  11.             <Hierarchy hasAll="false" primaryKey="timeid">
  12.                 <Table name="time"/>
  13.                 <Level name="Hour" column="hour" type="Numeric" uniqueMembers="true"/>
  14.                 <Level name="Minute" column="minute" type="Numeric" uniqueMembers="true"/>
  15.             </Hierarchy>
  16.         </Dimension>
  17.         <Dimension name="Date" foreignKey="dateid">
  18.             <Hierarchy hasAll="false" primaryKey="dateid">
  19.                 <Table name="date"/>
  20.                 <Level name="Year" column="year" type="Numeric" uniqueMembers="true"/>
  21.                 <Level name="Month" column="month" type="Numeric" uniqueMembers="true"/>
  22.                 <Level name="Day" column="day" type="Numeric" uniqueMembers="true"/>
  23.                 <Level name="Special" column="special" uniqueMembers="false"/>
  24.             </Hierarchy>
  25.         </Dimension>
  26.         <Dimension name="Member" foreignKey="memberid">
  27.             <Hierarchy hasAll="false" primaryKey="memberid">
  28.                 <Table name="member"/>
  29.                 <Level name="Balance" column="balance" uniqueMembers="true"/>
  30.                 <Level name="Year" column="year" uniqueMembers="false"/>
  31.             </Hierarchy>
  32.         </Dimension>
  33.         <Measure name="Sale Price" column="sales" aggregator="sum" formatString="#,###"/>
  34.     </Cube>
  35. </Schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement