---
schema_version: "1"
id: 48fa44e194812b38f78a2d1f98b9cefcf627d288b3c5a9c727e91ce7a97a3298
title: 簡単な計算フィールドの作成
collection: tableau
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/tableau/current/ja-jp/public/desktop/calculations_calculatedfields_formulas.md
canonical_url: https://help.tableau.com/current/public/desktop/ja-jp/calculations_calculatedfields_formulas.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 6174e355a6a5acb55e7ba7b9490847e6c7c492ba2488200d6803316ec16fa11f
description: Create a simple calculated field, such as Profit Ratio, using a formula from existing fields.
---
[メイン コンテンツに進む](#main-content)

# 簡単な計算フィールドの作成

データ ソースに、分析に必要なフィールド (または列) が含まれていないことがあります。たとえば、データ ソースに "Sales (売上)" と "Profit (収益)" を示す各値のフィールドはありますが "Profit Ratio (収益率)" 値のフィールドがありません。この場合は、"Sales (売上)" および "Profit (収益)" フィールドのデータを使用して "Profit Ratio (収益率)" の計算フィールドを作成できます。

このトピックでは、例を使用して簡単な計算フィールドを作成する方法を示します。

## ステップ 1: 計算フィールドの作成

1. Tableau のワークシートで \[分析\] > \[計算フィールドの作成\] を選択します。
2. 計算エディターが開いたら、計算フィールドに名前を付けます。この例では、計算フィールドに**「利益率」**という名前を付けています。

## ステップ 2: 式の入力

1. 計算エディターで、次の式を入力します。
    
    SUM(\[Profit\])/SUM(\[Sales\])
    
    式では、関数、フィールド、演算子を組み合わせて使用します。Tableau での式の作成の詳細については、[Tableau で計算を記述する](https://help.tableau.com/current/public/desktop/ja-jp/functions_operators.htm)および[Tableau で使用する関数](https://help.tableau.com/current/public/desktop/ja-jp/functions.htm)を参照してください。
2. 終了したら、**\[OK\]** をクリックします。新しい計算フィールドが \[データ\] ペインに追加され、計算フィールドであることを示す = がデータ タイプ アイコンの前に表示されます。

これで、ビューで計算フィールドを使用する準備が整いました。

## 作業を確認します。アクション内に簡単な計算フィールドを作成する方法について確認してください。

## 関連項目

[Tableau での計算の開始](https://help.tableau.com/current/public/desktop/ja-jp/calculations_calculatedfields_create.htm)

[Tableau で計算を記述する](https://help.tableau.com/current/public/desktop/ja-jp/functions_operators.htm)

[Tableau で使用する関数](https://help.tableau.com/current/public/desktop/ja-jp/functions.htm)

[Tableau での詳細レベル表現の作成](https://help.tableau.com/current/public/desktop/ja-jp/calculations_calculatedfields_lod.htm)

[表計算での値の変換](https://help.tableau.com/current/public/desktop/ja-jp/calculations_tablecalculations.htm)