Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Create a New Column based on three new columns in the same table

Hello Friends, 

 

Need your advise, kindly help with the following table what is the better way to achieve results. 

Following the sample data set given to me. 

 

Self completedManager completedFinal completed
TRUETRUEFALSE
TRUETRUETRUE
TRUEFALSEFALSE
TRUETRUETRUE
TRUETRUEFALSE
TRUETRUEFALSE
TRUETRUETRUE
TRUETRUEFALSE
TRUETRUETRUE
TRUETRUETRUE
FALSEFALSEFALSE

 

 Based on the above data set need to create the following out put in new column of the same table. 

- Self Rating only
- Self and Manager Rating
- Complete

 

1 ACCEPTED SOLUTION
Watsky
Solution Sage
Solution Sage

Hi @Anonymous ,

Not sure if you're looking to add the column using a calculated column or through Power Query so here's both ways:

 

Power Query

1. Inside Power Query click on Add Column

Watsky_0-1643293338140.png

2. Write out your new column like this:

 

if [Manager completed] = false then "Self Rating only" else if [Final completed] = false then "Self and Manager Rating" else "Complete"

 

Watsky_1-1643293434072.pngWatsky_2-1643293456010.png

Calculated Column

 

New Column = IF('Table'[Manager completed] = FALSE, "Self Completed",
IF('Table'[Final completed]=TRUE, "Completed","Self and Manager Rating"))

Watsky_1-1643293786294.png

 

 


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up!
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Thank you for your prompt response, this helps. Also, if self completed has false then it should consider as self completed.

Watsky
Solution Sage
Solution Sage

Hi @Anonymous ,

Not sure if you're looking to add the column using a calculated column or through Power Query so here's both ways:

 

Power Query

1. Inside Power Query click on Add Column

Watsky_0-1643293338140.png

2. Write out your new column like this:

 

if [Manager completed] = false then "Self Rating only" else if [Final completed] = false then "Self and Manager Rating" else "Complete"

 

Watsky_1-1643293434072.pngWatsky_2-1643293456010.png

Calculated Column

 

New Column = IF('Table'[Manager completed] = FALSE, "Self Completed",
IF('Table'[Final completed]=TRUE, "Completed","Self and Manager Rating"))

Watsky_1-1643293786294.png

 

 


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up!
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.

Proud to be a Super User!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.