1

I'm trying to do Market Basket Analysis in Tableau. In the image i attached, you will see a heat map (see image 1). For product 1 and product 2, the numbers of overlapping customers are shown in the heat map. enter image description here

My question is that if it is possible to do another heat map to show the non-overlapping customers? The attached heat map is created by joining the same table to itself.(see image 2), so the logic is to join on customer ID. If i want to show non-overlapping customers who are the real potential business opportunities, may be joining the same table to itself is not the right way to go any more...Can anybody share some insights here? Thanks! enter image description here

4

1 回答 1

1

首先只是一个提示。我相信热图用颜色更好地可视化,而不是不同大小的正方形。所以将 CNT(记录数)拖到“颜色”,而不是“大小”。

现在回到您的问题,我假设您想要产品 1 不包含产品 2 的订单总数。

在这种情况下,您需要一个表格计算:

TOTAL(SUM([Number of Records])) - SUM([Number of Records])

然后,您需要调整表计算,以便对行或列求和。

于 2015-04-08T18:06:53.057 回答