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.
My table visual has Year, Month, Customer, Country, and Total qty, and I want it to display top 10 customers order by their total qty in each month. I have created the total qty measure, Customer rank measure, and top 10 customer measure as following.
Hi @MeiYing - Modify your customer ranking measure as below ensuring ranking takes into account the alphabetical order
Customer Rank =
RANKX(
ALL('Top Cust'[CUSTOMER]),
[total qty],
[total qty] + 1/(1 + RANKX(ALL('Top Cust'[CUSTOMER]), [CUSTOMER], , ASC)),
DESC,
DENSE
)
Update your Top 10 Customer Qty Measure as below by calling Customer Rank
Top10 Customers Qty =
IF(
[Customer Rank] <= 10,
[total qty],
BLANK()
)
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
User | Count |
---|---|
85 | |
81 | |
64 | |
53 | |
46 |
User | Count |
---|---|
101 | |
49 | |
42 | |
39 | |
38 |