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
PowerBIspeed
Frequent Visitor

Getting filtered data from DB2 source with PowerBI

Is it possible to get data from a DB2 source with ODBC connector but filtered.
As an example:

I have Database with 1,5 mil. rows but only need 4000 from 1 customer. How is this possible without pulling first the compleet database to powerBI. Because of the impact it would be nice to only have a dataset with the 4000 rows.

Any support would be welcome. Thank you.

1 ACCEPTED SOLUTION
collinq
Super User
Super User

Hi @PowerBIspeed ,

 

The key is the connection type.  If you are using ODBC and want to filter on the connection you will have to use the ODBC "language" to do so.  This is a great document that walks you through your options (yes, I have successfully done this with similar ODBC filtering):

OData Version 4.01. Part 2: URL Conventions (oasis-open.org)

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




View solution in original post

1 REPLY 1
collinq
Super User
Super User

Hi @PowerBIspeed ,

 

The key is the connection type.  If you are using ODBC and want to filter on the connection you will have to use the ODBC "language" to do so.  This is a great document that walks you through your options (yes, I have successfully done this with similar ODBC filtering):

OData Version 4.01. Part 2: URL Conventions (oasis-open.org)

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




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.