根据另一列的总体平均值添加列
我有一张桌子,有提供商,成本和物品数量,
我想知道每个提供商的价格是平均价格的,
所以我希望该桌子看起来像这个
提供商 /成本 /成本 /商品 /平均成本每项 /成本平均价格
1 .......................................................................................................................................... .....
...........................................................................................................................................................................
3 ......... 3.125 ..... ............. 9.375
4 ................................................................................................................................. 3.125 .. ...................12.5
Totals......50.......16
What's the best way to do this?我创建了一个措施,可以给所有提供商的平均成本正确,但似乎无法将其添加到表中,以便我可以计算差异。我尝试在这里和其他地方查看,但找不到解决方案。不可能那么罕见,但似乎很难!
任何帮助都非常感谢
I have a table with providers, costs and number of items
I want to know what the cost would be for each provider if their price was at this average price
So I want the table to look something like this
Provider / Cost / Items / Average cost per item / Cost at average price
1...........5........4.........3.125.....................12.5
2...........10.......5.........3.125.....................15.625
3...........20.......3.........3.125.....................9.375
4...........15.......4.........3.125.....................12.5
Totals......50.......16
What's the best way to do this? I have created a measure that gives the correct average cost of all providers but can't seem to add this to a table so that I can calculate the difference. I've tried looking here and elsewhere but can't find the solution. It can't be that rare but seems quite hard!
Any help much appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论