Power BI Connector for Microsoft SharePoint

Build 24.0.9062

集計関数

COUNT

クエリ条件に一致する行の数を返します。

SELECT COUNT(*) FROM Calendar WHERE Location = 'Chapel Hill'

COUNT

クエリ条件に一致する行の数を返します。

SELECT COUNT(AnnualRevenue) FROM Calendar WHERE Location = 'Chapel Hill'

COUNT(DISTINCT)

クエリ条件に一致する、null 以外の個別のフィールド値の数を返します。

SELECT COUNT(DISTINCT Id) AS DistinctValues FROM Calendar WHERE Location <> 'Chapel Hill'

AVG

カラムの値の平均を返します。

SELECT Location, AVG(AnnualRevenue) FROM Calendar WHERE Location <> 'Chapel Hill'  GROUP BY Location

MIN

カラムの値の最小値を返します。

SELECT MIN(AnnualRevenue), Location FROM Calendar WHERE Location <> 'Chapel Hill' GROUP BY Location

MAX

カラムの値の最大値を返します。

SELECT Location, MAX(AnnualRevenue) FROM Calendar WHERE Location <> 'Chapel Hill' GROUP BY Location

SUM

カラムの値の合計を返します。

SELECT SUM(AnnualRevenue) FROM Calendar WHERE Location = 'Chapel Hill'

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9062