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
ECorona
Frequent Visitor

Is there any way to perform nested queries from a connector or do the in an automatic/scripted mode?

Hello everybody: 
I have made a custom connector that perform queries to several endpoints that basically maps an data base into a REST API, at this moment the connector works pretty well, but I have found an "issue", performing a query where I need the ID from another table (I have an endpoint per table) I need to get data from table 1 first, then filter the IDs and save them in a table, the copy and paste them somewhere else and then use one ID at the time to retrive data from table 2 this becomes a really repetive task. I'm making a report from several records, but this is taking too much time. 

 

In MySQL this could be easily solved performing nested queries but here the first solution that comes to my mind is to find a way to perform the get data processes automatically, is there way to retrieve multiple queries in a automatic/scripted way using just Power BI once I have authenticated in my custom connector? 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @ECorona,

AFAIK, current the data driver already support to use sub query in your t-SQL query.

If you mean to send multiple queries and get different result tables the same time, current power bi data connector may not support.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @ECorona,

AFAIK, current the data driver already support to use sub query in your t-SQL query.

If you mean to send multiple queries and get different result tables the same time, current power bi data connector may not support.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help 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.