Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi Team,
I hope you can help me with my problem. I have searched for it but coldn't find perticular answer.
I have a table with circa 30 positions where user name was changed from User Name 1 to User Name 2 and I have few reports where is needed to repleace the value from User Name 1 to User Name 2, when the User Name 1 is visible in other table in perticular column (Reviewer) and change it to User Name B but when the user name is else, then leave it as it is.
I don't want to add any other column and also write 30 positions to replease value but is needed for this to work also when to the first tabel will be added new position.
| User Name 1 | User Name 2 |
| Susanne Mars | Susanne Smith |
| Kathrin Kos | Kathrin Kosinska |
Report Table
| Reviewer |
| Susanne Mars |
| Kathrin Kos |
| Kathrin Kosinska |
| John Miller |
| Susanne Smith |
| Thomas Shelby |
Many thanks in advance!
Hi @Ela7 ,
Another approach is that using 'Merge Queries' in Power Query.
Expand it.
Add a custom column.
Then you can remove the original name column and the User Name 2 column to keep the New Name column.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I am really sorry but I am stack:
= Table.ReplaceValue(
#"TAT A1",
each [Reviewer],
each #"KN Previous Name List"{[User Name1=[Reviewer]]}[User Name2],
(row, old, new) => try new otherwise old,
{"Reviewer"} )
Stéphane
Hi Slorin,
thank you very match for you fast assistance.
Unfortunately I must be doing something wrong. I have two separate sources with those tables (names change -> KN Previous Name List and reviews -> TAT A1).
With the source should I refere on this query?
= Table.ReplaceValue(#"TAT A1",each [Reviewer],each #"KN Previous Name List" {[User Name1=[Reviewer]]} [User Name2],[User Name2],{"Reviewer"} )
Many thanks!
Hi,
= Table.ReplaceValue(
Source,
each [Reviewer],
each User_Name{[User Name 1=[Reviewer]]}[User Name 2],
(row, old, new) => try new otherwise old,
{"Reviewer"}
)
Stéphane
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |