Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
按组PowerBI获取聚合的聚合_Powerbi_Aggregate_Dax - Fatal编程技术网

按组PowerBI获取聚合的聚合

按组PowerBI获取聚合的聚合,powerbi,aggregate,dax,Powerbi,Aggregate,Dax,我有一个按供应商月份/名称/地点/部门汇总的数据集,显示每组的平均值和计数,如下所示: 月 名称 位置 分开 意思是 计数 12月 全球 GC 销售额 4. 2. 12月 本地 GC 销售额 5.44 27 12月 全球 GC 采购 0 2. 12月 全球 数控 销售额 3. 1. 看起来你需要一个加权平均值 grp_average = DIVIDE ( SUMX( 'tbl', 'tbl'[mean] * 'tbl[count] ), SUM( 'tbl'[count] ) )

我有一个按供应商月份/名称/地点/部门汇总的数据集,显示每组的平均值和计数,如下所示:

月 名称 位置 分开 意思是 计数 12月 全球 GC 销售额 4. 2. 12月 本地 GC 销售额 5.44 27 12月 全球 GC 采购 0 2. 12月 全球 数控 销售额 3. 1.
看起来你需要一个加权平均值

grp_average = DIVIDE ( SUMX( 'tbl', 'tbl'[mean] * 'tbl[count] ), SUM( 'tbl'[count] ) )