This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hello everyone. I am a bit new to Power BI, I am working on a project that consists of how two brands coexist in different points of sale.
| Año | Mes | punto venta | ventas PRODUCTO A | ventas PRODUCTO B |
| 2022 | septiembre | place 1 | 19 | 9 |
| 2022 | septiembre | place 2 | 3 | |
| 2022 | septiembre | place 3 | 43 | |
| 2022 | septiembre | place 4 | 18 | 31 |
| 2022 | septiembre | place 5 | 5 | 6 |
| 2022 | septiembre | place 6 | 31 | |
| 2022 | septiembre | place 7 | 7 | |
| 2022 | septiembre | place 8 | 5 | 31 |
I have to define how many points of sale sell product A, how many sell product B and how many sell both. Getting the amount of each product was very simple:
Number of Places that Sell A = CALCULATE([Total Places] , Sales[VolTotal] > 0, Product = "Product A")
Number of Places that Sell 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't find the way.
I'd appreciate your help.
Solved! Go to Solution.
Hi Daxmon_23,
You can add a measure like this:
SellTwoPlaces =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER (
'Table',
AND (
NOT ( ISBLANK ( 'Table'[ventas PRODUCTO A] ) ),
NOT ( ISBLANK ( 'Table'[ventas PRODUCTO B] ) )
)
)
)
The result is:
Hope this helps you.
Here is my PBIX file.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Daxmon_23,
You can add a measure like this:
SellTwoPlaces =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER (
'Table',
AND (
NOT ( ISBLANK ( 'Table'[ventas PRODUCTO A] ) ),
NOT ( ISBLANK ( 'Table'[ventas PRODUCTO B] ) )
)
)
)
The result is:
Hope this helps you.
Here is my PBIX file.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This was my attempt but the result appears in 0
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 24 | |
| 24 | |
| 22 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 49 | |
| 25 | |
| 25 |