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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
AmberJane
Helper III
Helper III

Override/Edit a Single Cell

I have a data set that pulls in a long text ID that translates to a project name. I normally would replace values on the ID to the Project name and that worked in most cases. However I have some one offs in the data where the unique ID needs to be split into different project names. I can't replace text because it will replace all of the cells. I need to be able to edit these one offs manually. Is this possible?

 

The column I need to edit is a text field and I am pulling the data using visual code/ODATA. 

 

 

1 ACCEPTED SOLUTION

I struggled through this and couldn't get it to work. I however was able to fix it using a conditional column. The value I needed was in another column so using the custom conditional column I was able to say if it matches this unique ID then grab from that other column. 

View solution in original post

4 REPLIES 4
AmberJane
Helper III
Helper III

Sorry I am having a hard time following this one. Would I be doing this in the Query itself?

 

In this example my column is named: Project and I am trying to edit row 25. 

 

Thank you, 

Yes, you'd add a Replace Values transformation step to your query and then modify as needed similar to the example I gave.

I struggled through this and couldn't get it to work. I however was able to fix it using a conditional column. The value I needed was in another column so using the custom conditional column I was able to say if it matches this unique ID then grab from that other column. 

AlexisOlson
Super User
Super User

You can modify Table.ReplaceValue to edit rows only under certain conditions.

 

For example, if you replace "A" with "aaa", in [Column1] the code looks something like this:

= Table.ReplaceValue(#"Changed Type", "A", "aaa", Replacer.ReplaceText, {"Column1"})

Suppose you have an index column and you only want this replacement to be valid for the row where index = 6. Then you could write

= Table.ReplaceValue(#"Changed Type", "A", each if [Index] = 6 then "aaa" else "A", Replacer.ReplaceText, {"Column1"})

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors