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
nuibb
New Member

Concatenating one column's value to the next row's another column's value

Hi, I'm curious about concatenating different consecutive row's dissimilar column value into single one coulmn in Power BI. Suppose my table has two distinct column, column A and column B. column B has some null values. If any null values found in column B, then I want to add the column A's value to the previous row's column B value. How can I achive this in Power BI using either DAX or Power editor? Please help me out. Thanks.

1 ACCEPTED SOLUTION
nickyvv
Community Champion
Community Champion

Hi @nuibb,

 

there is a solution based on this blog by @MattAllington. It uses 2 indices, merging the table by self-joining and a custom column to get the value you want.

Please have look at and let us know if that worked.



Did I answer your question? Mark my post as a solution!

Blog: nickyvv.com | @NickyvV


View solution in original post

1 REPLY 1
nickyvv
Community Champion
Community Champion

Hi @nuibb,

 

there is a solution based on this blog by @MattAllington. It uses 2 indices, merging the table by self-joining and a custom column to get the value you want.

Please have look at and let us know if that worked.



Did I answer your question? Mark my post as a solution!

Blog: nickyvv.com | @NickyvV


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
Top Kudoed Authors