简体   繁体   English

Power BI 计算表未由数据切片器过滤

[英]Power BI calculated table not filtering by a data slicer

I have created a table based on a group by and after placing a data slicer into the report the columns do not update at all.我创建了一个基于 group by 的表,并且在将数据切片器放入报告中之后,列根本不会更新。 The data is connected via a separate table where a controller is assigned a truck, that truck has data in a turnaround dataset and the two matrices you see are calculated off a group by on that turnaround table.数据通过一个单独的表连接,其中为 controller 分配了一辆卡车,该卡车在周转数据集中有数据,并且您看到的两个矩阵是在该周转表上按组计算的。 Any help would be greatly appreciated任何帮助将不胜感激

在此处输入图像描述

在此处输入图像描述

I have this original to test based on your scenario:我有这个原件要根据您的情况进行测试:

在此处输入图像描述

After import the data I test the Dax Groupby function by remove table name at the front导入数据后,我通过删除前面的表名来测试 Dax Groupby function

new table = GROUPBY('Group',[ITEM],"Average Volumn",
                AVERAGEX(CURRENTGROUP(),'Group'[VOLUME]))

As my new table do correctly return the table using Groupby因为我的新表确实使用 Groupby 正确返回了表

在此处输入图像描述

However, the table value seem to be static by not able to filter the value但是,表值似乎是 static 因为无法过滤值

在此处输入图像描述

In fact, there is a very simple way to achieve the filter table with average value by using original data and change the calculation method to average in the visual directly, and you can see the table result is same as groupby其实有一种很简单的方法就是用原始数据实现过滤表的平均值,直接在视觉上将计算方式改为平均,可以看到表格结果和groupby一样

在此处输入图像描述

When a filter the slicer, and the table change also, hope is it helping:)当过滤切片器并且表格也发生变化时,希望它会有所帮助:)

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM