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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ddalton
Resolver I
Resolver I

Limiting data import when switching from DirectQuery

Hi, 

 

I need to switch my dataset from DirectQuery (DQ) mode to Import mode (as per a notice in Power BI Desktop telling me that a step is not supported by DQ mode).

 

My concern is that the database tables contain years worth of data, and I do not want all of that data imported. While I'm aware that I can transform to essentially filter the results by date or amend the SQL query, I don't want this value to be fixed.

 

Is it possible to use a relative reference frame so that I can essentially just import the last 6 months etc. of data based on today's date?

 

Alternatively, I can use a parameter but once I'm happy with dataset I'd like to start creating reports in Service and I would like the date range that the reports are capturing to be dynamic (i.e., that it could be changed by the Service user). Not sure how easy that is to do either? 

1 ACCEPTED SOLUTION
ddalton
Resolver I
Resolver I

Date filtering (i.e., limiting the data loaded into the dataset) and the use of slicers (dynamic date filtering for visuals) seem to do the trick for now. 

View solution in original post

3 REPLIES 3
ddalton
Resolver I
Resolver I

Date filtering (i.e., limiting the data loaded into the dataset) and the use of slicers (dynamic date filtering for visuals) seem to do the trick for now. 

ddalton
Resolver I
Resolver I

So, for now, I'm using a relative filter on the respective date/time columns in the dataset to filter for 6 months worth of data but I'm still hoping for some advice, if anyone has any other suggestions - particularly regarding my last statement i.e., allowing Service users to change the date frame. 

I've also just discovered slicers which appear to allow for the filtering of graph data by date, which I presume can be used by Service users viewing the reports online. 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors