在 Power BI 中计算 return 值与销售值的百分比

Calculate percentage of a return value against the sale value in Power BI

我有一个矩阵,其中有公司、销售价值和 return 价值。

我想计算 return 价值中有多少百分比来自销售价值

销售额可以为负数,因为不能有销售额。

我该怎么做?

非常感谢任何帮助。

试试这个例子,它发布在 powerbi 社区。

https://community.powerbi.com/t5/Desktop/Measure-to-calculate-average-in-line-stack-bar-chart/m-p/1608563#M650205

你用测量来做这个

Percentage = sum(Table[Return value])/sum(Table[SALES VALUE])

然后 select 测量并单击测量工具中的 % 符号。会显示数字 在 %.