<?xml version="1.0" encoding="UTF-8"?>
<Schema>

<Parameter name="Company" type="Table"/>
<Parameter name="KpiType" type="Table"/>
<Parameter name="Fact" type="Table"/>

<Dimension name="Company" caption="˾" table="Company" primaryKey="fID">
	<Hierarchy aggregate="false">
		<Level name="Company" column="FID" childColumn="FID" parentColumn="FParentID" orderBy="flongnumber" orderMethod="asc">
			<Property name="name" column="fid"/>
			<Property name="caption" column="fname"/>
		</Level>
	</Hierarchy>
</Dimension>

<Dimension name="KpiType" caption="KPI" table="KpiType" primaryKey="fid">
	<Hierarchy>
		<Level name="KpiType" column="fid" orderBy="fnumber" orderMethod="asc">
			<Property name="name" column="fname"/>
		</Level>
	</Hierarchy>
</Dimension>

<Cube name="Fact" caption="KPI" table="Fact">
	<DimensionUsage name="Company" foreignKey="FCompanyID"/>
	<DimensionUsage name="KpiType" foreignKey="FBizID"/>
	
	<Measure name="FCurrentValue" caption=" " column="FCurrentValue" formatString="mdx:'#,##0.00|color:'+FColor.value" />
	
	<Measure name="FColor" column="FColor" formatString=""/>
	
</Cube>
</Schema>