Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Table Customer
Customer Key | Customer Type |
1 | L |
2 | S |
3 | L |
4 | S |
Sales Table
Sale Qty | Sale price | Customer ID |
50 | 2 | 1 |
20 | 5 | 2 |
10 | 10 | 3 |
100 | 30 | 4 |
200 | 8 | 3 |
I am trying to count distinct customers for a particular type who made sale using Filters (strictly not by calculate)
So far I came up with this :
FILTER ( Sales,
Related(Customer[CustomerType] = "L"
)
not sure who do I go from here.
Solved! Go to Solution.
Hi @ARK8
Please try
Count =
COUNTROWS (
SUMMARIZE (
FILTER ( Sales, RELATED ( Customer[CustomerType] ) = "L" ),
Customer[Customer Key]
)
)
Hi @ARK8
Please try
Count =
COUNTROWS (
SUMMARIZE (
FILTER ( Sales, RELATED ( Customer[CustomerType] ) = "L" ),
Customer[Customer Key]
)
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |