Advanced-excel-functions-advanced-excel-cube-cubekpimember-function
提供:Dev Guides
キューブ-CUBEKPIMEMBER関数
説明
この関数は、主要業績評価指標(KPI)プロパティを返し、セルにKPI名を表示します。
構文
CUBEKPIMEMBER (connection, kpi_name, kpi_property, [caption])
引数
Argument | Description | Required/Optional |
---|---|---|
connection | Name of the connection to the cube - A text string | Required |
kpi_name | Name of the KPI in the cube - A text string | Required |
kpi_property | The KPI component returned and can be one of the given Enumerated Constants as given in the Table below | Required |
caption | An alternative text string that is displayed in the cell instead of kpi_name and kpi_property | Optional |
KPIコンポーネントが返されました-
Integer | Enumerated constant | Description |
---|---|---|
1 | KPIValue | The actual value |
2 | KPIGoal | A target value |
3 | KPIStatus | The state of the KPI at a specific moment in time |
4 | KPITrend | A measure of the value over time |
5 | KPIWeight | A relative importance assigned to the KPI |
6 | KPICurrentTimeMember | A temporal context for the KPI |
kpi_propertyにKPIValueを指定すると、セルにはkpi_nameのみが表示されます。
ノート
KPIは、組織のパフォーマンスを監視するために使用される、毎月の粗利益や四半期ごとの従業員の離職などの定量化可能な測定です。
CUBEKPIMEMBER関数は、ワークブックがMicrosoft SQL Server 2005 Analysis Services以降のデータソースに接続されている場合にのみサポートされます。
- CUBEKPIMEMBER関数が評価されると、すべてのデータが取得される前に、セルに「#GETTING_DATA…」メッセージが一時的に表示されます。
- 計算でKPIを使用するには、CUBEVALUE関数のmember_expression引数としてCUBEKPIMEMBER関数を指定します。
- 接続名がワークブックに保存されている有効なワークブック接続ではない場合、CUBEKPIMEMBERは#NAME? エラー値。 オンライン分析処理(OLAP)サーバーが実行されていない、利用できない、またはエラーメッセージを返す場合、CUBEKPIMEMBERは#NAME?を返します。 エラー値。
- kpi_nameまたはkpi_propertyが無効な場合、CUBEKPIMEMBERは#N/Aエラー値を返します。
- 接続を共有するときにピボットテーブルで計算メンバーや名前付きセットなどのセッションベースのオブジェクトを参照し、そのピボットテーブルを削除するか、ピボットテーブルを数式に変換すると、CUBEKPIMEMBERは#N/Aエラー値を返す場合があります。 (オプション*タブの*ツール*グループで、 OLAPツール*をクリックしてから、*式に変換*をクリックします)。
適用範囲
Excel 2007、Excel 2010、Excel 2013、Excel 2016