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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
TANTR
Regular Visitor

Filtering before import of data

Hi,

 

I have a on-premise Hive table that has close to 100M records, out of which ~10,000 belongs to a certain category. I would like to import only these 10,000 records using Power BI Desktop. I have tried indicating the optional sql statement e.g. select * from hive_table where category = 'ABC' at connection. However, it fails to pick up any records. I have also tried to filter the records after import, but it seems that only 20M of the records are imported hence it's not the full base. Does anyone have any other suggestions?

 

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @TANTR 

 

You may try the following steps.

Here is my example.

Plan:

c1.png

 

You may create a filter which gets the record with 'Days' = 1.

c2.png

 

Then you may right-click the 'Filter Rows' and click 'View Native Query'.

c3.png

 

You can copy the code and create a new query to get data from the same data source, and then go to 'Advanced options' and paste the code to sql statement. 

c4.png

 

Finally you may get a table filtered by 'Days' = 1.

c5.png

 

Best Regards

Allan

 

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

Thank you very much Allan, I had the same concern and I was very useful in your practical way of explaining it to reach the solution.

Best regards
Fabio

Greg_Deckler
Community Champion
Community Champion

You could check the Issues forum here:

https://community.powerbi.com/t5/Issues/idb-p/Issues

And if it is not there, then you could post it.

If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.