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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Chapin4u
Microsoft Employee
Microsoft 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
Impactful Individual
Impactful Individual

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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