Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi,
I have a stacked bar chart for Top 30 looks like below. Remaining Suppliers are above the last supplier. How can I fix this?
Here is the rankx I use:
Can anyone helps me?
@YILE , for Top you should use DESC not ASC
try like
Sumx(keepfilters(
TOPN(
SELECTEDVALUE('TopN Selection'[Top Suppliers]),
ALLSELECTED('Pseudo Supplier Table'),
[Total Spend], desc
)),
[Total Spend]
)
or
calculate([Total Spend] ,keepfilters(
TOPN(
SELECTEDVALUE('TopN Selection'[Top Suppliers]),
ALLSELECTED('Pseudo Supplier Table'),
[Total Spend], desc
))
)
Learn Power BI: Dynamic TOPN using TOPN/Window and Numeric parameter: https://youtu.be/vm2mdEioQPQ
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 18 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 38 | |
| 31 | |
| 26 |