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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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

 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this

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

Screen Capture #1167.png

View solution in original post

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.