Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello.
I am trying to recreate this chart in PBI:
Trying to count number of customers who has purchased Product A not B, B not A and customers who purchased both A and B during current and previous rolling 12 months.
Please help me construct this. Attached is my work in progress using sample data:
Link
Thanks.
Regarding the WIP file, I've attempted to create measures that allow me to isolate customers who purchased A but not B during a 12 month period. Somehow, it doesn't seem accurate and it doesn't allow me to count the number of customers.
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but I tried to recreate the page like below.
Please check the below picture and the attached pbix file.
INTERSECT function (DAX) - DAX | Microsoft Learn
EXCEPT function (DAX) - DAX | Microsoft Learn
Create calculation groups in Power BI - Power BI | Microsoft Learn
Hi,
I am not sure if I understood your question correctly, but I tried to recreate the page like below.
Please check the below picture and the attached pbix file.
INTERSECT function (DAX) - DAX | Microsoft Learn
EXCEPT function (DAX) - DAX | Microsoft Learn
Create calculation groups in Power BI - Power BI | Microsoft Learn
@lbendlin Thanks! Exactly what I was looking for.
In one of the measures, you typed "A or B" but I am sure you meant "A and B"?
Can you please add a measure that sums up units sold for customers who purchased both A and B?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |