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
Chapin4u
Employee
Employee

Replace text

Hi, please help me with the following question. I need to replace the text highlighted in yellow for only that cell marked in red. If I do a replace text it will also change the other exact words which I don't want to happen. Is it possible? Thanks

 

2018-05-02_13-53-54.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

In your Query Editor, add an index column and a custom column that looks for both the value you want to change and the ID that identifies the row.

 

Sub Category 2 = if ( [index] = 62 and [Sub Category] = "Mercadeo y Publicidad" ) then "Salario e Incentivos" else [Sub Category]

 

Remove Sub Category and rename Sub Category 2 to Sub Category.

 

Regards.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

 

In your Query Editor, add an index column and a custom column that looks for both the value you want to change and the ID that identifies the row.

 

Sub Category 2 = if ( [index] = 62 and [Sub Category] = "Mercadeo y Publicidad" ) then "Salario e Incentivos" else [Sub Category]

 

Remove Sub Category and rename Sub Category 2 to Sub Category.

 

Regards.

waltheed
Solution Supplier
Solution Supplier

What data identifies that cell marked in red? 

Is it the account AGUINALDO? Are there any other fields?

 

You could do something like:

 

Column = IF([Accounts] = "AGUINALDO" , SUBSTITUTE([Sub Category], "Salario...", "Mercadeo..."))

 

Cheers, Edgar Walther
ITsmart BI and Analytics consultant

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.