Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
How can I replace the value of a cell based on the row and column number (not column name) with a string?
Solved! Go to Solution.
Hi @PowerBeeEye ,
It is not supported to replace values based on position. If there is logic in the data you want to replace, you can try creating formulas using the function of IF, SWITCH etc. to implement it. Or you can post the sample data and the expected data. Then we can help you as soon as possible.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @PowerBeeEye ,
It is not supported to replace values based on position. If there is logic in the data you want to replace, you can try creating formulas using the function of IF, SWITCH etc. to implement it. Or you can post the sample data and the expected data. Then we can help you as soon as possible.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@PowerBeeEye I guess you mean in power query, can you provide some sample what you are trying to achieve?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
In the table below, I am trying to set the value of the cell at column 1 x row 2 to "Meat"
| Item | Cost |
| Bread | 2.5 |
| Milk | 3.0 |
| Sugar | 1.0 |
I don't want to use the column name "Item" because that name could be different each time.
@PowerBeeEye so in this example you want to replace Milk with Meat
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 29 | |
| 28 | |
| 20 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 35 | |
| 26 | |
| 20 | |
| 18 | |
| 17 |