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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Syndicate_Admin
Administrator
Administrator

Error ordering Sizes

I have a table that I want to represent in an orderly way according to the Size, but different sizes can be registered and I get the error "You can not sort by the column "Letter" "by Ntalla". You can not have more than one value in "Ntalla" .... Choose a different column to sort or update the data in "Ntalla". In a matrix I do not get the order I require

Well the Table has the order in which they should come out.

34571ctdTallaOOrdenTalla
345713832
345716343
345716354
345716365
345718976
345718987
3457163108
34670147XS1
34670227S2
34670325M3
34670322L4
34670220XL5
34670631X6
34670302X7
34670203x8
34649B100S1

It comes out like this, but it should be 2.3 etc ... or S, M,L ... since the column with which it should be ordered is that of Ntalla, I have not achieved 😞 it

Matriz sin ordenArray without order

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Syndicate_Admin ,

 

According to your statement, I think you want to sort [TallaO] column by [OrdenTalla]. However, I find there are multiple duplicates sort numbers in [OrdenTalla] for different [TallaO].

For example:

TallaO = 10, OrdenTalla = 8

TallaO = 3x, OrdenTalla = 8

This will make Power BI confused which one should be sorted in 8.

So you will get error when you sort [TallaO] column by [OrdenTalla]. I can reproduce your issue in my test.

RicoZhou_0-1654581953350.png

I find that there are multiple sort number when TallaO equal to S. 

TallaO = S, OrdenTalla = 1

TallaO = S, OrdenTalla = 2

This will casue error as well. Due to this situation, we can not add another new sort to achieve your goal.

So I suggest you to add [OrdenTalla] in Matrix column field in top level.

RicoZhou_1-1654582136119.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

thank you I understood what the problem was.

Anonymous
Not applicable

Hi @Syndicate_Admin ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your problem or share me with your pbix file without sensitive data.


Best Regards,

Rico Zhou

amitchandak
Super User
Super User

@Syndicate_Admin , Create a new column like this and use that as sort column

 



new OrdenTalla =
if( not [OrdenTalla] in {"S", "XS", "M", "L", "XL", "1X", "2X", "3X", [new OrdenTalla] + 20)

 

Modify as per need

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

Graccias me sale el error Column 'new OrdenTalla' cannot be found or may not be used in this expression.

I understand that if the Size number is not in the matrix it should be increased or create a larger number?

Anonymous
Not applicable

Hi @Syndicate_Admin ,

 

According to your statement, I think you want to sort [TallaO] column by [OrdenTalla]. However, I find there are multiple duplicates sort numbers in [OrdenTalla] for different [TallaO].

For example:

TallaO = 10, OrdenTalla = 8

TallaO = 3x, OrdenTalla = 8

This will make Power BI confused which one should be sorted in 8.

So you will get error when you sort [TallaO] column by [OrdenTalla]. I can reproduce your issue in my test.

RicoZhou_0-1654581953350.png

I find that there are multiple sort number when TallaO equal to S. 

TallaO = S, OrdenTalla = 1

TallaO = S, OrdenTalla = 2

This will casue error as well. Due to this situation, we can not add another new sort to achieve your goal.

So I suggest you to add [OrdenTalla] in Matrix column field in top level.

RicoZhou_1-1654582136119.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.