# 配列ファンクション

配列関数は、配列に格納された複数の値を対象として、データの処理、変換、または分析を行い、結果を返します。

Qlik Open Lakehouse では次の関数を使用できます。

| 関数 | 説明 |
| --- | --- |
| [ARRAY_DISTINCT](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/array_distinct.htm) | 配列内のすべての重複しない要素を返します。 |
| [ARRAY_JOIN](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/array_join.htm) | この関数は、区切り文字を使用して、指定された配列の要素を文字列に連結します。 |
| [ARRAY_MAX](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/array_max.htm) | 配列内の最大値を返します。 |
| [ARRAY_MIN](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/array_min.htm) | 配列内の最小値を返します。 |
| [ARRAY_SORT](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/array_sort.htm) | 配列内の値を昇順で返します |
| [ARRAY_SORT_DESC](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/array_sort_desc.htm) | 配列内の値を降順で返します |
| [ARRAY_SUM](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/array_sum.htm) | この関数は、入力に含まれる null 以外のすべての要素の合計を計算します。null 以外の要素が存在しない場合、0 を返します。動作は集計関数 SUM と似ていますが、配列に対して処理を行います。 |
| [COUNT_VALUES](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/count_values.htm) | 指定された配列内の null 以外の項目の数を返します。 |
| [COUNT_VALUES_IF](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/count_values_if.htm) | 指定された配列内の「true」の値の数を返します。これは、条件演算子と組み合わせて使用することで、条件を満たす配列要素の数を数えることができます。たとえば、「COUNT\_VALUES\_IF(my\_values[] &gt; 3)」は、3より大きい要素の数を返します。 |
| [ELEMENT_AT](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/element_at.htm) | この関数は、指定されたインデックスにある配列の要素を返します。index &gt;= 0 の場合、この関数は SQL 標準の添付演算子 ([]) と同じ機能を提供します。index &lt; 0 の場合、「ELEMENT\_AT」は、末尾から先頭に向かって要素にアクセスします。 |
| [FIRST_ELEMENT](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/first_element.htm) | 配列の最初の要素を返します。 |
| [LAST_ELEMENT](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/last_element.htm) | 配列の最後の要素を返します。 |
| [VALUE_INDEX_IN_ARRAY](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/value_index_in_array.htm) | サブ配列内の null 以外の各値に対して、1 から始まる位置インデックスを計算し、新しいサブ配列ごとにインデックスをリセットします。 |
| [VALUE_INDEX_IN_ROW](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/array/value_index_in_row.htm) | 配列内の各値に対して連続した1ベースの位置インデックスを計算し、行全体を単一のコンテキストとして扱います。行内の配列全体にわたって null 以外の各要素に一意のインデックスを割り当てます。 |