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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Jason_Auburn
Helper I
Helper I

Creating a column based to value of 2 others

Hi 

 

I need to add a coumn to my report, based on the value of 2 other columns but only have a value where the specific values are met, anything else should be null or blank. 

 

StatusOwnerNew Column
OpenJohn SmithIf Status = Open & Owner = John Smith then value = "In Remediation" else blank
ClosedJohn Smithif status = Closed & Owner = John Smith then value = "Remediaiton Closed" else blank

 

What I'm trying to acheive i've added to the "New Column" above, is there an easy way to acheive this?

1 ACCEPTED SOLUTION
Uzi2019
Super User
Super User

Hi @Jason_Auburn 
Please create calculated column as below:
New column= IF('Table'[status]="Open" && 'Table'[Owner]="John Smith","In Remediation", IF(Table'[status]="Close" && 'Table'[Owner]="John Smith","Remediaiton Closed",Blank()))

 

Let me know your answer!

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

3 REPLIES 3
Data-estDog
Resolver II
Resolver II

Click on transform. Select table: 

Click add column tab. Click Custom column

DataestDog_2-1698846636604.png

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Uzi2019
Super User
Super User

Hi @Jason_Auburn 
Please create calculated column as below:
New column= IF('Table'[status]="Open" && 'Table'[Owner]="John Smith","In Remediation", IF(Table'[status]="Close" && 'Table'[Owner]="John Smith","Remediaiton Closed",Blank()))

 

Let me know your answer!

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Thank you! this worked perfectly

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.