Forum Discussion
Why Custom Columns are missing from Edit Query view?
- 6 years ago
Hi Anonymous ,
Currently, the calculated column or calculated table which is created using DAX function won't be displayed in Query Editor.
If you need to use a new column in Query Editor, you may go to Add column->Custom column, add a new custom column in Query Editor, see the similar case1 and case2. Then you may use Append feature to combine tables.
If you would like to create column using DAX and need to combine tables into one like Append feature do, you can use function RELATED ,LOOKUPVALUE or FIRSTNONBLANK to get new calculated column, then use UNION function to get combined table.
For example:
Column1=RELATED([one side field of relationship]) Column1= LOOKUPVALUE(tableA[goal field], tableA[linked field], tableB[linked field])) Column1= CALCULATE (FIRSTNONBLANK ( tableA[goal field], 1 ),FILTER ( ALL ( tableA), tableA[linked field] = tableB[linked field] )) New Table1= UNION( SELECTCOLUMNS('Table1',"Name1",[Description],"Name2",[Amount]), SELECTCOLUMNS('Table2',"Name1",[Description],"Name2",[Amount]), SELECTCOLUMNS('Table3',"Name1",[Description],"Name2",[Amount])) New Table1= UNION(Table1,Table2,Table3)Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Currently, the calculated column or calculated table which is created using DAX function won't be displayed in Query Editor.
If you need to use a new column in Query Editor, you may go to Add column->Custom column, add a new custom column in Query Editor, see the similar case1 and case2. Then you may use Append feature to combine tables.
If you would like to create column using DAX and need to combine tables into one like Append feature do, you can use function RELATED ,LOOKUPVALUE or FIRSTNONBLANK to get new calculated column, then use UNION function to get combined table.
For example:
Column1=RELATED([one side field of relationship])
Column1= LOOKUPVALUE(tableA[goal field], tableA[linked field], tableB[linked field]))
Column1= CALCULATE (FIRSTNONBLANK ( tableA[goal field], 1 ),FILTER ( ALL ( tableA), tableA[linked field] = tableB[linked field] ))
New Table1= UNION(
SELECTCOLUMNS('Table1',"Name1",[Description],"Name2",[Amount]),
SELECTCOLUMNS('Table2',"Name1",[Description],"Name2",[Amount]),
SELECTCOLUMNS('Table3',"Name1",[Description],"Name2",[Amount]))
New Table1= UNION(Table1,Table2,Table3)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is a really simple feature that should be present - it's absolutely absurd to not allow custom columns for the interface used for joining and apending. Program is total trash