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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.