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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
steambucky
Helper III
Helper III

Replace all different values except one

I have a column of data

 

Cat

Dog

Mouse

ANIMAL UNKNOWN

ANIMAL UNKNOWN

ANIMAL UNKNOWN

 

I want to replace everything except ANIMAL UNKNOWN TYPE with ANIMAL TYPE KNOWN.

 

I have far more than 3 types of animals - actually about 100. There loads of examples for getting rid of specific text but i can't find anything that gets rid of everything BUT a specific thing.  If you can help, the less coding or DAX stuff, the better. I am but a humble noob.  

 

Thanks in advance.    

1 ACCEPTED SOLUTION
RahulYadav
Resolver II
Resolver II

Hi @steambucky,

You can use below dax formula to solve your problem.

 

Resived Name = if(Animals[Name]<>"ANIMAL UNKNOWN","ANIMAL TYPE KNOWN",Animals[Name]) 

Thanks,

Rahul

View solution in original post

2 REPLIES 2
RahulYadav
Resolver II
Resolver II

Hi @steambucky,

You can use below dax formula to solve your problem.

 

Resived Name = if(Animals[Name]<>"ANIMAL UNKNOWN","ANIMAL TYPE KNOWN",Animals[Name]) 

Thanks,

Rahul

Anonymous
Not applicable

Thank you! This worked perfectly for me.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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