Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all,
a potentially simple thing
I have to add an extra column to my table - which is the copy of an existing column in the same table, but I have to change just a few values (actually names) here and there. The 'Create column from examples' seems not to be working since does not get the logic, so I am trying with the customized column.
What I would need is the equivalent of simple "IF" excel formula which would allow me to replace the names I want to.
Example: I have a list of countries (column1) and a list of continents (column2).
I have to create a new column which replicates the continents list I have already, but includes another continent ("newcontinent") - which I would refer to some of the countries in the countries list.
So in excel woul be something like = IF ('Country'='XX'; "newcontinent"; "Country")
Any hint on how to transpose this into the power query editor?
Many thanks!!
Solved! Go to Solution.
Hi @Anonymous ,
You may go to "Add Column" and select "Conditional Column"
Regards,
Pradip Microsoft Certified Trainer
Thanks, I was looking for the hardest way ignoring the pre-made solution :).
Hi @Anonymous ,
You may go to "Add Column" and select "Conditional Column"
Regards,
Pradip Microsoft Certified Trainer
Hi @Anonymous
You can go to "Add column" --> "Custom Column" --> write the fomula --> if [Country name] = "XX" then "New continent" else "Country"
Regards,
Pradip Microsoft Certified Trainer
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
7 | |
6 | |
5 |