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
vwiles84
Helper III
Helper III

Transformación de datos de API

Me he conectado a una API en el escritorio de Power BI. Al transformar los datos, puedo encubrirlos en una tabla, y cuando lo hago obtengo una lista corta con una columna de Nombre y Valor.

Capture1.PNG

Expando los valores a filas y obtengo lo siguiente:

Capture2.PNG

Mi pregunta es, ¿cómo transformo estas filas y columnas para obtener los valores reales en el conjunto de datos?

6 REPLIES 6
v-eachen-msft
Community Support
Community Support

Hola @vwiles84 ,

Aquí hay un caso resuelto que es similar al suyo para su referencia.

https://community.powerbi.com/t5/Desktop/Extracting-Data-from-API-and-transform-into-tables/m-p/5696...

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Intenté eso y me dieron un error:

Capture1.PNG

Así que no estoy seguro de si ingresé la sintaxis incorrecta para el comando expandall como el ejemplo indica ExpandAllQuandI, que no es lo que estoy tratando de usar, así que lo cambié a solo ExpandAll. Entonces este es el error que recibo.

parry2k
Super User
Super User

@vwiles84 parece que la API está devolviendo diferentes tipos de datos para cada nombre, creo que necesita dividirlo en tablas diferentes (basadas en el nombre) y luego expandirlo desde allí.

Como una tabla será la donación, una para las clases de productos, una para los empleados, ya que cada uno de estos nombres están enviando diferentes tipos de datos.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

¿Puedo hacerlo en la consulta de energía o tengo que desglosar la llamada api en niveles.

@vwiles84 Lo haré en la consulta de energía. Haga clic con el botón derecho en el conjunto de resultados y, a continuación, seleccione "Referencia" creará otra consulta con el conjunto de resultados, filtrará en el empleado y hará lo similar para otros nombres, haga referencia y, a continuación, filtre el siguiente nombre y, a continuación, puede expandir consultas individuales.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Cuando hago clic derecho, no tengo referencia. Sólo tengo COpy, Drill down y agregar como nueva consulta. Cuando agrego como una nueva consulta, obtengo lo siguiente:

Capture2.PNG

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.