How to Fill Your Data - Alteryx Community
所有Null的地方都要fill
有两种fill data的方法:
1)replicating the same value 重复一样的东西 Excel里面的向下拉,重复
2) Control+向下拉 填充数字 1 2 3 4 5 6...
在Excel里面要做填充的话:
1) Many Rows of data
2) Need to be done repetitively
所以在Alteryx用Multi-Row Formula tool

Designer processes data from the top of the dataset to the bottom
从上到下的处理数据

如果正在处理第二行 那么第一行默认已经处理过了 第三行还没有被处理
Count=[Row-1: Count]+1
row 这里是当前正在处理的行
开始做:
在input一个Excel以后 在preparation里面拉入multi-row Formula 工具
首先 要确认是要建立一个新的count 还是更新当前的
Excel是这样的

首先如果更新当前的数阈

开始写expression (先填补country)
选择 Function 然后双击第一个conditional

这里是要填补Null的空缺
选中要替换的c (condition)
然后选Function--Test--IsNull


然后选择variable V

接着 发现有一行是NULL了 比如这里的Record2 那么正如上面的当前的Active Row就是

然后 选择Row-1 country 就是说 我们把这个NULL值 又它上面的数据填补就是Record 1 也就是 Row-1
那剩下的那个record就保持不变 那么还是选择Row+0-active row

Run

再继续添加state

跟上面的类似

run --看结果

再建立并填充一个新的列--count



如果要针对每一个state count--点group by

run

网友评论