Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
So I have two tables, one with shipping information (departure country and arrival country)
Shipping
| id | DepartureCountry | ArrivalCountry |
| 1 | BR | US |
| 2 | IT | PT |
| 3 | US | IT |
And another with a list of European countries.
I was able to get the count for the shipping arriving at Europe with a measure that in this example would return 2 for ids 2 and 3
Solved! Go to Solution.
@WonderCoding , If Europeanlist is not filtered (in Slicer or filter )
Try a measure like
CALCULATE(COUNT(Shipping[ArrivalCountry]),filter(Shipping, not shipping[DepartureCountry] in values(Europeanlist[Country]) && shipping[ArrivalCountry] in values(Europeanlist[Country]) ) )
You could create a measure like
Shipped from non-Europe to Europe =
var euroCountries = ALLNOBLANKROW('European List'[country])
var nonEuroCountries = ALLNOBLANKROW('Non European List'[country])
return CALCULATE( COUNTROWS(Shipping), TREATAS( nonEuroCountries, Shipping[Departure country]),
TREATAS( euroCountries, Shipping[Arrival Country])
)
@WonderCoding , If Europeanlist is not filtered (in Slicer or filter )
Try a measure like
CALCULATE(COUNT(Shipping[ArrivalCountry]),filter(Shipping, not shipping[DepartureCountry] in values(Europeanlist[Country]) && shipping[ArrivalCountry] in values(Europeanlist[Country]) ) )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!