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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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