动态卡标签

约翰·布林克

重要免责声明: 我是Power BI的新手,因此,如果问题听起来像是一个简单的问题,请与我保持联系。我尝试研究,但没有成功。

我有一个PowerBI仪表板,它将深入到活动数据集中。

在此仪表板上,我希望有一个动态卡片,该卡片根据所钻取的数据显示摘要信息。


出于这个问题的目的,假定以下是正在使用的仪表板(已删除敏感信息):

PowerBI ODV仪表板

有关仪表板的信息:

数据集是一个完整的未过滤订单簿,其中包含每个订单的订单项(因此存在重复的订单号值)。应用全页过滤器过滤掉某些订单类型(OR Type == 'OP','OS')。根据确定每个订单商品Qty Committedvs的增量的度量,在页面上添加了另一个重要的过滤器Qty Received测量将分配的答案diff重命名为“差异”。


要求:

对于此报告,我需要这些卡根据表和过滤器值进行动态更新。

要求1:

卡1显示分支名称。当应用分支过滤器时,这是完美的选择。然而,随着卡的数据设置为显示在数据集的第一个条目,当现场的所有记录Branch被选中,我想显示“所有分支”,而不是第一个条目。我不确定如何实现这一目标。

简而言之:如果过滤器= [全选],则将[分支/工厂]卡显示为“所有分支”,否则显示选定的[分支/工厂]。

要求2:

卡2显示订单总数,而不显示未结订单数量,其中diff > 0因此,卡应该显示屏幕快照表[每个供应商的未完成订单]中显示的未结订单值,应该为139。当前显示的207的值是订单总数,diff > 0忽略过滤器。

我为需求2尝试的内容如下:

  • 我尝试将测量值diff作为过滤器添加到卡中,但是无法更改“过滤器”参数。过滤器参数失败
  • I have tried creating a new field column, with the measurement for the column being Outstanding = SUM('Purchase Order Report'[QuantityCommitted]) - SUM('Purchase Order Report'[QuantityReceived]). This is the same measurement to derive diff. I added the new field column as a filter, which then allowed me to change the parameters, but made no difference. What I have also noticed, was that, even though the formulas were identical, the values of Outstanding did not match the values of diff, which I recon that outstanding was ignoring all filters, and simply took the values of the raw data-set.

Any guidance will be appreciated! If I have left out important information which is required to contribute to this question, please tell me in the comments, so that I can add it.

xris23

对于需求1,我始终使用DAX中的if(isfiltered函数。只需使用以下DAX创建度量:IF(ISFILTERED([Branch / Plant]),CONCATENATEX(filters([Branch / Plant]),[Branch / Plant ],“,”),“ ALL”))

解释一下:ISFILTERED检查是否应用了过滤器。如果为true,它将用逗号连接字符串。如果为假,则会显示“ ALL”

同样,快速的措施可能对您有所帮助。如果您创建一个新的快速度量,则总在底部,您将有一个称为连接值列表的计算。

克里斯

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章