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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Navsharma
Frequent Visitor

Direct Query in Report builder

We have a paginated report that pulls that using direct query. In the dataset, I passed the hard coded values to filter the data. It's working fine at execute the DAX to pull the filtered dataset. But once I published the report and I see that the reports pulls the full set of data instead of pulling the subset of data. 

 

Any idea if direct query will pull everything and then will put the filters on the whole dataset instead of filter applied in the dax itself.

3 REPLIES 3
d_gosbell
Super User
Super User

How are you setting the filter? If you are using the filters collection on the paginated dataset object then the behaviour is expected. If you want to push the filter down to the source you need to map your report parameter to a query parameter and use the parameter in your DAX query.

johnbasha33
Super User
Super User

@Navsharma 

In Power BI, when using DirectQuery mode, the filtering behavior depends on various factors, including the data source, the way filters are applied in the dataset, and how the data model is structured. Here's what you need to consider:

  1. DirectQuery Limitations: DirectQuery mode retrieves data directly from the underlying data source (e.g., SQL Server, Analysis Services) in real-time, based on the user's interactions with the report. However, DirectQuery has some limitations compared to Import mode, particularly in terms of performance optimization and certain query capabilities.

  2. Query Folding: Query folding is a feature in Power Query that helps optimize query performance by pushing filter and transformation operations back to the data source whenever possible. However, not all operations can be folded back to the data source, especially if they involve complex transformations or custom DAX expressions.

  3. Filtering Behavior: When you apply filters in your dataset using DAX expressions, Power BI attempts to optimize the query and push the filter operation to the data source. However, if the data source does not support certain types of filtering or if the query cannot be folded back to the data source, Power BI may retrieve the full dataset and apply the filter locally.

    Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

Anonymous
Not applicable

Hi @Navsharma ,

If your data source  is PBI semantic model, please filter data in Powr Query then load into Power BI Desktop, then using this semantic model to create paginated report.

 

Best regards,
Community Support Team_Binbin Yu
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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.