Power Query:索引调整解决方案
Power Query: Index adjustment solution
我有多个带有索引列和一些匹配 ID 的表。我需要通过应用匹配 ID 之间的比率将所有表与调整后的索引合并到一个表中。
第一步(黄色)很简单:我们将第 2 个初始表的比率乘以 Table2 索引。困难的部分是下一步(红色部分):我们需要找到 Table3 的匹配 id 与之前调整的 Table2 id 之间的比率。
在 Power Query 中是否有创造性的方法可以做到这一点?
见下图:
谢谢!
红色指数简直
(100/82)*(88/100) = 88/82 = 1.07317
您可以使用更多表格继续此模式。例如,有五个表,您的最后一个索引将是:
(Index of Max Table1 id)/(Index of Min Table2 id) *
(Index of Max Table2 id)/(Index of Min Table3 id) *
(Index of Max Table3 id)/(Index of Min Table4 id) *
(Index of Max Table4 id)/(Index of Min Table5 id)
我有多个带有索引列和一些匹配 ID 的表。我需要通过应用匹配 ID 之间的比率将所有表与调整后的索引合并到一个表中。
第一步(黄色)很简单:我们将第 2 个初始表的比率乘以 Table2 索引。困难的部分是下一步(红色部分):我们需要找到 Table3 的匹配 id 与之前调整的 Table2 id 之间的比率。
在 Power Query 中是否有创造性的方法可以做到这一点?
见下图:
谢谢!
红色指数简直
(100/82)*(88/100) = 88/82 = 1.07317
您可以使用更多表格继续此模式。例如,有五个表,您的最后一个索引将是:
(Index of Max Table1 id)/(Index of Min Table2 id) *
(Index of Max Table2 id)/(Index of Min Table3 id) *
(Index of Max Table3 id)/(Index of Min Table4 id) *
(Index of Max Table4 id)/(Index of Min Table5 id)