Reply
Regular Visitor
Posts: 34
Registered: ‎03-10-2016

Created custom column that I'm referencing in a URL header, but schedule refresh won't work

I created a custom column in a query that I'm referencing in my URL header, but I can't get the data to refresh. I've added all instances of the URL to the Power BI Data Gateway, but still not luck. I think it has to do with the initial custom source, but I'm not sure.

 

Here's my query:

 

let
 Source = {"23842652136090008","23842656195890008"},
#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Added Custom" = Table.AddColumn(#"Converted to Table", "Custom", each Json.Document(Web.Contents("https://graph.facebook.com/v2.10/"&Text.From([Column1])&"/insights?access_token=EAAL6cA56RZAsBALLmtP...")))
in
#"Added Custom"

 

I can't add the full URL as a Web connection Data Gateway in the Powerbi.com site, because of the "&Text.From([Column1])&" portion.

 

Hopefully this makes sense...

 

Any thoughts? I'm stumped...

 

 

Thanks!

Moderator
Posts: 9,918
Registered: ‎03-10-2016

Re: Created custom column that I'm referencing in a URL header, but schedule refresh won't work

@echofoxtrot,

When you use function to obtain data from the source, refresh in Power BI Service is not supported. You can vote the following idea that make functions refreshable in Service.

https://ideas.powerbi.com/forums/265200-power-bi/suggestions/9312540-make-functions-refreshable-when...

Meanwhile, you can review the similar blog below about how to work around the function issue.

https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power...


Regards,
Lydia Zhang

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