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

Columnas de unpivot - Limpieza de datos

Tengo una mesa de Excel que necesita mucha limpieza. Estoy tratando de usar unpivot y estoy en una pérdida total de cómo incluso empezar. Mis datos se ven así:

---------------------------------------DATE1----------------------------------DATE2---------------------------------

Role--------Project-----Person------AVL---------BDG---------NET---------AVL---------BDG---------NET---------

ENG--------P1----------Sam--------10-----------8-------------2------------8------------5-------------3-------------

ENG--------P2----------Sam--------8------------7-------------1------------3------------2-------------1-------------

ENG--------P1----------Tom--------11-----------7------------------------4------------2-----------------------1--------------------------

Tenga en cuenta que las fechas son sólo en la celda directamente por encima de AVL, pero yo también aplico a BDG y NET.

Necesito que los datos se vean así:

Role--------Project----Person-----Type-------Date-------Value-------

ENG--------P1---------Sam--------AVL--------DATE1-----10----------

ENG--------P1---------Sam--------BDG-------DATE1------8-----------

ENG--------P1---------Sam--------NET-------DATE1-------2----------

ENG--------P1---------Sam--------AVL--------DATE2------8----------

ENG--------P1---------Sam--------BDG-------DATE2------5-----------

ENG--------P1---------Sam--------NET-------DATE2-------3----------

ENG--------P2---------Sam--------AVL--------DATE1------8----------

ENG--------P2---------Sam--------BDG-------DATE1------7-----------

ENG--------P2---------Sam--------NET-------DATE1-------1----------

etcetera...

¿Alguien puede apuntarme en la dirección correcta?

3 ACCEPTED SOLUTIONS
camargos88
Community Champion
Community Champion

@mattbstrong ,

Compruebe el archivo adjunto.

Capture.PNG



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

Proud to be a Super User!



View solution in original post

CNENFRNL
Community Champion
Community Champion

Hola, @mattbstrong, la parte difícil es dividir fechas y asignarlas a cada grupo de tipos. Es posible que desee probar los pasos aplicados en el archivo adjunto.

Screenshot 2020-10-20 011722.png

Screenshot 2020-10-20 011558.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

Anonymous
Not applicable

@CNENFRNL ,

Gracias. Esta solución también funciona y en menos pasos que el post que acepté como la solución. He seleccionado el otro post porque respondieron primero.

View solution in original post

4 REPLIES 4
CNENFRNL
Community Champion
Community Champion

Hola, @mattbstrong, la parte difícil es dividir fechas y asignarlas a cada grupo de tipos. Es posible que desee probar los pasos aplicados en el archivo adjunto.

Screenshot 2020-10-20 011722.png

Screenshot 2020-10-20 011558.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Anonymous
Not applicable

@CNENFRNL ,

Gracias. Esta solución también funciona y en menos pasos que el post que acepté como la solución. He seleccionado el otro post porque respondieron primero.

camargos88
Community Champion
Community Champion

@mattbstrong ,

Compruebe el archivo adjunto.

Capture.PNG



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

Proud to be a Super User!



Anonymous
Not applicable

@camargos88 ,

¡Gracias! Esto es exactamente lo que necesitaba y aprendí mucho dando un paso a través de su archivo en el editor de consultas! Fue un error para mí que estuve hasta las 4:15 a.m. anoche trabajando. Me has desenganchado.

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.