一个人如何有条件地替换PowerQuery中的一些选定的列
我有一组数据,希望替换一些包含值1、1,f的列。 每当PowerQuery看到分别包含1,1的彼此相邻的三列集时,我希望它替换一组值中的一组列,以说0、0, * 我知道如何用另一个值替换值,只要在这些值显示的情况下,我就想要BUH,以将其替换为集合。 我一直很强烈解决这些问题,有时是无济于事的。
单击此处,查看挑战:
谢谢。
I have a set of data and i wish to REPLACE some column(s) that contains values 1, 1, F adjacent to each other.
whenever powerquery sees these set of three columns adjacent to each other containing 1,1, F respectively.I want it to replace the group of columns in that set of values to say 0, 0, *
i know how to replace values with another value, buh i want just whenever the occurence of these values showed, to get it replaced in set.
I have been strongly to resolve these for sometimes buh to no avail.
Click here and see the challenge:
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此步骤用0替换指定列的值,其中满足了指定条件:
This step replaces the values of specified columns with 0, where the specified condition is met:
Can be done with complicated formula, but simple way to do what you want is:
Add column .. custom column .. with formula to test those 3 columns
filter for the bs using the arrows atop the column
右键单击并将三列转换为0,0,*
For the numericals, choose any transform function then change the formula to be each 0, for the alpha column use each "*"
recombine with the original data, filtered for the < strong>as
Can be done with complicated formula, but simple way to do what you want is:
Add column .. custom column .. with formula to test those 3 columns
filter for the bs using the arrows atop the column
right click and transform the three columns to become 0,0,*
For the numericals, choose any transform function then change the formula to be each 0, for the alpha column use each "*"
recombine with the original data, filtered for the as