根据另一列的总体平均值添加列

发布于 2025-02-04 15:30:39 字数 849 浏览 2 评论 0原文

我有一张桌子,有提供商,成本和物品数量,

我想知道每个提供商的价格是平均价格的,

所以我希望该桌子看起来像这个

提供商 /成本 /成本 /商品 /平均成本每项 /成本平均价格

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文