0

所以我在 alteryx 中创建了一些简单的分析,我正在寻找一些建议。

我有一个商家和购物者的数据集。我使用汇总节点 countdistinct(shoppers) 提取唯一购物者的总数 - 假设它是 100。然后,我为每个商家中的唯一购物者数量创建一个表,该表看起来像这样

商家 | 唯一用户

商户 1 | 76

商户 2 | 19

商户 3 | 97

商户 4 | 44

商户 5 | 55

...

我想创建一个变量,它将是 [Number of Distinct Users]/countdistinct(shoppers)。

我知道我可以将 countdistinct(shoppers) 的值附加到表中新的第三列中,但除非必须,否则我不希望这样做。有没有办法将 countdistinct(shoppers) 中的单个数字保存为一个值并直接除以该值而无需附加或加入?

4

1 回答 1

0

There currently is no way to do that in Alteryx. While it feels wrong or wasteful, by including the calculated count distinct value on every record, Alteryx can process each record individually and then pass it down stream.

I have heard talk of creating something like a global variable that could be accessed or updated to handle the situation that you're describing, but the complexity of managing reads and writes from different parts of the workflow as well as any resulting slowdown from thread coordination always sideline the discussion.

于 2016-07-20T14:36:44.397 回答