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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.