在DAX中如何从列返回特定值

发布于 2025-02-08 06:54:56 字数 433 浏览 3 评论 0原文

在名为CustomerParent的表中的DAX(PowerBi)中,来自名为Parent的列(数据类型文本),我想从中返回过滤值,说“ 000000” 换句话说,例如: 如果customerparent [parent] =“ 000000”返回customerparent [parent]

SELECT Parent
FROM CustomerParent
WHERE Parent = '000000';

我尝试了dax中的几件事,没有成功

In Dax(PowerBI) From a table named customerParent, from the column named Parent (data type Text) I am wanted to return a filtered value from it say "000000"
in other words like:
if CustomerParent[Parent] = "000000" return CustomerParent[Parent]

SELECT Parent
FROM CustomerParent
WHERE Parent = '000000';

I have tried several things in Dax and have had no success
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

归途 2025-02-15 06:54:58

您可以编写这样的度量

parent = calculate(max(tbl [parent]),filter(values(tbl [parent]),tbl [parent] ='000000'))>

You can write a measure like this

parent = calculate(max(tbl[parent]),filter(values(tbl[parent]),tbl[parent]='000000'))

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文