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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
manojk_pbi
Helper V
Helper V

Concatenated string or dynamic query in Power BI Service

Hi Friends,

 

I am using data from collections in TFS server, here i am concatenating the url on need basis and want to extract the data. This works fine in desktop. The is not working when deployed in service. I get the below error message. What could be the reason here for this failure and how this can be addressed. 

expecting some suggestions from expertise.

 

Thanks

4 REPLIES 4
manojk_pbi
Helper V
Helper V

if your question is about data gateway in desktop, not installed. I haven't installed any components

Greg_Deckler
Community Champion
Community Champion

@manojk_pbi What's the failure message?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Sorry, missed to attach in earlier post.

I am using the below function to call by using the URL of tfs collection and the queryID used in TFS for specific requirement. The same works when i directly use the plain query without all concatenation/variables

"https://<Org>/tfs/<Collection>/_apis/wit/wiql/<QueryID>?api-version=6.0"

 

function used : 

(WIUrl as text,WIQueryID as text, WICollection as text) as table =>
let
Source = Json.Document(Web.Contents(WIUrl,
[RelativePath=WICollection& "/_apis/wit/wiql/"&(WIQueryID)&"?api-version=6.0"])),
workItems = Source[workItems],
#"Converted to Table" = Table.FromList(workItems, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"id", "url"}, {"Column1.id", "Column1.url"})
in
#"Expanded Column1"

manojk_pbi_0-1712057185877.png

 

@manojk_pbi Hmm, doesn't seem like it should require a gateway but do you have a data gateway installed?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.