11---
22title : FoodMart
3- group :
3+ group : Full Examples
44kind : COMPLEX
5- number : 3
5+ number : 99.1.4
66---
77# FoodMart Database
88
@@ -17,7 +17,7 @@ It includes measures for unit sales, store sales, and store cost, along with dim
1717
1818
1919``` xml
20- <roma : PhysicalCube id =" _cube_sales" name =" Sales" query =" /10 " />
20+ <roma : PhysicalCube id =" _cube_sales" name =" Sales" query =" /11 " />
2121
2222```
2323* <small >Note: This is only a symbolic example. For the exact definition, see the [ Definition] ( #definition ) section.</small >*
@@ -198,17 +198,17 @@ This files represent the complete definition of the catalog.
198198 <columns xsi : type =" roma:PhysicalColumn" id =" _column_productClass_productFamily" name =" product_family" />
199199 </tables >
200200 </roma : DatabaseSchema >
201- <roma : TableQuery table =" _table_salary" />
201+ <roma : TableQuery table =" _table_customer" />
202+ <roma : TableQuery table =" _table_position" />
203+ <roma : TableQuery table =" _table_timeByDay" />
204+ <roma : TableQuery table =" _table_product" />
202205 <roma : TableQuery table =" _table_employee" />
203- <roma : TableQuery table =" _table_department" />
204206 <roma : TableQuery table =" _table_inventoryFact1997" />
205- <roma : TableQuery table =" _table_product" />
206- <roma : TableQuery table =" _table_timeByDay" />
207- <roma : TableQuery table =" _table_position" />
208- <roma : TableQuery table =" _table_store" />
209- <roma : TableQuery table =" _table_salesFact1997" />
210- <roma : TableQuery table =" _table_customer" />
207+ <roma : TableQuery table =" _table_department" />
211208 <roma : TableQuery table =" _table_warehouse" />
209+ <roma : TableQuery table =" _table_salary" />
210+ <roma : TableQuery table =" _table_salesFact1997" />
211+ <roma : TableQuery table =" _table_store" />
212212 <roma : Level id =" _level_customer_city" name =" City" column =" _column_customer_city" />
213213 <roma : Level id =" _level_customer_country" name =" Country" column =" _column_customer_country" />
214214 <roma : Level id =" _level_customer_education" name =" Education Level" column =" _column_customer_education" />
@@ -239,17 +239,17 @@ This files represent the complete definition of the catalog.
239239 <roma : Level id =" _level_warehouse_country" name =" Country" column =" _column_warehouse_warehouseCountry" />
240240 <roma : Level id =" _level_warehouse_name" name =" Warehouse Name" column =" _column_warehouse_warehouseName" />
241241 <roma : Level id =" _level_warehouse_state" name =" State Province" column =" _column_warehouse_warehouseStateProvince" />
242- <roma : ExplicitHierarchy id =" _hierarchy_customer_gender" name =" Gender" allMemberName =" All Gender" query =" /11 " levels =" _level_customer_gender" />
243- <roma : ExplicitHierarchy id =" _hierarchy_customer_geography" name =" Geography" allMemberName =" All Customers" query =" /11 " levels =" _level_customer_country _level_customer_stateProvince _level_customer_city _level_customer_name" />
244- <roma : ExplicitHierarchy id =" _hierarchy_customers_education" name =" Customers Education" allMemberName =" All Education Levels" query =" /11 " levels =" _level_customer_education" />
245- <roma : ExplicitHierarchy id =" _hierarchy_customers_marital" name =" Customers Marital Status" allMemberName =" All Marital Statuses" query =" /11 " levels =" _level_customer_marital_status" />
246- <roma : ExplicitHierarchy id =" _hierarchy_department" name =" Department" allMemberName =" All Departments" query =" /4 " levels =" _level_department_description" />
247- <roma : ExplicitHierarchy id =" _hierarchy_employee" name =" Employee" allMemberName =" All Employees" query =" /3 " levels =" _level_employee_management_role _level_employee_position _level_employee_department _level_employee_full_name" />
248- <roma : ExplicitHierarchy id =" _hierarchy_position" name =" Position" allMemberName =" All Positions" query =" /8 " levels =" _level_position_title" />
249- <roma : ExplicitHierarchy id =" _hierarchy_product" name =" Product Hierarchy" allMemberName =" All Products" query =" /6 " levels =" _level_product_family _level_product_department _level_product_category _level_product_subcategory _level_product_brand _level_product_name" />
250- <roma : ExplicitHierarchy id =" _hierarchy_store" name =" Store Hierarchy" allMemberName =" All Stores" query =" /9 " levels =" _level_store_country _level_store_state _level_store_city _level_store_name" />
251- <roma : ExplicitHierarchy id =" _hierarchy_time" name =" Time Hierarchy" allMemberName =" All Years" query =" /7 " levels =" _level_time_year _level_time_quarter _level_time_month" />
252- <roma : ExplicitHierarchy id =" _hierarchy_warehouse" name =" Warehouse" allMemberName =" All Warehouses" query =" /12 " levels =" _level_warehouse_country _level_warehouse_state _level_warehouse_city _level_warehouse_name" />
242+ <roma : ExplicitHierarchy id =" _hierarchy_customer_gender" name =" Gender" allMemberName =" All Gender" query =" /2 " levels =" _level_customer_gender" />
243+ <roma : ExplicitHierarchy id =" _hierarchy_customer_geography" name =" Geography" allMemberName =" All Customers" query =" /2 " levels =" _level_customer_country _level_customer_stateProvince _level_customer_city _level_customer_name" />
244+ <roma : ExplicitHierarchy id =" _hierarchy_customers_education" name =" Customers Education" allMemberName =" All Education Levels" query =" /2 " levels =" _level_customer_education" />
245+ <roma : ExplicitHierarchy id =" _hierarchy_customers_marital" name =" Customers Marital Status" allMemberName =" All Marital Statuses" query =" /2 " levels =" _level_customer_marital_status" />
246+ <roma : ExplicitHierarchy id =" _hierarchy_department" name =" Department" allMemberName =" All Departments" query =" /8 " levels =" _level_department_description" />
247+ <roma : ExplicitHierarchy id =" _hierarchy_employee" name =" Employee" allMemberName =" All Employees" query =" /6 " levels =" _level_employee_management_role _level_employee_position _level_employee_department _level_employee_full_name" />
248+ <roma : ExplicitHierarchy id =" _hierarchy_position" name =" Position" allMemberName =" All Positions" query =" /3 " levels =" _level_position_title" />
249+ <roma : ExplicitHierarchy id =" _hierarchy_product" name =" Product Hierarchy" allMemberName =" All Products" query =" /5 " levels =" _level_product_family _level_product_department _level_product_category _level_product_subcategory _level_product_brand _level_product_name" />
250+ <roma : ExplicitHierarchy id =" _hierarchy_store" name =" Store Hierarchy" allMemberName =" All Stores" query =" /12 " levels =" _level_store_country _level_store_state _level_store_city _level_store_name" />
251+ <roma : ExplicitHierarchy id =" _hierarchy_time" name =" Time Hierarchy" allMemberName =" All Years" query =" /4 " levels =" _level_time_year _level_time_quarter _level_time_month" />
252+ <roma : ExplicitHierarchy id =" _hierarchy_warehouse" name =" Warehouse" allMemberName =" All Warehouses" query =" /9 " levels =" _level_warehouse_country _level_warehouse_state _level_warehouse_city _level_warehouse_name" />
253253 <roma : StandardDimension id =" _dimension_customers" name =" Customers" hierarchies =" _hierarchy_customer_geography _hierarchy_customer_gender _hierarchy_customers_education _hierarchy_customers_marital" />
254254 <roma : StandardDimension id =" _dimension_department" name =" Department" hierarchies =" _hierarchy_department" />
255255 <roma : StandardDimension id =" _dimension_employee" name =" Employee" hierarchies =" _hierarchy_employee" />
@@ -258,7 +258,7 @@ This files represent the complete definition of the catalog.
258258 <roma : StandardDimension id =" _dimension_store" name =" Store" hierarchies =" _hierarchy_store" />
259259 <roma : StandardDimension id =" _dimension_time" name =" Time" hierarchies =" _hierarchy_time" />
260260 <roma : StandardDimension id =" _dimension_warehouse" name =" Warehouse" hierarchies =" _hierarchy_warehouse" />
261- <roma : PhysicalCube id =" _cube_hr" name =" HR" query =" /2 " >
261+ <roma : PhysicalCube id =" _cube_hr" name =" HR" query =" /10 " >
262262 <calculatedMembers id =" _calculated_member_employee_salary" name =" Employee Salary" formatString =" $#,##0.00" formula =" ([Employees].currentmember.datamember, [Measures].[Org Salary])" />
263263 <calculatedMembers id =" _calculated_member_avg_salary" name =" Avg Salary" formatString =" $#,##0.00" formula =" [Measures].[Org Salary]/[Measures].[Number of Employees]" />
264264 <dimensionConnectors foreignKey =" _column_salary_payDate" dimension =" _dimension_time" id =" _connector_hr_time" />
@@ -272,7 +272,7 @@ This files represent the complete definition of the catalog.
272272 <measures xsi : type =" roma:CountMeasure" id =" _measure_numberOfEmployees" name =" Number of Employees" formatString =" #,###" />
273273 </measureGroups >
274274 </roma : PhysicalCube >
275- <roma : PhysicalCube id =" _cube_sales" name =" Sales" query =" /10 " >
275+ <roma : PhysicalCube id =" _cube_sales" name =" Sales" query =" /11 " >
276276 <calculatedMembers id =" _calculated_member_profit" name =" Profit" formatString =" $#,##0.00" formula =" [Measures].[Store Sales] - [Measures].[Store Cost]" />
277277 <calculatedMembers id =" _calculated_member_profit_last_period" name =" Profit last Period" formatString =" $#,##0.00" formula =" COALESCEEMPTY((Measures.[Profit], [Time].[Time].PREVMEMBER), Measures.[Profit])" />
278278 <calculatedMembers id =" _calculated_member_profit_growth" name =" Profit Growth" formatString =" 0.0%" formula =" ([Measures].[Profit] - [Measures].[Profit last Period]) / [Measures].[Profit last Period]" />
@@ -287,15 +287,15 @@ This files represent the complete definition of the catalog.
287287 <measures xsi : type =" roma:CountMeasure" id =" _measure_salesCount" name =" Sales Count" formatString =" #,###" />
288288 </measureGroups >
289289 </roma : PhysicalCube >
290- <roma : PhysicalCube id =" _cube_store" name =" Store" query =" /9 " >
290+ <roma : PhysicalCube id =" _cube_store" name =" Store" query =" /12 " >
291291 <dimensionConnectors dimension =" _dimension_store" id =" _connector_store_store" />
292292 <dimensionConnectors dimension =" _dimension_store" id =" _connector_store_has_coffee_bar" />
293293 <measureGroups >
294294 <measures xsi : type =" roma:SumMeasure" id =" _measure_storeSqft" name =" Store Sqft" formatString =" #,###" column =" _column_store_storeSqft" />
295295 <measures xsi : type =" roma:SumMeasure" id =" _measure_grocerySqft" name =" Grocery Sqft" formatString =" #,###" column =" _column_store_grocerySqft" />
296296 </measureGroups >
297297 </roma : PhysicalCube >
298- <roma : PhysicalCube id =" _cube_warehouse" name =" Warehouse" query =" /5 " >
298+ <roma : PhysicalCube id =" _cube_warehouse" name =" Warehouse" query =" /7 " >
299299 <calculatedMembers id =" _calculated_member_average_warehouse_sale" name =" Average Warehouse Sale" formatString =" $#,##0.00" formula =" [Measures].[Warehouse Sales] / [Measures].[Warehouse Cost]" />
300300 <dimensionConnectors foreignKey =" _column_inventoryFact_timeId" dimension =" _dimension_time" id =" _connector_warehouse_time" />
301301 <dimensionConnectors foreignKey =" _column_inventoryFact_storeInvoice" dimension =" _dimension_store" id =" _connector_warehouse_store" />
0 commit comments