有什么方法可以替换power查询中contatin特定单词的值?

发布于 2025-02-13 16:34:05 字数 562 浏览 0 评论 0原文

我在使用电源查询M功能方面遇到困难。

我遇到的问题是使细胞空白以前包含“美国核心运输”列“促销-IDS”。

例如,有“美国核心运输A3JU1250912”“美国核心运输A3JT982918” ...

这些单词都不同,但它们的共同点为“我们的核心运输”。

因此,我想让这些单词包含我们的核心运输〜为空白。

请帮助我解决这个问题。

下面附加的是我的列上的高级编辑器和当前的M代码。

I'm having difficulties with using Power Query M-function.

The problems I'm having with is to make cells blank previously contains 'US Core shipping' on column 'promotion-ids'.

For example, there are 'US Core shipping A3JU1250912' 'US Core shipping A3JT982918'...

These words are all different but they have 'US Core shipping' in common.

So I want to make these words containing US Core shipping~ to blank.

Please help me solving this problem.

Attached below are advanced editor and current m-code on my columns.

enter image description here

enter image description here

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

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

发布评论

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

评论(1

话少情深 2025-02-20 16:34:08

如果没有示例输入和所需的输出,可以准确地分辨出您想要什么,

以删除指定列中的内容,如果找到匹配的文本,也许可以尝试

#"Replace" = Table.TransformColumns(#"YourPriorStepNameHere",{{"YourOriginalColumnNameHere", each if Text.Contains(_,"US Core shipping") then null else _, type text}})

It is a bit hard to tell exactly what you want without a sample input and desired output

To erase content in specified column if it finds matching text, maybe try

#"Replace" = Table.TransformColumns(#"YourPriorStepNameHere",{{"YourOriginalColumnNameHere", each if Text.Contains(_,"US Core shipping") then null else _, type text}})
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文