Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
Could anyone please educate me on how to filter the data in power bi in direct query mode. We are using a DB2 database and there is no option to connect to the DB2 database in import mode and hence I am not able to filter the data. The database server is located remotely and there are some millions of rows. I could do the filtering in Import mode but not in Direct query mode.
Could anyone please help.
Thanks in advance.
DS Sharma
Hi @dssharma,
Do you get the option “Edit Query” by righting click the table in Power BI Desktop? If the option exists, you are able to filter data in Query Editor.
If the above option doesn’t exist, expand SQL Statement(optional) when you connect to IBM DB2, write a specific database query that returns your expected data.
Thanks,
Lydia Zhang
Hello Lydia,
Thanks for your message. I have done some filtering in the edit query and I have clicked on Close and Apply. After that the data starts loading and I get this error message. Could you please help.
We received the same error, performing the same steps outlined above. Is there a "work-around"?
Hello Karen,
What type of Connection are you using? ODBC or .net connector for DB2. Can you try with .net Connector for DB2 and then try filtering.
DS Sharma
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |