Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 @Anonymous,
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 @Anonymous,
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.
User | Count |
---|---|
5 | |
4 | |
3 | |
2 | |
2 |
User | Count |
---|---|
8 | |
7 | |
4 | |
4 | |
4 |