Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hola,
He agregado una consulta en PowerQuery con origen en Excel. Tras hacer diferentes transformaciones, para poder tratarla apropiadamente con PowerBI, obtengo una columna con dos variables (m2 e importe) y otra variable valor para cada una de las filas.
A partir de esta situación, me gustaría tener una columna para m2 con sus valores y otra con los importes.
La situación es la siguiente:
PAÍS | VARIABLE | VALOR |
España | m2 | 10 |
España | importe | 100 |
Y me gustaría obtener algo similar a esto:
PAIS | m2 | importe |
España | 10 | 100 |
Tras hacer diferentes pruebas, he generado una variables única de código único concatenando el resto de columnas. Luego he duplicado la consulta, para en cada una dejar sólo m2 o importe, y finalmente he combinado ambas consultas para poder obtener el restultado final.
¿Hay alguna opción de obtener este resultado aplicando menos pasos? He probado con diferentes opciones de transformación (eliminar dinamización de consultas) pero nunca obtengo los resultados esperados.
Gracias. Un saludo,
Jacob
Solved! Go to Solution.
Hi @jacob2102 ,
Try to us pivot. Select the VARIABLE column, then click Pivot Column, then set as shown in the figure below, click OK
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @jacob2102 ,
Try to us pivot. Select the VARIABLE column, then click Pivot Column, then set as shown in the figure below, click OK
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |