

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 集計関数
<a name="calculated-field-aggregations"></a>

集計関数は分析およびビジュアル作成時にのみ使用できます。これらの各関数は、選択されたディメンション別にグループ化された値を返します。集計ごとに、条件付きの集計もあります。これらは条件に応じて同じタイプの集計を実行します。

計算フィールド式に集計が含まれていると、それはカスタム集計になります。データが正しく表示されるように、Amazon Quick は次のルールを適用します。
+ カスタム集計には、入れ子になった集計関数を含めることはできません。例えば、この式 `sum(avg(x)/avg(y))` は機能しません。ただし、集計関数の内部または外部で、非集計関数を入れ子にすることはできます。たとえば、`ceil(avg(x))` は可能です。`avg(ceil(x))` も可能です。
+ カスタム集計には、集計フィールドと非集計フィールドの両方をいずれの組み合わせでも含めることはできません。例えば、この式 `Sum(sales)+quantity` は機能しません。
+ フィルタグループには、集計フィールドと非集計フィールドの両方を含めることはできません。
+ カスタム集計はディメンションに変換できません。また、ディメンションとしてフィールドウェルにドロップすることもできません。
+ ピボットテーブルでは、カスタム集計をテーブルの計算に追加することはできません。
+ カスタム集計を含む散布図では、フィールドウェルの [**Group/Color (グループ/色)**] の下に 1 つ以上のディメンションが必要です。

サポートされている関数と演算子の詳細については、[「Amazon Quick の計算フィールド関数と演算子リファレンス](https://docs.aws.amazon.com/quicksight/latest/user/calculated-field-reference.html)」を参照してください。

Quick の計算フィールドの集計関数は次のとおりです。

**Topics**
+ [avg](avg-function.md)
+ [avgIf](avgIf-function.md)
+ [count](count-function.md)
+ [countIf](countIf-function.md)
+ [distinct\$1count](distinct_count-function.md)
+ [distinct\$1countIf](distinct_countIf-function.md)
+ [max](max-function.md)
+ [maxIf](maxIf-function.md)
+ [median](median-function.md)
+ [medianIf](medianIf-function.md)
+ [min](min-function.md)
+ [minIf](minIf-function.md)
+ [percentile](percentile-function.md)
+ [percentileCont](percentileCont-function.md)
+ [percentileDisc (パーセンタイル)](percentileDisc-function.md)
+ [periodToDateAvg](periodToDateAvg-function.md)
+ [periodToDateCount](periodToDateCount-function.md)
+ [periodToDateMax](periodToDateMax-function.md)
+ [periodToDateMedian](periodToDateMedian-function.md)
+ [periodToDateMin](periodToDateMin-function.md)
+ [periodToDatePercentile](periodToDatePercentile-function.md)
+ [periodToDatePercentileCont](periodToDatePercentileCont-function.md)
+ [periodToDateStDev](periodToDateStDev-function.md)
+ [periodToDateStDevP](periodToDateStDevP-function.md)
+ [periodToDateSum](periodToDateSum-function.md)
+ [periodToDateVar](periodToDateVar-function.md)
+ [periodToDateVarP](periodToDateVarP-function.md)
+ [stdev](stdev-function.md)
+ [stdevp](stdevp-function.md)
+ [stdevIf](stdevIf-function.md)
+ [stdevpIf](stdevpIf-function.md)
+ [sum](sum-function.md)
+ [sumIf](sumIf-function.md)
+ [var](var-function.md)
+ [varIf](varIf-function.md)
+ [varp](varp-function.md)
+ [varpIf](varpIf-function.md)