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
devfrogmi
Frequent Visitor

Pivotear Tabla en el Editor de Datos

Hola! Tengo una tabla que trae los datos en filas de esta manera:

devfrogmi_1-1597353069715.png

 

Y necesito dejar las opciones de "Pregunta" en columnas y que se muestren los nombres hacia abajo. Por cada evento hay un shopper, un encargado y un subgerente. Alguien sabe como puedo lograrlo? Así necesito que quede:

 

devfrogmi_2-1597353156959.png

 

 

2 ACCEPTED SOLUTIONS
devfrogmi
Frequent Visitor

Yes! that's what i want. But I need to have it like this in my data, not only in the visualization. Do you know how can I do that?

 

Regards,

View solution in original post

mahoneypat
Employee
Employee

It is usually better to leave data unpivoted, but you can pivot your data as follows in the query editor.

 

1.  Remove the Requesta column (you have names in two columns)

2. Select the Pregunta column, and on the Transform tab, click on the Pivot Column button

3.  In the pop-up window, choose Nombre as the Values column and under Advanced Options choose Don't Aggregate

mahoneypat_0-1597664315193.png

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Employee
Employee

It is usually better to leave data unpivoted, but you can pivot your data as follows in the query editor.

 

1.  Remove the Requesta column (you have names in two columns)

2. Select the Pregunta column, and on the Transform tab, click on the Pivot Column button

3.  In the pop-up window, choose Nombre as the Values column and under Advanced Options choose Don't Aggregate

mahoneypat_0-1597664315193.png

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


dax
Community Support
Community Support

Hi @devfrogmi , 

I think you could put this in Matrix like my sample. ID in Row, Pregunta in Column, Respuesta in Data 

821.PNG820.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

devfrogmi
Frequent Visitor

Yes! that's what i want. But I need to have it like this in my data, not only in the visualization. Do you know how can I do that?

 

Regards,

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
Top Kudoed Authors