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
CrisNep
Regular Visitor

Yes or No Column

Hi All,

I am trying to create a column with yes or no answers, based on a different table.

I have two tables, one with all customers, and one with the customers that are past due.
I need that column to show yes, if it's past due, and no if it is not. 

Any help will be much appreciated. 

1 ACCEPTED SOLUTION
Kishore_KVN
Super User
Super User

Hello @CrisNep ,

Create a column in Customers table using LOOKUPVALUE function. It should look as below:

Check = LOOKUPVALUE('TABLE2'[CUSTOMERS],'TABLE2'[CUSTOMERS],'TABLE1'[CUSTOMERS])
Then create another column to get 'Yes' or 'No'

Result = If(Check = BLANK(),"No","Yes")

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

View solution in original post

2 REPLIES 2
Vinod_P
Helper I
Helper I

Step 1 :- You can use appen quaries with common ref as customer .

Step 2 :- You can add a If statement if(table(date())< today(date()), " Yes", "No")

Kishore_KVN
Super User
Super User

Hello @CrisNep ,

Create a column in Customers table using LOOKUPVALUE function. It should look as below:

Check = LOOKUPVALUE('TABLE2'[CUSTOMERS],'TABLE2'[CUSTOMERS],'TABLE1'[CUSTOMERS])
Then create another column to get 'Yes' or 'No'

Result = If(Check = BLANK(),"No","Yes")

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

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.