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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
BookBok
New Member

Replace multiple values using IF NOT while using one column as a reference

Hi,

In a table that has Countries and Regions I want to convert the Region to text "ALL" but not for 5 countries.

This is, I want to keep the region only for Australia, Canada, China, India, and USA, any other Country I want to replace the region the account may have to ALL.

I know how to do it in Excel, but I need it in PowerBI for a dinamic report.

Where can I find the steps on how to create this column?

Regards,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi BookBok,

 

You can create a new calculated column with following formula:

New Region = 
If(table[Countries] in {"Australia","Canada","China","India","USA"},
   table[Countries], "All")

I hope this help.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi BookBok,

 

You can create a new calculated column with following formula:

New Region = 
If(table[Countries] in {"Australia","Canada","China","India","USA"},
   table[Countries], "All")

I hope this help.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors