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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Column does not sort correctly

I have the OrderMonthName field in the dates table that doesn't sort me correctly. I have this field sorted by the column Month, column that is numeric from 1 to 12

apenaranda_0-1675937637735.png

apenaranda_1-1675937648220.png

As seen in the capture, first puts April followed by August... This is not the correct order.

Do you know what it can be?

Thank you

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Well, what you say is fine, although where it goes wrong is a measure:

The measure looks at year, months and a couple of other fields that I am selecting and shows them to me.

ResumenFiltrosUEstadistica =

var anio = SELECTEDVALUE(Fechas[Año])

RETURN

CONCATENATE("Año: ",CONCATENATE(anio,CONCATENATE(UNICHAR(10),CONCATENATE("Mes: ",CONCATENATE(CONCATENATEX(VALUES(Fechas[NombreMesOrdenado]),Fechas[NombreMesOrdenado],", ",Fechas[NombreMesOrdenado]),CONCATENATE(UNICHAR(10),CONCATENATE("Ambito: ",CONCATENATEX(VALUES(Clientes_sql[Ambito]),Clientes_sql[Ambito],", ",Clientes_sql[Ambito],ASC))))))))

When it shows the result it shows them to me as follows:

apenaranda_0-1675938551578.png

selimovd
Super User
Super User

Hey @Syndicate_Admin ,

 

the order in the filter option is always alphabetical. But in the report it will sort properly.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.