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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.