Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I have a simple IF statement which corrects the value of "Group" for specific instances, for example:
= Table.AddColumn(#"Previous Step", "New Group", each
if [Name] = "Batman" then "DC"
else if [Name] = "Wonder Woman" then "DC"
else if [Name] = "Iron Man" then "Marvel"
else if [Name] = "Goofy" then "Disney"
else if [Name] = "Mickey Mouse" then "Disney"
else [Group])
but the only way I have found of doing this is to create a new column - "New Group".
Is there any way of altering this code so that I alter the value of "Group" instead of adding the new column "New Group"?
Solved! Go to Solution.
Hi @AndrewPF ,
You can try multile replace statements on the Group column rather than trying to create a new column.
You can follow this trick here for creating multiple replacement staements as a SINGLE statement in Power Query:
https://www.youtube.com/watch?v=cOXNbaa_02U
Hi @AndrewPF ,
You can try multile replace statements on the Group column rather than trying to create a new column.
You can follow this trick here for creating multiple replacement staements as a SINGLE statement in Power Query:
https://www.youtube.com/watch?v=cOXNbaa_02U
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 77 | |
| 37 | |
| 31 | |
| 29 | |
| 26 |