cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors