Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Group Intersection

Hello everyone.

I am a little new to Power BI, I am doing a project that consists of how is the coexistence of two brands in different points of sale.

YearMyPoint of salesales PRODUCT Asales PRODUCT B
2022Septemberplace 1199
2022Septemberplace 2 3
2022Septemberplace 343
2022Septemberplace 41831
2022Septemberplace 556
2022Septemberplace 631
2022Septemberplace 7 7
2022Septemberplace 8531

I have to define how many points of sale sell product A, how many sell product B and how many sell both.

Getting the quantity of each product was very simple:

Number of Places Selling A =
CALCULATE([Total Places] , Sales[VolTotal] > 0, Product = "Product A")
Number of Places Selling B =
CALCULATE([Total Places] , Sales[VolTotal] > 0, Product = "Product B")
I understand that to find the place where both are sold I would have to make an intersection of both, but I can not find a way.
I would appreciate your help.
2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Syndicate_Admin 

could you share some sample data in table 'Sales'? thanks

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

AbbasG
Memorable Member
Memorable Member

@Syndicate_Admin The below DAX will help in getting the desired outcome. 

Selling places for both products =
    CALCULATE(
        [Count places],'Table (2)'[sales PRODUCT A], 'Table (2)'[sales PRODUCT B])
 
AbbasG_1-1669092467951.png

Also, there are better ways of achieving this one of them is creating a variable and then returning them. Instead of creating 3 different measures. Hope it helps.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.