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

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
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.