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

Be 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

Reply
Haider121
Frequent Visitor

Sort a column chart by x axis data category

I have data like this 

<10	10+	50+	75+	100+	Not at Customer	DateKey	InsertTimestamp
789	1303	458	242	98	2441	20170111	2017-01-11 10:07:11.620
742	1492	658	328	139	2560	20161228	2016-12-28 00:00:00.000
758	1509	666	348	190	2660	20161221	2016-12-21 00:00:00.000
766	1529	669	399	250	2760	20161214	2016-12-14 00:00:00.000
792	1725	690	400	360	2360	20161207	2016-12-07 00:00:00.000
800	1824	750	500	470	2260	20161130	2016-11-30 00:00:00.000
825	1700	890	600	580	2160	20161123	2016-11-23 00:00:00.000
852	1600	850	290	426	2460	20161117	2016-11-17 00:00:00.000
890	1505	700	333	400	2960	20161109	2016-11-09 00:00:00.000
642	1400	600	300	120	2550	20170104	2017-01-04 00:00:00.000

which plots toa BI chart like so

stuff.jpg

What I want to do is sort the bottom column out as <10 , 10 + 50 + 75 + and then 100 +, not at customer.

 

Since I have pivoted the data to get it to the table above I dont have the category now in one column for a sort order as is the norm, any ideas on how to do this? 

ie, Normally one would have something like this

 daysbanding    no of products                    sortorder

< 10                       71                                       1
10+                        702                                      2
50 +                       462

but to get the chart I want I need the data to be like the first table.

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Haider121,

 

If you use the live mode to connect, you can only group rank at service side.

If you use the import mode, you can refer to below link which about group ranking:

Raking within a group

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

8 REPLIES 8
v-shex-msft
Community Support
Community Support

Hi @Haider121,

 

If you use the live mode to connect, you can only group rank at service side.

If you use the import mode, you can refer to below link which about group ranking:

Raking within a group

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Seth_C_Bauer
Community Champion
Community Champion

@Haider121 It sounds like Grouping/binning might be your solution. Take a look here


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Sorry I forgot to say my data is coming froma SSAS tabular model so its not a dataset within powerBI that can be grouped or binned.

 

That option does not appear when selecting the columns for me.

Anonymous
Not applicable

@Haider121 do you work in the Channel Islands?

no I work near manchester

Anonymous
Not applicable

Apologies...I thought you might have been an ex-work colleague with the surname Haider.

np,lol, thats my forename

Anonymous
Not applicable

 I'm completely wrong on all counts then. haha.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.