Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 replace a single column).
Thanks in advance.
Solved! Go to Solution.
@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
@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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 30 | |
| 26 | |
| 17 | |
| 11 | |
| 10 |