cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
unicorns
Helper II
Helper II

Conditional Column - take values from different columns if it exists

How could I write power query to achieve below? whichever column has value, it'll be listed in "Final ID" column.

If both ID and Identifier columns have values, then take ID column's value. 

 

 unicorns_0-1684971763403.png

 

unicorns_0-1684971635985.png

 

 

2 REPLIES 2
Ahmedx
Super User
Super User

pls try this

List.Max({[Id],[Identifier]})

Screen Capture #1167.png

Ritaf1983
Super User
Super User

Hi @unicorns 

Please to achieve your goal you can add a conditional column like on bellow picture:

Ritaf1983_0-1684981320750.png

Result

Ritaf1983_1-1684981382092.png

 

Link to sample file 

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

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors