Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Good Day
I have a very specific use case that I am trying to solve without any success so far.
The background:
I am working on a set of (basket) data which contains three tables. The tables include the following:
The relationship looks like this:
The scenario
I am currently using PowerBI Desktop. I have a report which has a slicer on which enables me to select a specific product name. A user can select a product name, which will then show (in a table) all of the meta information about the product - i.e. basketIDs, date of sale, quantity sold.
What I would like to do is the following:
I basically want to find out, given a product X, what other products are being sold in the same basket.
The end goal would be to display the details in a table
Hi, there is a website www.daxpatterns.com. You will find there a pattern regarding your problem http://www.daxpatterns.com/basket-analysis/. The site owners, Marco Russo and Alberto Ferrari are DAX gurus and write also very good books.
Thanks for the link - I am going to try the steps as per the link.
If I can't get it to work I will create a .PBIX file with a subset of data which I can share
Appreciate the assistance
Hi @Anonymous,
I already have the idea about this scenario now. Please share a dummy pbix file. It's hard to write a DAX formula without data.
Some tips,
1. You could use CALCULATE, VAR and IN in your formula.
2. You can check the items if they are in the selected basket, then filter the negative value out. IF( value in {}, 1, 0), then filter out 0.
Best Regards!
Dale
Any chance you might be able ot provide me with an example of how I could go about using it?
I have been following some channels to get permission to create a sub-set of the sensitive data so I can share a .pbix file, but I have not managed to get the authorisation yet.
I also had a look at the link provided for the basket analysis. This works well if you are looking for summarised values/calculations, but not when the idea is to:
Should I perhaps set up a fake XLS document with a couple of simulated baskets etc and to then share that?
Hi @Anonymous,
You can share the pbix file directly. Upload it to a cloud drive like GoogleDrive, Dropbox, then share the link here. Please mask the confidential parts.
Best Regards,
Dale
I have managed to get a proper solution working. The simplified online DAX approaches for basket mix analysis are too simplistic, and don't work with complex relational datasets.
Thank you for the assistance though
Good Day
I have a very specific use case that I am trying to solve without any success so far.
The background:
I am working on a set of (basket) data which contains three tables. The tables include the following:
The relationship looks like this:
The scenario
I am currently using PowerBI Desktop. I have a report which has a slicer on which enables me to select a specific product name. A user can select a product name, which will then show (in a table) all of the meta information about the product - i.e. basketIDs, date of sale, quantity sold.
What I would like to do is the following:
I basically want to find out, given a product X, what other products are being sold in the same basket.
The end goal would be to display the details in a table
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
80 | |
53 | |
39 | |
39 |
User | Count |
---|---|
104 | |
85 | |
47 | |
44 | |
43 |