简体   繁体   English

如何将计算列添加到将忽略切片器 Power BI 中的选定值的现有表

[英]How to add calculated column to existing table that would ignore selected value in a slicer Power BI

I need to add calculated column that would ignore values selected in a slicer:我需要添加将忽略切片器中选择的值的计算列:

I tried:我试过了:

all users = ALL(Sheet1[UserName])

But it gives me an error: A table of multiple values was supplied where a single value was expected.但它给了我一个错误:提供了A table of multiple values was supplied where a single value was expected.

在此处输入图像描述

A calculated column cannot be affected by a slicer but that's not what you seem to be referring to.计算列不受切片器的影响,但这不是您所指的。

It appears you are trying to create a visual that lists all the users.您似乎正在尝试创建一个列出所有用户的视觉对象。 For this, you can put Username on a table visual and disable the filtering from the slicer by going to the Format tab and clicking Edit interactions .为此,您可以将Username放在表格视觉对象上,并通过转到“格式”选项卡并单击“ 编辑交互”来禁用切片器的过滤。

If I understand you correctly, You have to use ALL() Function by creating new table Under the modelling tab如果我理解正确,您必须通过在建模选项卡下创建新表来使用 ALL() Function

在此处输入图像描述

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

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