Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Basket Analysis in SSAS - Identifying orders where no other products were purchased

$
0
0

Hi All

I have set up an SSAS cube to allow our analysts to do some Basket Analysis type queries, for example if you choose a particular product it will tell you what other products were purchased on the same basket (percentage by product).

I achieved this using many to many relationships between multiple copies of the same order line level sales data, linked via an order level dimension.

Basically following the example below and tweaking it to fit our model

http://www.codeproject.com/Articles/33765/Market-Basket-Analysis-in-SSAS-2005

This is all working great and I have now enhanced it to allow 2 products to be chosen.

My remaining challenge is this - The analysts want to be able to report on the percentage of orders where no other products were purchased.  In other words the percentage of orders where the chosen products were the only things in the basket.

I'm struggling to get my head around how to model this in MDX - Has anyone else come across this? And can anyone offer any advice please?

Below is a screenshot of the relevant section of our cube structure.

I'm considering replicating the problem in AdventureWorks so I can share the solution but just wondered generally if anyone had come across this before?

Many thanks

Dan


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>