PowerQuery,Powerbi,DAX中的分组列的累积总和
我有一个列名称日期,产品名称,客户名称,销售价值,基于产品名称和日期的销售价值,销售百分比为销售价值 /销售价值。我想要的是= = if(产品名称=产品名称,销售百分比,例如F1 + F2,F1),
我需要使用DAX或Power Query
I have a column name date, product name, customer name, sale value, sum of sale value based on product name and date, percentage of sales which is sale value / sum of sale value. What i want is function like = if(product name = product name, percentage of sales let's say F1 + F2, F1)
I need to recreate the last column in the attached image into power bi using Dax or power query
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在PowerQuery/M中,您要寻找的是 sale 列的累积总和,分组 date 和产品类型
您就可以过滤使用箭头上的等级列到您想要的任何范围,例如75%
====
您也可以在第一个4列
< a href =“ https://i.sstatic.net/t4uul.jpg” rel =“ nofollow noreferrer”>
In powerquery/M what you are looking for is a cumulative sum of the sale% column after grouping on date and Product Type
You can then filter the Rank column using the arrows atop it to any range you want, like 75%
====
You could also generate your three extra columns at once as part of the group on the first 4 columns