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
I have this bar chart above and I want to change the way it is sorted. So the blue one which is the Client, I want it to always be the first one in the visual and then the rest I want them to be sorted from highest to lowest.
So it should look something like below.
Is this actually possible in Power BI? I've been playing around with the sort by columns and other stuff but I just can't get my desired result.
Solved! Go to Solution.
Hi @RingoSun ,
According to your description, I download your sample data, here's my solution.
Create a calculated column in the SOS table.
Rank =
IF (
RELATED ( 'BrandDim'[Brand] ) = "Client",
10000,
RANKX (
FILTER ( 'SOS', MAX ( 'BrandDim'[Brand] ) <> "Client" ),
SUMX (
FILTER ( 'BrandDim', 'BrandDim'[Brand] = MAX ( 'BrandDim'[Brand] ) ),
'SOS'[Quantity]
),
,
ASC,
DENSE
)
)
Put the rank column in the visual tooltip and sort the visual axis by rank, get the result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @RingoSun ,
According to your description, I download your sample data, here's my solution.
Create a calculated column in the SOS table.
Rank =
IF (
RELATED ( 'BrandDim'[Brand] ) = "Client",
10000,
RANKX (
FILTER ( 'SOS', MAX ( 'BrandDim'[Brand] ) <> "Client" ),
SUMX (
FILTER ( 'BrandDim', 'BrandDim'[Brand] = MAX ( 'BrandDim'[Brand] ) ),
'SOS'[Quantity]
),
,
ASC,
DENSE
)
)
Put the rank column in the visual tooltip and sort the visual axis by rank, get the result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I've been trying out solutions to achieve this without any success so I guess it's safe to assume that this is just impossible to acheive in Power BI
@RingoSun Check these videos:
https://www.youtube.com/watch?v=CpBy79AawVw
https://www.youtube.com/watch?v=uZLmWz60_do
That works for making the client to always be the first one in the visual but does not work for arranging the rest from highest to lowest
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 |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |