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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
coryan
New Member

Fechas graficos

Hola, quiero mostrar ventas de diciembre del año 2019 hasta julio 2020 por mes. Al ordenar el grafico por mes me pome diciembre del 2019 al final , es decir no considera que es del 2019 y deberia ir primero.. como arreglo esto? Gracias

1 ACCEPTED SOLUTION
EricHulshof
Solution Sage
Solution Sage

---- SPANISH BELOW
Hey, i will translate my answer to spanish with google translate, as im not a native spanish speaker. i hope you will understand. 
Your month column does not recognize it as being december 2019 i believe. What you can do i make a calculated column with the following code:

Year-Mon = FORMAT('Table'[Date], "YYYY-MM")

This makes a format like: 2019-12 2020-01 etc. 

You can then sort that and it will put december first.  

--- SPANISH

Hola, traduciré mi respuesta al español con google translate, ya que no soy un hablante nativo de español. espero que entiendas.

Su columna de mes no lo reconoce como diciembre de 2019, creo. Lo que puedes hacer hago una columna calculada con el siguiente código:

 

Year-Mon = FORMAT('Table'[Date], "YYYY-MM")

 

Esto hace un formato como: 2019-12 2020-01 etc.

Luego puede ordenar eso y pondrá primero a diciembre.


Quality over Quantity


Did I answer your question? Mark my post as a solution!


View solution in original post

5 REPLIES 5
v-eachen-msft
Community Support
Community Support

Hi @coryan ,

 

If your problem has been resolved, you could accept any useful reply as a solution to close the topic.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
EricHulshof
Solution Sage
Solution Sage

---- SPANISH BELOW
Hey, i will translate my answer to spanish with google translate, as im not a native spanish speaker. i hope you will understand. 
Your month column does not recognize it as being december 2019 i believe. What you can do i make a calculated column with the following code:

Year-Mon = FORMAT('Table'[Date], "YYYY-MM")

This makes a format like: 2019-12 2020-01 etc. 

You can then sort that and it will put december first.  

--- SPANISH

Hola, traduciré mi respuesta al español con google translate, ya que no soy un hablante nativo de español. espero que entiendas.

Su columna de mes no lo reconoce como diciembre de 2019, creo. Lo que puedes hacer hago una columna calculada con el siguiente código:

 

Year-Mon = FORMAT('Table'[Date], "YYYY-MM")

 

Esto hace un formato como: 2019-12 2020-01 etc.

Luego puede ordenar eso y pondrá primero a diciembre.


Quality over Quantity


Did I answer your question? Mark my post as a solution!


genius!
amitchandak
Super User
Super User

@coryan , Have sorted the visual on Month -year. Using three dots.

 

Hope you month year sort is correct using month year sort column

 

Month Year = FORMAT([Date],"mmmm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm")

Month Year has sort column Month Year sort

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

gracias!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.