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

FIGHTING con XML incompleto

Estoy luchando en este momento con una API que está recuperando datos XML incompletos. Lo que quiero decir con esto es que podría esperar recuperar recoreds de Nombre, Apellido, Título, Teléfono.

Si Title está en blanco, el XML no envía un valor en blanco. Si faltan todos mis resultados "actuales" Título, la columna no se agregará. Por lo tanto, no puedo ejecutar código para cambiar el nombre de "Título" a "Título bonito". Sin embargo, sé que los resultados de mañana podrían tener Título. ¿Cómo puedo forzar a Power BI a tener siempre esta columna, rergardless si se retoma en el XML que se expande (por el pequeño icono de expansión junto al campo).

Muy apreciado, esto ha sido una fuente interminable de frustración hoy...

4 REPLIES 4
MFelix
Super User
Super User

Hola @bflury ,

La mejor persona para responderle esta es @ImkeF, uno de los mejores usuarios del lenguaje M aquí.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Hola @bflury ,

Hay un 3er parámetro opcional que puede usar. Sólo ajusta tu código un poco así:

image.png

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Anonymous
Not applicable

Perfecto. ¡Gracias!

@ImkeF Siempre aprendiendo del maestro en M también usará esto.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



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.