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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.