共用方式為


KpiGoal 元素 (CSDLBI)

重要: 這份檔已封存。 如需最新資訊,請參閱 Open 規格 [CSDLBI]:概念結構定義檔案格式與商業智慧批註

KpiGoal 元素會提供資料行的參考,該資料行用來定義關鍵效能指標 (KPI) 的目標。

在 CSDLBI 中,Kpi 是以量值為基礎,而量值元素則包含 ((如果有任何) )的公式,而其他與 KPI 相關聯的中繼資料則定義為 Kpi 元素 (CSDLBI) 的一部分。 Kpigoal 元素是 Kpi 元素的子類型。

元素和屬性

下表列出定義 KpiGoal 元素的屬性。

名稱 必要 描述
PropertyRef 包含 KPI 目標值之資料行的參考。

Kpigoal 元素必須只包含單獨一個 PropertyRef 元素。

請參閱 PropertyRef 元素 (CSDLBI)

表格式範例

下列 CSDLBI 1.1 版中的範例顯示 Adventureworks 範本模型中的 KPI。

  
<Property Name="InternetCurrentSalesPerformance" Type="Double">  
  <bi:Measure>  
    <bi:Kpi StatusGraphic="Three Stars Colored">  
      <bi:KpiGoal>  
        <bi:PropertyRef Name="v_InternetCurrSalesPerf_Goal" />  
      </bi:KpiGoal>  
      <bi:KpiStatus>  
        <bi:PropertyRef Name="v_InternetCurrSalesPerf_Status" />  
      </bi:KpiStatus>  
    </bi:Kpi>  
  </bi:Measure>  
</Property>  
  

多維度範例

下列 CSDLBI 1.1 版中的範例會顯示來自 Contoso Operations Cube 的 KPI。

<bi:Measure   
       Caption="Sum of SalesAmount"   
       ReferenceName="Sum of SalesAmount"   
       FormatString="\$#,0.00;(\$#,0.00);\$#,0.00">  
    <bi:Kpi   
       StatusGraphic="Three Circles Colored">  
      <bi:KpiGoal>  
         <bi:PropertyRef   
          Name="v_Sum_of_SalesAmount_Goal" />  
       </bi:KpiGoal>  
       <bi:KpiStatus>  
          <bi:PropertyRef   
          Name="v_Sum_of_SalesAmount_Status" />  
        </bi:KpiStatus>  
       </bi:Kpi>  
</bi:Measure>