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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to generate result by comparing 2 column in different table and involve "and" function

Hi everyone. Hope you doing well

Have face one difficulties in Power BI that would like to require your kind assisntant. 

In PO table, i wanted to create a column that consist a logic of = if on time delivery ( in PO table) is equal to "On time" and Full/Partial Delivery (in GRN table) is equal to " Full delivery" , then generate "yes", else 'No")

nicksonteh_0-1653809130660.png

nicksonteh_1-1653809238062.png

 

The result expecting is something stated below. as only PO number 101 to 105 met the requirement of having "On time" in On time Delivery column and "Full Delivery" in Full/Partial Column. so it show a yes, and other show a no

nicksonteh_2-1653809532736.png

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

Add the following Column in the PO Table

Status =
IF (
    'PO Table'[On Time Delivery] = "On Time"
        && LOOKUPVALUE (
            'GRN Table'[Full/Partial Delivery],
            'GRN Table'[PO Number], 'PO Table'[PO Numbe]
        ) = "Full delivery",
    "Yes",
    "No"
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Anonymous 

Add the following Column in the PO Table

Status =
IF (
    'PO Table'[On Time Delivery] = "On Time"
        && LOOKUPVALUE (
            'GRN Table'[Full/Partial Delivery],
            'GRN Table'[PO Number], 'PO Table'[PO Numbe]
        ) = "Full delivery",
    "Yes",
    "No"
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hi !!! thank you so much for your help !!! really appreciate that !!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.