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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Adding data to one "cell" in a Power Query table

I need to add User Principal Name to an existing table for new people that come into the company.   We do not have this information anywhere in our systems, so I normally just get it from the Power Bi service.  

 

Is there a way to use Power Query editor to add a value to a particular row, and column  (i.e. a cell) ?     For example if I wanted to add the UPN to one of the cells below.  

 

texmexdragon_0-1633653793438.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

It sounds like you want to do accurately replace specific row values, right? If that's the case, you can take a look at the following link about M query operators(column: [string], row {number}), then you can do custom on replace function to achieve accurately replace value operations.

Operators - PowerQuery M | Microsoft Docs

Quick Tips: Conditionally Replace Values Based on Other Values in Power Query (biinsight.com)

BTW, if you mean the bulk replace with complex conditions, I'd like to suggest store them in another table and use a key field link to the raw table, it should be simple than manually coding formula replace values.

Regards,
Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

It sounds like you want to do accurately replace specific row values, right? If that's the case, you can take a look at the following link about M query operators(column: [string], row {number}), then you can do custom on replace function to achieve accurately replace value operations.

Operators - PowerQuery M | Microsoft Docs

Quick Tips: Conditionally Replace Values Based on Other Values in Power Query (biinsight.com)

BTW, if you mean the bulk replace with complex conditions, I'd like to suggest store them in another table and use a key field link to the raw table, it should be simple than manually coding formula replace values.

Regards,
Xiaoxin Sheng

AllisonKennedy
Super User
Super User

@Anonymous You could maintain this in Excel or in Power Query itself, then merge queries to pull that info through, but there's no way to edit an individual cell in Power Query without providing a condition or info on which row you need to change.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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