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.
Hello Everyone,
I'm looking for an apporach to load data into Power BI from list of SQL queries stored in Postgres database table.
Sr | Query |
1 | Select .... |
2 | Select .... |
3 | Select .... |
4 | Select .... |
Essentially, we need to automate query loading process as list of query will increase/decrease with time & manual addition would not be permanent solution.
Any inputs if this can be achived & appreciate if you can share your experiences.
Solved! Go to Solution.
Hi @RahulT01,
I think you can try to parameterized connection string to achieve two steps getting data operation.
At the first, you can getting data from the SQL table that stored the t-SQL query lists. The second, you can use query parameters to control and pick up specific row values to use them as conditons in a new query step with data connector to getting data.
Table.SelectRows - PowerQuery M | Microsoft Learn
Regards,
Xiaoxin Sheng
Hi @RahulT01,
I think you can try to parameterized connection string to achieve two steps getting data operation.
At the first, you can getting data from the SQL table that stored the t-SQL query lists. The second, you can use query parameters to control and pick up specific row values to use them as conditons in a new query step with data connector to getting data.
Table.SelectRows - PowerQuery M | Microsoft Learn
Regards,
Xiaoxin Sheng
Do that in a view in your database, or use Incremental Refresh if your query partitions support that.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
3 | |
1 | |
1 | |
1 |
User | Count |
---|---|
25 | |
3 | |
2 | |
2 | |
2 |