概览
内容工具
客单价是指每位顾客平均购买商品金额。
公式为:sum(SaleAmount)/Count(CustomerID)。
在这种情况下,我们分析每个类别中的sum(SaleAmount)/Count(CustomerID)。
第1步:添加图表,并绑定分类字段。
第2步: 在目标表上添加一个度量值。
第3步: 为度量值命名,并输入表达式内容。
sum('FactInternetSales'[SalesAmount])/count('FactInternetSales'[CustomerKey])
第4步:将度量值绑定到数值中进行使用。
这里添加的是一个度量值,您可以直接使用该度量值,但不可以选择聚合方式和快速运算。