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
Syndicate_Admin
Administrator
Administrator

Filter a lot of data in PowerQuery

Greetings, I have a question.

I have a couple of tables with a lot of data, one with 17 million records and the other with 19 million. In several of my dashboards I barely use 4 million of those records.

I in power Query use filters to exclude the service codes that do not interest me, and when it comes to working perfectly, I have only what is selected.

the doubt is that when I update the data the update box goes through 17 and 19 million respectively. there's no way I'll update just those 4 million segmented? or ajuro has to update everything?

Note:
Data comes from SQL Server and BD Postgre, in Import Query
There are records since 2015 and I'm only interested in 2020 for here.

4 REPLIES 4
vojtechsima
Super User
Super User

Hello, @Syndicate_Admin 
I suggest creating a new Query with modified SQL to take only data for 2020. This should greatly help your performance.

Greetings, thanks for the reply, but I do not have free access to the database. so I wanted to know if it was possible to reduce queries by filtering from the power Query.

another example, in that table of 17kk of records has a column with a list of services, a customer can receive several services, I need to count those who received service A, how many received services B.

but since both codes are in the same column, I duplicated the table, filtered it only by service B and made a merge query to the original table ..., which means that when it is updated it passes the 34kk of records ... and I must do that same query several times...

now I don't know if there is a more practical way to do that.

Hi, @Syndicate_Admin 
If you need just a count, why not group it by Services and Customer A/B using Group By function:

vojtechsima_0-1649764999648.png

 

ahhh I will look for a manual to understand that function well...
this is what happened with my merge query

avillarroelk250_0-1649772881500.png

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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