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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
netanel
Post Prodigy
Post Prodigy

Año de pivote Por favor, ayuda

¡Hola a todos!
Tengo DATOS como en la imagen de color rojo
Y quiero convertirlo en el color amarillo

Probé algunas fórmulas y PIVOT y no funciona

Me encantaría una fórmula simple o ayudar con el tema

¡Gracias!

Capture2.PNG








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

Connect on Linkedin
linkedin.com/in/netanel-shriki
10 REPLIES 10
netanel
Post Prodigy
Post Prodigy

¿Solución por favor a alguien?








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

Connect on Linkedin
linkedin.com/in/netanel-shriki

@netanel

No es necesario realizar ninguna transformación para obtener los datos presentados en el diseño que deseaba. Simplemente agregue una columna de índice en Power Query e inserte un objeto Visual de matriz y, a continuación, coloque Year in Column, Index in Row y Amount in Value, Done.

Por favor, compruebe este archivo: https://1drv.ms/u/s!AmoScH5srsIYgYFhaaJI141dwgVkhg?e=4rap1Z

Marque esta respuesta como una solución si respondí a su pregunta

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Gracias tan mach! ¡Saluda a chico!








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

Connect on Linkedin
linkedin.com/in/netanel-shriki
Fowmy
Super User
Super User

Hola

Si desea hacerlo en Power Query, cargue la tabla en Power Query (es Table3 en mi ejemplo) con Year y Amount como columnas. Vaya a Advanced Editor borrar los códigos existentes y pegar el código que compartí.

let
    Source = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
    #"Duplicated Column" = Table.DuplicateColumn(Source, "Amount", "Amount - Copy"),
    #"Added Index" = Table.AddIndexColumn(#"Duplicated Column", "Index", 0, 1),
    #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Added Index", {{"Year", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(#"Added Index", {{"Year", type text}}, "en-US")[Year]), "Year", "Amount - Copy", List.Sum),
    #"Reordered Columns" = Table.ReorderColumns(#"Pivoted Column",{"Index", "2017", "2018", "2019", "Amount"}),
    #"Removed Columns" = Table.RemoveColumns(#"Reordered Columns",{"Index"})
in
    #"Removed Columns"

¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hola
Lo siento, pero no entendí qué hacer?
La fórmula es un poco poco clara para mí, y ¿dónde poner eso en la consulta?








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

Connect on Linkedin
linkedin.com/in/netanel-shriki

@netanel


He adjuntado el archivo para que usted aprenda y entienda:
https://1drv.ms/x/s!AmoScH5srsIYgYFctF_wc5uOXEjf8g?e=eYJEpI

Esto se hizo en Power Query, que está disponible en Power BI y Excel 2016+Above. Consulte algunos vídeos para obtener más información.
https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg

¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@netanel

El 1er enlace funciona, puedo enviarle por correo el archivo si no le importa enviarme el correo electrónico a mi PM.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

el primer enlace no funciona.

y el enlace número dos es saludar, pero no hacer el trabajo por mí....

Tanques








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

Connect on Linkedin
linkedin.com/in/netanel-shriki
Mariusz
Community Champion
Community Champion

Hola @netanel

¿Necesita esto solo como objeto visual Matrix o está buscando cambiar la estructura de datos subyacente?

Solo preguntar como la estructura de datos actual es una práctica recomendada y más fácil de manejar con DAX.

Saludos
Mariusz

Si este post ayuda, entonces considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

hey Mariusz

Lo necesito también para la matriz visual y también para la cebra Tabla Visual y para la mesa de páramo.

Pero no quiero cambiar mis datos el único cambio que necesito su powerbi interior.

¡Thanx para las respuestas rápidas!








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

Connect on Linkedin
linkedin.com/in/netanel-shriki

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Kudoed Authors