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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
BigLo
Helper II
Helper II

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 ;).
chrome-9xf-Zagzel-B

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.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

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.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors