如何根据某些列的零值删除整个行 - 电源BI查询

发布于 2025-02-05 19:39:02 字数 396 浏览 1 评论 0原文

我在带有+20列和+10000行的Power BI查询中有一个未分明的表。 第一列与KPI名称,月份和其他感兴趣的数据有关。后面的列是包含我要显示的实际值的列。

有些行具有KPI描述(名称,月份等),但在其余列中没有任何值(“ null”)。

有没有办法去除这些行?每当其余列的所有值为“ null”时,请删除。 (第一列永远不会为空)

”在此处输入图像说明”

谢谢! 我仍然是这个动力世界的初学者:)

I have an unpivoted table in the Power BI Query with +20 columns and +10000 rows.
The first columns are related to KPI name, month, and other data of interest. The columns after are the columns that contain the actual values I want to display.

Some rows have the KPI description (name, month, etc.) but do NOT any values in the rest of the columns ("NULL").

Is there a way to remove these rows? Remove whenever all the values of the rest of the columns are "NULL". (First columns will never be empty)

enter image description here

Thank you!!
I'm still a beginner in this Power BI world :)

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

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

发布评论

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

评论(1

柠檬心 2025-02-12 19:39:03

如果其他列始终为无效,则只需选择其中一个列,然后使用列上的箭头从[] null上删除tick标记,

= Table.SelectRows(#"PriorStepName", each (Total number of shipments inbound] <> null)

如果您必须检查除某些列以外的每个列是否具有nulls,则然后,您可以执行此操作,其中计算每一行上的null数量。然后使用新列的下拉下拉列过滤该列以正确数量的null,

= Table.AddColumn(#"PriorStepName", "Count", each  List.NonNullCount(Record.ToList(_)))

同样您可以计算排除第一个X列的空列数(此处是前2列),然后过滤该列

= Table.AddColumn(#"PriorStepName", "Count", each List.NonNullCount(List.Skip(Record.ToList(_),2)))

If the other columns are always nulls together, then just pick one of those columns and use the arrow atop the column to remove the tick mark from [ ] null and filter it out

= Table.SelectRows(#"PriorStepName", each (Total number of shipments inbound] <> null)

If you have to check that every column except certain columns have nulls, then you could do this, which counts the number of nulls on each row. Then filter that column for proper number of nulls using the drop down atop that new column

= Table.AddColumn(#"PriorStepName", "Count", each  List.NonNullCount(Record.ToList(_)))

Similarly you could count the number of null columns excluding the first X columns (here the first 2 columns) then filter that column

= Table.AddColumn(#"PriorStepName", "Count", each List.NonNullCount(List.Skip(Record.ToList(_),2)))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文