Forum Discussion
ANG1994
3 years agoFrequent Visitor
New Columns
Sorry this may be simple but I am new to Power BI, Can I create an extra 2 columns where Column 1 is J and Column is 2? This will be my answer: (Ignore the 0's before Job) Than...
- 3 years ago
Hi ANG1994 ,
Here are the steps on how to create two new columns in Power BI, one for J and one for P, and copy the job column values with J as the source to the J column and P source to the P column:
- Open the Power BI Desktop application.
- In the Power Query Editor, select the table that you want to create the new columns in.
- In the Home tab, click on the Add Column button.
- In the Add Column dialog box, select the Conditional Column option.
- In the Column Name field, type in the name of the new J column.
- In the Expression field, type in the following formula:
IF([Source] = "J", [Job], "")- Click on the OK button.
- Repeat steps 3-7 to create the new P column, but use the following formula in the Expression field:
IF([Source] = "P", [Job], "")Click on the Close & Load button.
Best Regards,
Ajith Prasath
If this post helps, then please consider Accept it as the solution and give kudos to help the other members find it more quickly.
ANG1994
3 years agoFrequent Visitor
Thank you it worked fine! 😀