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

How to return value from a column based on sprcific value from another column, otherwise shows blank

Hi. 

In my table, I have 2 column which is "Name" and "Task Detail". I want to create a new column which will show the name of employee who put "Task Detail" as Off. If not Off, the value will be blank. 

Thanks a lot

1 ACCEPTED SOLUTION
JadhavVarsha_13
Resolver II
Resolver II

Hi @Anonymous 

You can try below 

Click on new column and use this expression  

Column = IF(tbl_TableName[Task Detail]="Off",tbl_TableName[Name]," ")
Let me know if this helps !

View solution in original post

3 REPLIES 3
JadhavVarsha_13
Resolver II
Resolver II

Hi @Anonymous 

You can try below 

Click on new column and use this expression  

Column = IF(tbl_TableName[Task Detail]="Off",tbl_TableName[Name]," ")
Let me know if this helps !
Anonymous
Not applicable

it works. I was looking into more complex function such as LOOKUPVALUE, SUMMARIZE, GROUPBY... and it shows me errors

ryan_mayu
Super User
Super User

could you pls provide the sample data and expected output?





Did I answer your question? Mark my post as a 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.