Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I am using a SQL direct query to make visualizations. The query is about 600 lines and right now am using a SQL code – where am bringing in all the order numbers (the reason why I have about a billion rows), in a direct query – can I customize the SQL code? I can use the SQL query to one particular order number, but I need to be able to look for all order numbers, instead of going to the advanced editor and changing the order number, is there any other way I can work on this? If so how?
Solved! Go to Solution.
hi, @Anonymous
You could customize the SQL code when connect to SQL
https://community.powerbi.com/t5/Desktop/Custom-SQL-instead-of-table-or-view/td-p/96463
Best Regards,
Lin
hi, @Anonymous
You could customize the SQL code when connect to SQL
https://community.powerbi.com/t5/Desktop/Custom-SQL-instead-of-table-or-view/td-p/96463
Best Regards,
Lin
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.