Reply
sanjanarama
Resolver I
Resolver I
Partially syndicated - Outbound

merging of multiple columns with null value

IDhierachynamename1name2name3final name
100Globala   a
101Globaleb  b
102intermediatefgc c
103countryhijdd


I have data as above , and i wanted to build a custom column - final name, which is result of columns (name, name1, name2, name3).
seeing data from right to left, we need to pick the value of the column has the data encountered first. how can we achive this?



1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Syndicated - Outbound

@sanjanarama , In dax a new column

final name = coalesce([Name3],[Name2],[name1],[Name1])

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

1 REPLY 1
amitchandak
Super User
Super User

Syndicated - Outbound

@sanjanarama , In dax a new column

final name = coalesce([Name3],[Name2],[name1],[Name1])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)