Forum Discussion
Problems with Merge Queries
- 6 years ago
Hi Anonymous ,
If you want to show blank and A in slicer, you need to create a new table. I create a sample. Please have a try.
Table = ADDCOLUMNS ( VALUES ( Table2[Column1] ), "Table1_Column2", CALCULATE ( MAX ( Table1[Column2] ), FILTER ( Table1, Table1[Column1] IN VALUES ( Table2[Column1] ) ) ) )
Anonymous merge query is a very expensive transformation. Regarding your first question, not sure what you mean by the calculated column, I assume, you have added a column in a table, and on merge, you are saying you cannot see this column. There is no reason why this column will not show up. It is very hard to say what you are doing and why this column is not showing, click load more on expand column dialog box, and see if you get to see all the columns?
Bottom line is, why you are doing the merge? Cannot you achieve the same using relationship in the model?
parry2k thanks, I could use the relationship model but there is a significant inconvenience:
When two columns are put together in a table visual, which columns come from different tables that have been joined, there are fields that have no value because there the joining of the tables is not complete.
These empty values (which appear after you choose 'Show no values' in the table visual), cannot be included in the slicers. So whatever you choose in the slicers, the empty values will always be present which is inconvenient.
That's why I was thinking to do a Merge Query and replace the empty values with null in the column so that they can be filtered in the table visual using slicers.
Is there a solution for this?