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
Anonymous
Not applicable

Cambiar el orden de los meses para un ejercicio

Hola

Estoy trabajando en imágenes para ventas desde el año 2017 hasta el año 2019. Nuestro año fiscal es del 1 de diciembre al 30 de noviembre. Ya tenía un campo de mes, y creé un campo de mes numérico y usé 'Month ? FORMAT(DATE(1, [Numeral Month], 1), "MMM")' para cambiar el orden. Eso funcionó, pero ¿cómo cambiar el orden del mes numérico para comenzar con Dic como mes 1 a Nov como el mes 12? Sé que probablemente es muy simple, pero no puedo entenderlo. ¡Gracias! -Stephanie Screenshot.jpg

1 ACCEPTED SOLUTION

@SSPBI23 puede compartir el archivo pbix a través de un enlace de unidad o enviar directamente a mi correo electrónico (está en mi firma)



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

18 REPLIES 18
parry2k
Super User
Super User

@SSPBI23 añadir una columna calculada como esta

FY Month Number = 
IF ( Table[MonthNumber] = 12, 1, Table[MonthNumber] + 1 )

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hola @SSPBI23 ,

mira esto.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column#sort-using-the-sort-...

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Anonymous
Not applicable

Gracias por ayudar. Estuve usando el video para aprender initalmente a ordenar de manera deficiente para que los tres meses no estuvieran en roder alplabetical 🙂 Ya que nuestro año fisal es un mes por delante de la mayoría, tengo que cambiar el orden numérico ahora.

@SSPBI23 Entonces, ¿usó la lógica de número de mes fiscal que proporcioné?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

¡Hola! ¡Gracias por tu ayuda! En realidad encontré esta opción y la conseguí funcionar.

Month_Number de la
INTERRUPTOR (
[MES],
"Aug", 09,
"Dec", 01,
"Jul", 08,
"Nov", 12,
"Oct", 11,
"Sep", 10,
"Apr", 05,
"Feb", 03,
"Jan", 02,
"Mar", 04,
"Mayo", 06,
"Jun", 07
)
Definitivamente me tienes en el camino correcto. ¡Gracias de nuevo!

@SSPBI23 Eso funcionará, pero no voy a hacer eso más bien la expresión de columna que te di que funcionará, sólo tienes que calcular el número de mes a partir de tus datos y un solo código de línea funcionará más bien esta instrucción switch, aunque no es una gran cosa, no es algo va a cambiar nunca pero parece demasiado para una tarea tan simple.


De todos modos, tienes la solución, es lo que más importa.

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Si puede proporcionar instrucciones sobre cómo hacerlo, lo intentaré. Cuando lo probé orginalmente de su correo estaba recibiendo un error, así que probé el método de cambio.

¡Gracias!

@SSPBI23 Creo que en su tabla tiene una columna llamada Mes Numérico use que en la siguiente columna

FY Month Number = 
IF ( Table[Numeral Month] = 12, 1, Table[Numeral Month] + 1 )

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Buen mmorning @parry2k!

El formulario que proporcionó funcionó muy bien, gracias de nuevo. Tengo una pregunta, tengo el año fiscal (2017, 2018 y 2019) en mis datos y los meses (mes numérico, texto y número de mes fiscal). ¿Cómo puedo hacer que el número de mes para el año fiscal vaya en oder del año y mes del año fiscal?

Ie.

Nov 2017 n.o 1

Dic 2018 n.o 2

Ene 2018 n.o 3

Febrero 2018 4

hasta noviembre de 2019 - 24

¡Gracias! - Stephanie

@SSPBI23 crear una nueva columna de ordenación con la siguiente expresión y usarla para ordenar el mes fiscal

Fiscal Month Sort = 
FORMAT( Table[Fiscal Year], "####" ) & "-" & FOMAT( Table[Fiscal Month Number], "##" )

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Gracias @parry2k !

Cuando trato de ordenar obtengo este error

Image.JPG

@SSPBI23 valor de ordenación del mes fiscal no se ve correcto.

Fiscal Month Sort = 
FORMAT( Table[Fiscal Year], "####" ) & "-" & FOMAT( Table[Fiscal Month Number], "0#" )

El valor debe ser 2017-01, 2017-02, 2017-03 y así sucesivamente.....

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k Lo actualicé a:

Clasificación del mes fiscal: FORMAT(Tabla1[Año fiscal], "A" ) y "-" & FORMAT( Tabla1[Número de mes fY], "01" )
Image3.JPG
pero sigo recibiendo el mismo error. Además, los registros de dices de 2017 están saliendo como 2017-11 después de aplicar la fórmula.
image2.JPG

@SSPBI23 compartir el archivo pbix, eliminar la información confidencial antes de compartir.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k Puedo publicar pnly el archivo pbix en mi propio panel, no en la web para su visualización. ¿Hay alguna otra opción que pueda probar?

@SSPBI23 puede compartir el archivo pbix a través de un enlace de unidad o enviar directamente a mi correo electrónico (está en mi firma)



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k ¡Gran! Acabo de enviarte un correo electrónico. ¡¡Gracias!!

Anonymous
Not applicable

Muchas gracias!!! ¡Eres de gran ayuda! Realmente te agradezco que ayudes y tengas la paciencia para un novato como yo 🙂 tengo experiencia con otras plataformas que usan scripts, pero Power bi es un poco diferente. ¡Gracias de nuevo!

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.

Top Solution Authors