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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello Community,
I need to categorize a visual by the below:
Black / platinum is the 5% of the entity with highest spend
Gold is top 20% to top 5%
Silver is top 50% to top 20%
Bronze is bottom 50%
Noting that Code and Name comes from a dimension table1 while Year and Month comes from tabl2, spend is a measure
can you help how to address this ? is there any other method than the Rank or topN
Thank you
screenshot of exported data from Power BI
Solved! Go to Solution.
I forgot to unfilter the table, updated in the first post
medal =
var tbl =
CALCUATETABLE(
SUMMARIZE(
tabl2,
table1[Code],
table1[Name],
tabl2[YEAR],
tabl2[Month]
),
ALLSELECTED()
)
var platinum = PERCENTILEX.INC(tbl, [Spend], 0.95)
var gold = PERCENTILEX.INC(tbl, [Spend], 0.8)
var silver = PERCENTILEX.INC(tbl, [Spend], 0.5)
var val = [Spend]
RETURN
SWITCH(
true,
val >= platinum, "Platinum",
val >= gold, "Gold",
val >= silver, "Silver",
"Bronze"
)
Thank you for your input, I put the formula that you have provided but I only got Platinum and bronze values only
I forgot to unfilter the table, updated in the first post
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 131 | |
| 103 | |
| 58 | |
| 39 | |
| 31 |