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

Mejor enfoque para construir un gráfico de líneas de valor mensual

Hola

Para el último día estoy probando un mes de gráfico simple por valor durante 15 meses y siempre enfrentando uno de los siguientes problemas. Sorprendentemente empecé a creer que Excel es mucho más amigable que el poder bi... De cualquier forma

Cuando lo importo desde excel recibo un problema que no muestra el mes y el año en la tabla y acumular meses por debajo de un año, también suman los mismos meses ex 19 de enero y enero de 2020

Traté de ingresar manualmente en power BI y encontré los siguientes problemas, puedo ordenar los meses en el gráfico cualquier consejo sobre cuál es el mejor enfoque?

Ca.PNGCapture.JPG

1 ACCEPTED SOLUTION

Hola @abu7amzah ,

Date.Month debería ayudarle en su escenario. Para crear una columna personalizada en una consulta de energía como esa.

Date.Month([date])

dm.PNG

Código M para su referencia.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwtNQ3MAQipVgdGNcIiJRiYwE=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type date}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Column1", "date"}}),
    #"Added Custom" = Table.AddColumn(#"Renamed Columns", "Custom", each Date.Month([date]))
in
    #"Added Custom"

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

5 REPLIES 5
parry2k
Super User
Super User

@abu7amzah tieneque ordenar su columna de nombre de mes con otra columna y en ese caso será el número de mes. estos son los pasos:

- añadir una nueva columna en la tabla

Month Number = MONTH ( Table[Date] )

- Seleccionar columna de nombre de mes

- ir a las herramientas de columna en el menú y seleccionar ordenar por

- desde el menú desplegable elegir el número de mes

y eso lo hará.

Me 💖Kudos 🙂 si mi solución me ayudara. 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 Tengo el error adjunto. Empecé a aprender a usar el software ayer, así que no tengo idea de lo que me dio la fórmula que me dio significa. Creo que necesito empezar a trabajar en ello, pero ¿por qué he detectado el error?

Hola @abu7amzah ,

Date.Month debería ayudarle en su escenario. Para crear una columna personalizada en una consulta de energía como esa.

Date.Month([date])

dm.PNG

Código M para su referencia.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwtNQ3MAQipVgdGNcIiJRiYwE=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type date}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Column1", "date"}}),
    #"Added Custom" = Table.AddColumn(#"Renamed Columns", "Custom", each Date.Month([date]))
in
    #"Added Custom"

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

m.PNG

@abu7amzah OK no hay problema, está en el editor de consultas, agregar como una expresión dax y la captura de pantalla a continuación. También puede hacerlo en la consulta de energía, pero vamos a mantenernos al menos por ahora.

image.png



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.

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.