[{"id":"840f0737-df1d-47ae-bb0a-359b01fe0608","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"d5d9cdef-8854-4505-89be-a2bbc3cb4482","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"3dc3dd55-35b0-4d23-bf62-47bc3650e4ee","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"80d84fbc-d0f8-4e4a-947f-e3e4de9b49b2","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"9152b7ca-0186-4fe3-a26f-5a05f322db07","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]}]
        
(Showing Draft Content)

客户平均交易额(客单价)分析

需求描述

客单价是指每位顾客平均购买商品金额。

公式为:sum(SaleAmount)/Count(CustomerID)

在这种情况下,我们分析每个类别中的sum(SaleAmount)/Count(CustomerID)。

在仪表板中实现

1. 添加图表,并绑定分类字段。

image2021-12-15_17-5-47.png


2. 在目标表上添加一个度量值。

image2021-12-15_17-7-43.png


3. 为度量值命名,并输入表达式内容。

sum('FactInternetSales'[SalesAmount])/count('FactInternetSales'[CustomerKey])

image


4. 将度量值绑定到数值中进行使用。

image2021-12-15_17-35-1.png

这里添加的是一个度量值,您可以直接使用该度量值,但不可以选择聚合方式和快速运算。

image2021-12-15_17-35-36.png