This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 23 | |
| 23 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 62 | |
| 36 | |
| 30 | |
| 25 | |
| 21 |