March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I want to import multiple data sets (tables) with some initial conditions.
for example - my SP returns 2 tables based on some condition:
create or alter proc sp_import_table
as
begin
select top 10 * from table1 where InsertDate > Dateadd(year,-1,getdate())
select * from table2 where active_id=1
end
go
exec sp_import_table
This above code executes in SQL client and throws results as 2 tables, while power BI returns only 1 data set (1st one)
How can I import both tables(or multiple tables) at one shot using SP (I am using SP to set filters at data source level). Is this possible?
Solved! Go to Solution.
Hi @narchans4u,
Power BI will not ingest more than one table at once returned from a SP.
Use the filter queries inside your SP to fetch data inside Power BI.
Basically, you will have two separate queries for two tables.
Prateek Raina
HI, so there is no way to do this?
Do I have then to create individual SP?
Thanks
Ok - thanks for your response.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |