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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Rehab_hassan
Frequent Visitor

limit data range when using the import method

Hello all,

 

my coroporate data is for many years and I need to limit the import to the last 5 years so that it wont take much space. Any idea how i can do that?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Rehab_hassan ,

Check this option wile Get Data->SQL server
2019-10-24 13_30_20-SQL Server database.png

Regards,
Amit

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Rehab_hassan ,

AFAIK, some of the data connectors support to add advanced option queries to filter on received data before import data to power bi. (e.g. SQL, oracle...)

Power BI Introduction: Working with SQL Server data in Power BI Desktop — Part 5

For dynamic date filter, you can consider splicing query string with query parameters or m query DateTime functions.

Deep Dive into Query Parameters and Power BI Templates

dynamic date filter

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

HI @Rehab_hassan ,

If you are using import mode, you can write  SQL expression to filter the data before importing into Power BI desktop.

Or, you can filter the data inside Power query editor and then do close and apply.

Regards,
Amit

Any hints about the sql expression to limit the date before importing it?

Anonymous
Not applicable

Hi @Rehab_hassan ,

Check this option wile Get Data->SQL server
2019-10-24 13_30_20-SQL Server database.png

Regards,
Amit

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.