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
BigLo
Helper III
Helper III

Filter data before import

Hello,

 

In a report I import 3 json files that I'm not owner.
In my power query I import all the data then I filter on a field using a parameter. With to this filter I drop 90% of the data.
Wouldn't it be possible (and cleaner) to be able to filter before importing and only load the data that interests me?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @BigLo ,

 

Unfortunately, currently Jason files cannot be filtered before being imported. Like SQL Server, you can enter the query statement in the following SQL statement before importing to achieve pre-filtering.

vstephenmsft_1-1637824061562.png

You can import Jason files into SQL server, and then Power BI connects to SQL server to implement pre-filtering.

 

 

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @BigLo ,

 

Unfortunately, currently Jason files cannot be filtered before being imported. Like SQL Server, you can enter the query statement in the following SQL statement before importing to achieve pre-filtering.

vstephenmsft_1-1637824061562.png

You can import Jason files into SQL server, and then Power BI connects to SQL server to implement pre-filtering.

 

 

Best Regards,

Stephen Tao

 

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

KNP
Super User
Super User

How do you expect us to answer that? Yes?

Show us your query code at least so we can offer some suggestions.

Is the filter step the first thing done after the connection to the source files?

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!

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.