Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Querying the Database

Hi everyone,

 

I'm new to Power BI,

Can anyone please tell me If I'm trying to pull the data connecting to any database, say MS sql server, am I extracting all the data into Power BI and execute the query so as to pull the required data (Which I think not) or am I only extracting the required data after querying, into Power BI.

 

Let's say the server has 2GB of data and the required data out of it is just 100MB,

Now am I Extracting the whole 2GB data into Power BI so as to execute the query.

 

 

Like I said I'm pretty new to Power BI so Please don't mind if it is really silly.

 

 

Thanks

2 ACCEPTED SOLUTIONS
Baskar
Resident Rockstar
Resident Rockstar

Cool Dude,

 

Yep we can do in both ways in Database end as well as Power BI data modelling using Power Query.

 

The Best way is u could restrict the data in Database ,

it will give u best performance and

Reduce the file size as well.

 

let me know if any help

View solution in original post

Anonymous
Not applicable

Hi @Anonymous,

You can write T-SQL statements in the following textbox to extract specific data from SQL Server database and import these data to Power BI Desktop, it will improve performance for your current Power BI Desktop file .

1.PNG


Thanks,
Lydia Zhang

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

You can write T-SQL statements in the following textbox to extract specific data from SQL Server database and import these data to Power BI Desktop, it will improve performance for your current Power BI Desktop file .

1.PNG


Thanks,
Lydia Zhang

Baskar
Resident Rockstar
Resident Rockstar

Cool Dude,

 

Yep we can do in both ways in Database end as well as Power BI data modelling using Power Query.

 

The Best way is u could restrict the data in Database ,

it will give u best performance and

Reduce the file size as well.

 

let me know if any help

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors