March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Dear community,
Using a column chart, I have two columns in x-axis and a measure in y-axis.
I would perform a TOP 15 by year, sorted by "Sum_measure".
Pleae could you help me ?
Thank you.
File : Power BI file
Solved! Go to Solution.
I've found the answer to my question here : Multilevel Sorting in Clustered Column Chart of PowerBI | Nested Sorting for BarChart | Tips & Trick
Thank you.
I've found the answer to my question here : Multilevel Sorting in Clustered Column Chart of PowerBI | Nested Sorting for BarChart | Tips & Trick
Thank you.
Hi @JoeMel ,
You can write topn measure like below to achieve your desired output:
Top15CustomerSales =
VAR TopCustomers =
TOPN(
15,
SUMMARIZE(
ALL('Sales'),
'Sales'[Customer],
"TotalSales", SUM('Sales'[Sales])
),
[TotalSales],
DESC
)
RETURN
IF(
CONTAINS(TopCustomers, 'Sales'[Customer], SELECTEDVALUE('Sales'[Customer])),
SUM('Sales'[Sales]),
BLANK()
)
The resultant output will look like below:
I have attached an example pbix file.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
16 | |
15 | |
7 | |
7 |
User | Count |
---|---|
37 | |
31 | |
16 | |
16 | |
12 |