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
PBI5851
Helper V
Helper V

Sorting in a Chart

Hello,

I am trying to display a Range table and the corresponding data in a column chart. I am able to get the data, but the sorting is the big problem. Not sure how to accomplish this. 

 

SortKeyFieldRangeCount
1North10-550
2North16-1045
3North111-1420
4North115-2010
1East10-560
2East16-1530
3East116-2050
1West10-338
2West14-920
3West110-2010
4West121-3050
5West131-3590

 

The goal is to display just 

KeyFieldRangeCount
North10-550
North16-1045
North111-1420
North115-2010

 

and a Column Chart, but i have to include the Sort field too , to force it to display as per requirements. 

 

Issue 1- Based on my search, i cannot hide the Sort column from being displayed. (My workaround is to use white color as font to "mask it")

 

Issue 2: When converting to a graph, how to maintain the sort without adding the sort column in axis/legend .

 

I am unable to "sort by column" due to "there cant be more thatn one value in 'Sort' for the same value ......'

 

Any recommendations on how to achieve this ?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@PBI5851 

 

You must create a sort column because the range column is a text type, you cannot sort it like numbers. In addition, you need also use the sort column as the legend. My suggestion is create a tooltip to show the Range data, so when you hover over it the range data displays in the tooltip.

V-pazhen-msft_0-1612244323849.png

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@PBI5851 

 

You must create a sort column because the range column is a text type, you cannot sort it like numbers. In addition, you need also use the sort column as the legend. My suggestion is create a tooltip to show the Range data, so when you hover over it the range data displays in the tooltip.

V-pazhen-msft_0-1612244323849.png

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@PBI5851 , You have to create a sort column and mark it as sort column of another column and use that.

 

refer my video on that. https://www.youtube.com/watch?v=KK1zu4MBb-c

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

Sort column is not needed in visual

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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