cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rehab_hassan Frequent Visitor
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

Accepted Solutions

Re: limit data range when using the import method

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
Highlighted

Re: limit data range when using the import method

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

Community Support Team
Community Support Team

Re: limit data range when using the import method

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

Community Support Team _ Xiaoxin Sheng
If this post helps, please consider Accept it as the solution to help the other members find it more quickly
Learning resources: Power BI
Rehab_hassan Frequent Visitor
Frequent Visitor

Re: limit data range when using the import method

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

Re: limit data range when using the import method

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

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors