cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
PoweredOut Member
Member

IF Formula based on another table with three criteria

all

I hope you can help?

 

I would like to add a column you table A using an IF formula which looks up three criterias in table B. To Give a YES or NO answer. I have tried the formula below and get a "Too few arguments were passed to the IF function. The minimum argument count for the function is 2." Error message

 

Thanking you in advance

 

Correct = IF(TableA[Name] = RELATED(TableB[Name]) && IF(TableA[REAL_TIME] >= RELATED(TableB[REAL_TIME - 3] ) && IF(TableA[REAL_TIME] <= RELATED(TableB[REAL_TIME + 3]), "YES" , "NO"
1 ACCEPTED SOLUTION

Accepted Solutions
lc_finance Member
Member

Re: IF Formula based on another table with three criteria

Hi @PoweredOut ,

 

you can try the formula below:

Correct = IF(([Name] = RELATED(TableB[Name])) && ([REAL_TIME] >= RELATED(TableB[REAL_TIME - 3] )) && (TableA[REAL_TIME] <= RELATED(TableB[REAL_TIME + 3])), "YES" , "NO")

 

Let me know if it works

 

LC

Interested in Power BI templates? Check out my blog at www.finance-bi.com

View solution in original post

2 REPLIES 2
lc_finance Member
Member

Re: IF Formula based on another table with three criteria

Hi @PoweredOut ,

 

you can try the formula below:

Correct = IF(([Name] = RELATED(TableB[Name])) && ([REAL_TIME] >= RELATED(TableB[REAL_TIME - 3] )) && (TableA[REAL_TIME] <= RELATED(TableB[REAL_TIME + 3])), "YES" , "NO")

 

Let me know if it works

 

LC

Interested in Power BI templates? Check out my blog at www.finance-bi.com

View solution in original post

PoweredOut Member
Member

Re: IF Formula based on another table with three criteria

Thank you. It worked a treat!

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 45 members 991 guests
Please welcome our newest community members: