Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
SandipGhosh
Frequent Visitor

What is the difference between addcolumns and selectcolumns in DAX?

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?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
garythomannCoGC
Impactful Individual
Impactful Individual

amitchandak
Super User
Super User

@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.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

Can you writeen the reply in english please.

Pragati11
Super User
Super User

Hi @SandipGhosh ,

 

  • ADDCOLUMNS allows you to add new calculated columns in an existing table.
  • SELECTCOLUMNS allows you to select columns from an original table, without starting with the defined structure of the original table

Pragati11_0-1597921705379.png

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

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

lkalawski
Super User
Super User

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?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors