使用 mv-expand 将动态列拆分为多行

Split dynamic column into multiple rows using using mv-expand

在动态值列上使用 mv-expand 时,我希望为列中的每个值获取单独的行。最终我想使用 summarize

来计算每个单独的值

动态值列可以包含一个或多个介于 1 和 300 之间的任意数字的值 喜欢 [], [1,3],[1,2,10,30]

我尝试使用 mv-expand 参考,但我无法使其工作。

表名 | mv-expand categories=自定义维度['category_id']

它不会为列中的每个值提供单独的行,而是创建一个与原始列具有相同动态值的新列。

您必须在查询中使用 'mvexpand' 而不是 'mv-expand'。我知道 this 具有误导性,但如果您转到查询页面并键入 'mv-expand' 则它不会解析,但如果您尝试 'mvexpand'.

它确实有效

为了完成您的要求,我在this thread should help you. Also for even more advanced example, you may refer 中提供的答案也是如此。

希望对您有所帮助!!干杯!!