- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Last 3 years data restriction in power query for the large dataset
Hi All,
I have a fact table containing 100 million records and i want restrict the data for last 3 years. How can i restrict the data in power query? I have date column available in the fact table. My data keeps on adding due to limitation in power bi i cannot use the direct query connection and i have used import method. Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

To restrict data to the last 3 years in Power Query for a large dataset with 100 million records in Power BI, you can follow these steps:
Open your Power BI Desktop file.
In the Power Query Editor, you can apply a filter to your date column to keep only the records from the last 3 years. Here's how you can do that:
a. Select the date column in your fact table.
b. Go to the "Home" tab in the Power Query Editor.
c. Click on the "Filter Rows" dropdown and select "Date Filters."
d. Choose "After" and then select the date that is 3 years ago from the current date. You can use a dynamic approach like this to calculate that date:
M Language Scripting:
Date.From(DateTime.LocalNow() - #duration(365*3, 0, 0, 0))
e. Click OK. This will filter your data to keep only records that are after the specified date.
After applying the filter, click "Close & Apply" to load the filtered data into your Power BI report.
Keep in mind that filtering such a large dataset might still take some time, and you should consider the performance impact of working with a dataset of this size in Power BI, especially in the import mode. Depending on your hardware and the complexity of your data model, you may experience longer refresh times and increased memory usage. It's a good practice to optimize your data model and use appropriate data compression techniques to improve performance in such cases.

Helpful resources
Join our Fabric User Panel
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Power BI Monthly Update - June 2025
Check out the June 2025 Power BI update to learn about new features.

User | Count |
---|---|
66 | |
59 | |
49 | |
36 | |
35 |
User | Count |
---|---|
84 | |
70 | |
58 | |
45 | |
44 |