Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
70 | |
37 | |
29 | |
26 |
User | Count |
---|---|
91 | |
49 | |
44 | |
38 | |
37 |