Forum Discussion
Pivotear Tabla en el Editor de Datos
Hola! Tengo una tabla que trae los datos en filas de esta manera:
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:
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,
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
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
3 Replies
- devfrogmiFrequent 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,
- mahoneypatMicrosoft 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
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat