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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Berl21
Helper III
Helper III

Using Direct Query and filtering on a column

Hi,

 

I want to use a date parameter within Power Query. I read that doing so has been possible since about a year, but only in Direct Query.

 

I uploaded data with a SQL in Direct Query and started by using a simple filter on a column (right click, function "date is"). This creates the following error message:

 

Berl21_0-1687270633229.png

The message tells me Direct Query doesn't support the step I made and that I need to switch back to Import Mode. I don't understand why. How can I solve this?

 

Thanks,

 

Pauline.

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Berl21 ,

 

It sounds like you are trying to use a date parameter in Power Query while working in Direct Query mode, but encountering an error message that Direct Query does not support the step you are trying to make.

One possible solution is to switch to Import mode, as suggested by the error message. In Import mode, you can use date parameters in Power Query without encountering the same limitations as Direct Query mode.

If you need to continue working in Direct Query mode, you may need to explore other options for filtering and manipulating your data that are supported in Direct Query mode. One option is to use SQL code to filter your data before loading it into Power Query. Another option is to use Power BI's built-in query editor to filter and manipulate your data in ways that are supported in Direct Query mode.

 

Refer to:

DirectQuery in Power BI - Power BI | Microsoft Learn

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @Berl21 ,

 

It sounds like you are trying to use a date parameter in Power Query while working in Direct Query mode, but encountering an error message that Direct Query does not support the step you are trying to make.

One possible solution is to switch to Import mode, as suggested by the error message. In Import mode, you can use date parameters in Power Query without encountering the same limitations as Direct Query mode.

If you need to continue working in Direct Query mode, you may need to explore other options for filtering and manipulating your data that are supported in Direct Query mode. One option is to use SQL code to filter your data before loading it into Power Query. Another option is to use Power BI's built-in query editor to filter and manipulate your data in ways that are supported in Direct Query mode.

 

Refer to:

DirectQuery in Power BI - Power BI | Microsoft Learn

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.