Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hola
He estado tratando de paginar una API del Banco Mundial, pero no funciona. Básicamente, enumero cuántas páginas se enumerarán en la tabla final (que de forma predeterminada carga solo 50 filas), pero a medida que se invoca la función personalizada, aparece el siguiente mensaje de error:
DataFormat.Error: We found an unexpected character in the JSON input.
Details:
Value=<
Position=0
Aquí está el enlace al archivo.
¿Alguien sabe lo que estoy haciendo mal y cómo hacer que funcione?
Gracias por tu respuesta, @amitchandak . Fuiste de gran ayuda como de costumbre.
Muchas gracias por tu respuesta, thxalot kkkk
Realmente funcionó.
Bastante simple
let
Source = Xml.Tables(Web.Contents("http://api.worldbank.org/v2/country"))[#"Attribute:pages"]{0},
Pages = Table.FromList({"1"..Source}, Splitter.SplitByNothing(), {"Page"}),
#"API Call" = Table.AddColumn(Pages, "API Call", each Xml.Tables(Web.Contents("http://api.worldbank.org/v2/country?page="&[Page])))
in
#"API Call"
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!