tonys1
10 years agoNew Member
Status:
Under Review
Direct Connect Relationships between multiple sources, resulting in an incorrect query
Here is the general layout of the case for which the issue is arising. We have a simple report based on a data source of two tables: “Supplier” is a simple list of companies and “SupplierAlias” is a list of alternate names they may be known by. An alias may not yet be associated with a supplier (nullable SupplierID) yet if it has turned up in a data feed (part of the purpose of this report). The data source is a sql database and the model is set up for direct query. The report itself is made up of one table of output with columns from both the source tables with a set of slicers where four of the slicers are columns in the table and one is not. Up to this point, everything has been fine. Now if you select as a slicer a value from one of those included in the table, the table visual fails with an invalid column name error. In this case the column is ‘c2’. This happens to be the Alias column from the statement above generated for the unfiltered set and corresponds to the filter I selected. It appears that there is an attempt to make an optimization of some kind by not retrieving the alias column (we know what he value is) and it is dropped from the inner select statement. The problem is that it is NOT dropped from the where clause and causes the error to be thrown. The statement works if either the alias column is returned to the inner select OR the where statement is dropped. Likely just adding the column back to the inner select would keep the logic simpler and would not really inpact overall performance. One thing that is interesting is that if a second item is selected in the slicer, the generated statement is fine again and the table renders. Alternately, if the slicer which not included as a column, SupplierType, is selected in addition to the alias column then the table once again renders fine. Interestingly, the generated code appears to have been run through a different code path than before since the entire outer wrapped query is not gone as well as the previously offending where clause.
2 Comments
- chass
Impactful Individual
Hey Tony, Can i talk you out of the BPIX so i can get this filed for you? - fbcideas_migusrNew MemberStatus added:Under Review
Recent ideas
Allow Workspace Admins to View Power BI Semantic Model Configuration Without Requiring Take Over
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; } Description As a Power BI Workspace Administrator, I understand why own...LeonardGreene1 hour agoNew MemberNew5Views0likes0CommentsOpen Fabric notebooks in View‑only by default
Problem: Developers and reviewers with edit permissions frequently open notebooks for reading. Notebooks currently open in edit mode with autosave, which causes accidental changes and noisy version h...AMD07912 hours agoAdvocate IVNew333Views11likes1CommentService principal authentication support for data sources in Paginated(RDL) reports
We are only seeing two options(Basic, OAuth2) for data source authentication in a paginated report, Recently we see that the Service principal authentication enabled for Power BI(PBIX) reports, simi...Thatikonda_Vams2 hours agoNew MemberNew133Views6likes2CommentsMetadata-Driven Copy Job Control at Table and Column Level
We currently achieve metadata-driven table and column selection in Copy Data activities by using dynamic queries. This allows us to dynamically determine which tables and columns should be processed ...Motasim097 hours agoNew MemberNew6Views0likes0CommentsDynamic ForEach Parallel Batch Count Based on Runtime Capacity
We would like Microsoft Fabric Data Factory to support dynamic configuration of the ForEach activity's parallel batch count at runtime. Currently, the ForEach batchCount is effectively configured as...Motasim097 hours agoNew MemberNew4Views0likes0Comments