Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

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!

1 REPLY 1
v-yuezhe-msft
Employee
Employee

@Anonymous,

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-the-data-source-is

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-bi/


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.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.