Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello everyone,
I've the following dataset:
Dim table Customer:
CustomerID | CustomerName |
1 | Harry |
2 | Henny |
3 | Bob |
Fact table 1:
CustomerID | Product | Country |
1 | A | NLD |
1 | A | BEL |
1 | B | DEU |
2 | A | DEU |
3 | C | GRC |
3 | B | MLT |
I'm trying to create a dax measure where i can check wheter a customer has a product in a specific country.
For example I want to check if customers have products in NLD or MLT.
My desired result would:
CustomerName | Measure |
Harry | 1 |
Henny | 0 |
Bob | 1 |
Thank you in advance!
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
Expected outcome measure: =
COUNTROWS (
FILTER ( RELATEDTABLE ( 'Fact' ), 'Fact'[Country] IN { "NLD", "MLT" } )
) + 0
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Please check the below picture and the attached pbix file.
Expected outcome measure: =
COUNTROWS (
FILTER ( RELATEDTABLE ( 'Fact' ), 'Fact'[Country] IN { "NLD", "MLT" } )
) + 0
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
75 | |
62 | |
51 | |
47 |
User | Count |
---|---|
213 | |
81 | |
64 | |
60 | |
56 |