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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Append column with another existing column DAX

Hi everyone,

I try to find a DAX function for this kind of append problem. As in the picture below, I have three rows with value for Attribute 1 and many values for Attribute 2. Now I want to add these 3 rows with value from Attribute 1 to the end of Attribute 2, then I have Attribute 3. 

 

ask1.jpg

Any help would be so valuable to me! Thank you.
1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

I'm afraid DAX can't achieve this requirement. I would suggest you use power query, copy the original table into Table(2) and Table(3), remove other columns and keep Attribute 1 in Table(2), remove other columns and keep Attribute 2 in Table(2), then rename both as Attribute 3 as below:
11.PNG22.PNG 

 

Then append the two tables above and add an index column in the appended table and original table like below:

 

Appended Table:

33.PNG 

 

Original Table:

44.PNG 

 

Then merge the two tables based on index column and remove the index column in the merged table:

2.PNG 

 

You can also refer to the appendix.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

I'm afraid DAX can't achieve this requirement. I would suggest you use power query, copy the original table into Table(2) and Table(3), remove other columns and keep Attribute 1 in Table(2), remove other columns and keep Attribute 2 in Table(2), then rename both as Attribute 3 as below:
11.PNG22.PNG 

 

Then append the two tables above and add an index column in the appended table and original table like below:

 

Appended Table:

33.PNG 

 

Original Table:

44.PNG 

 

Then merge the two tables based on index column and remove the index column in the merged table:

2.PNG 

 

You can also refer to the appendix.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

Thank you @v-yuta-msft

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors