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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.