Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Syndicate_Admin
Administrator
Administrator

Sorting columns in a graph

Good morning

I have a chart with x number of columns but one of them I want to always appear first, as if it were independent of the order of the rest of the columns.

Let me explain:

RWRW_1-1681266843400.png

As you can see the columns are ordered from highest to lowest.

Objective: To ensure that the first column is always the E and then the rest of the columns are ordered from highest to lowest or from lowest to highest.

the order from highest to lowest would be E, A, B, C, D

the order from lowest to highest would be E, D, C, B, A

I hope you can help me, thanks and greetings

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

And it also appears in the title of the graph

RWRW_1-1681352712660.png

Seria Utilization by Department

Hi,

Unfortunately, that's a drawback of this method, and this caption cannot be easily removed from the tooltip.

With the title, it is pretty easy to fix: 

barritown_0-1681369788064.png

 

Back to the tooltip, you have two options I guess:

1) You can create a custom tooltip and leave only the parameters you want to be there. Check the video in my vlog on this topic if you like - https://youtu.be/C498utF7Ldg.

2) You can simply turn off the tooltip so it won't bother you. Here:

barritown_1-1681370902185.png

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

Syndicate_Admin
Administrator
Administrator

Good morning

Everything was perfect, I did it and it works properly. The only doubt I have is that when adding tooltip that information is displayed in the tooltip, how could I hide the text? Thanks a lot

RWRW_0-1681352257687.png

I just want to visualize Department and utilization. Thanks again

barritown
Super User
Super User

Hi,

 

If it is okay to perform sorting using an auxiliary slicer, I can propose such a solution.

 

1. We create an additional table with the options "asc" and "desc". It will be used in a slicer.

barritown_0-1681288957383.png

 

2. We create a measure like this:

Parameter for sorting = 
VAR factor = IF ( SELECTEDVALUE('order'[order]) = "desc", 1, -1 )
VAR res = IF ( SELECTEDVALUE ( data[Parameter] ) = "E", 
                   factor * SUM ( data[Value] ) + 1000,
                   factor * SUM ( data[Value] ) )
RETURN res

 

3. We add this measure to the Tooltips section of our bar chart - thus, it will appear in the "Sort axis" list.

barritown_1-1681289068642.png

 

4. Then we choose this measure in the sorting options and choose "Sort descending."

 

Here is the result for both options:

 

barritown_2-1681289112183.pngbarritown_3-1681289135452.png

Should you need any clarifications, please let me know.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors