Forum Discussion
hi_world
2 years agoHelper III
million-dollar question - Non-Optimal SQL Queries for Many-to-Many Relationships
Hello, Power BI Direct Query on GCP Views Generates Non-Optimal SQL Queries for Many-to-Many Relationships The problem is that it makes a kind of cross join on NULLs. The following article de...
hi_world
2 years agoHelper III
For me no, the initial problem is that the powerbi engine generates an unoptimized sql query on the views.
if I replace the views with tables and I define not null constraints on my join key columns in the powerbi model, the queries are generated correctly and the performance is good.
I have to keep views and not tables, that's why I'm trying to understand why powerbi behaves in an abnormal way with views and how to get around it?
the article that I shared explains very well this very strange behavior of powerbi en direct query on big data views.
lbendlin
2 years agoSuper User
If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.fabric.microsoft.com/?forum=2d80fd4a-16cb-4189-896b-e0dac5e08b41