Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all!
So I have a table 'Product' with columns: [Country], [Customer Name], [Product Category], [Prodcut Name], [Prodcut UPC]
And based on this, I created a calculated column [Unit Count] = DISTINCTCOUNT(Product[Prodcut UPC])
Now I need to create a card visual to display the top 1 customer with all the cross-filtering on the page, aka the customer bought the most units disregard the price and product type, and here's what I tried:
[Top Customer] =
Solved! Go to Solution.
Hi @Anonymous ,
If you want the count can be filtered by all the cross-filtering on the page. We can also use the following measure to meet your requirement:
TopCustomer =
MAXX (
TOPN (
1,
SUMMARIZE (
Product,
Product[Customer Name],
"Count", DISTINCTCOUNT ( Product[Prodcut UPC] )
),
[Count], DESC
),
[Customer Name]
)
Best regards,
Hi @Anonymous ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
Best regards,
Hi @Anonymous ,
If you want the count can be filtered by all the cross-filtering on the page. We can also use the following measure to meet your requirement:
TopCustomer =
MAXX (
TOPN (
1,
SUMMARIZE (
Product,
Product[Customer Name],
"Count", DISTINCTCOUNT ( Product[Prodcut UPC] )
),
[Count], DESC
),
[Customer Name]
)
Best regards,
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 |
---|---|
76 | |
76 | |
55 | |
36 | |
34 |
User | Count |
---|---|
99 | |
56 | |
53 | |
44 | |
40 |