Forum Discussion
alexbjorlig
Helper IV
4 years agoHow to replace/remove a column from a virtual table?
This seems simple - but I can't find any good answers. How do I remove/replace a column from a virtual table in DAX? (I'm doing a cross join with the GENERATE function and would like to repla...
- 4 years ago
alexbjorlig , You can use addcolumns to add new columns and selectcolumns to select the columns, I doubt or replace.
https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
https://docs.microsoft.com/en-us/dax/selectcolumns-function-dax
https://docs.microsoft.com/en-us/dax/addcolumns-function-dax
amitchandak
Super User
4 years agoalexbjorlig , You can use addcolumns to add new columns and selectcolumns to select the columns, I doubt or replace.
https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
https://docs.microsoft.com/en-us/dax/selectcolumns-function-dax
https://docs.microsoft.com/en-us/dax/addcolumns-function-dax