如何使用电源查询在同一列中进行增量求和?
我有一个专栏[销售增长],该列是五行(例如5个月)。当前行=前一行或上一行的1.05%。每行都会继续下降。
在Excel中非常简单,假设我在B2中我要做的就是B1*1.05。但是,在电源查询中,事实证明很难解决。我已经看到了各种具有双索引和索引-1等的解决方案,这非常适合运行总计,但在我的情况下却不适合运行。
I have a column [Sales Growth] which as five rows (say for 5 months). Where current row = 1.05% of preceding row or previous row. And it continues down with each new row.
In Excel its very easy Suppose I am in B2 all I have to do is B1*1.05. But, in Power Query, it turned out to be very difficult to solve. I have seen all kinds of solutions with double indexing and Index -1 etc which is good for running total but not in my case.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
很难准确地告诉您您要做什么。但是,如果您从某个基本数字开始,并且始终将每一行增加相同的%,那么它只是数学复合公式。
或用PowerQuery术语,
示例代码:
或
It is hard to tell exactly what you are looking to do. But if you start with some base number and always increase each row by the same % then its just a math compounding formula.
or in powerquery terms,
sample code:
or
查询1
相关功能
Query 1
Relevant Function