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
gaby58
Regular Visitor

How to get these values into new Column

Hi All,

 

  In one column called Product Availability and I have values like Yes, No, May Be, Not Sure, so depending on these values I need to create a new Column and the values should be for Yes - Available, No - Not Available,  May Be - May Be Available, Not Sure - Need to Be Researched, Any help is appreciated.

 

Thank You

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @gaby58 ,

 

Create a new custom column in Power Query like this:

if [originalColumn] = "Yes" then "Available"
else if [originalColumn] = "No" then "Not Available"
...
...
else //your escape value e.g. null, or "Unknown" etc.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @gaby58 ,

 

Create a new custom column in Power Query like this:

if [originalColumn] = "Yes" then "Available"
else if [originalColumn] = "No" then "Not Available"
...
...
else //your escape value e.g. null, or "Unknown" etc.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Thank you so much, it worked!

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