Forum Discussion

ANerat's avatar
ANerat
Regular Visitor
5 years ago
Solved

Iterate SQL query based on list of sources in another table

Hi,   I'm executing identical SELECT statements from different servers. I'm using the approach below. But as you can see it's a problem if number of servers go up.   My current solution for n num...
  • KNP's avatar
    KNP
    5 years ago

    I did a little more digging (and testing). Looks like you might be running into this issue.

    https://aka.ms/dynamic-data-sources 

     

    The only way to get around this is to use parameters and as far as I know, you can't use dynamic parameters with a SQL data source. So you'd be back to square 1 with a solution that isn't dynamic having to define each source as a parameter. 

     

    You may be able to do something with dynamic SQL, unfortunately I don't have the time to try. To be honest, even if that worked you'd probably want to ask the question "should I?" for obvious reasons.

     

    It looks like the 'E' in your ETL may need to be external to Power BI.