首页 > 解决方案 > PowerQuery Excel 与 PowerBI

问题描述

您好 PowerQuery 专家,

我正在尝试将 PowerQuery 公式从 Power BI PowerQuery 迁移到 Excel PowerQuery,我期待两个 PowerQuery 实现是相同的,但不幸的是,事实并非如此,或者我遇到了一些本地化问题(法语与英语)请找到我在 Excel 中收到的部分错误查询和错误消息。

= Table.Pivot(#"Expanded ""tags"" from Records", 
            List.Distinct(#"Expanded ""tags"" from Records"[name]), "name", "value")


Expression.Error:  Sorry ... We were unable to apply the < operator to the List and List types.
     Details :
     Operator=<
     Left=[List]
     Right=[List]

这里的完整代码不包括指向错误行的 API 密钥: https ://gist.github.com/EricLacroix/e6313e893f3f107f22eccfb79cddadb7#file-gistfile1-txt-L81

标签: excelpowerquerypowerbi-desktop

解决方案


最后,

在询问了一位同事之后,我们在执行枢轴操作之前删除了所有剩余的具有某种完整类型的列存储在列中(例如:记录、数组),然后就解决了这个问题。


推荐阅读