March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi, We all know that both addcolumns and selectcolumns have almost the same syntax and return a table, but I want to know that
What is the difference between addcolumns and selectcolumns in DAX? is there any example for that?
Solved! Go to Solution.
@SandipGhosh , In case, addcolumn, exiting column are already selected and you add post that. The column that are there in table part of the addcolumn.
Selectcolumn is select each column/formula with a new name. There is nothing selected beforehand.
Create a subset of the table in Power BI and add calculations using SELECTCOLUMNS DAX Function
And further the above article makes it all very clear :}
@SandipGhosh , In case, addcolumn, exiting column are already selected and you add post that. The column that are there in table part of the addcolumn.
Selectcolumn is select each column/formula with a new name. There is nothing selected beforehand.
Hi,
Can you writeen the reply in english please.
Hi @SandipGhosh ,
You can refer following links on details on both of these DAX functions:
https://docs.microsoft.com/en-us/dax/addcolumns-function-dax
https://docs.microsoft.com/en-us/dax/selectcolumns-function-dax
In addition in the below blog, it is shown how SELECTCOLUMNS can be a representation of ADDCOLUMNS and SUMMARIZE functions:
https://blog.crossjoin.co.uk/2015/06/01/using-selectcolumns-to-alias-columns-in-dax/
Thanks,
Pragati
Hi @SandipGhosh ,
This is explained in the Remarks section: https://dax.guide/selectcolumns/
Please check it.
_______________
If I helped, please accept the solution and give kudos! 😀
Hi,
it stated that "SELECTCOLUMNS starts with an empty table before adding columns." I dont understand what does it mean?
Can you explain me that?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
115 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |