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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
learner03
Post Partisan
Post Partisan

Comparing 2 sheets and output in the report

I want to compare data of Table 1 to Table 2 and based on the comparision, I want the output .

 

Table 1 is the main table and has all the fields populated.

Table 2 will have some fields missing for item sometimes..example- length, breath...etc 

 

I want the whole item line from table 2 as an output if any of the fields has missing data.

Table 2 can have more lines of items but the output should have only those lines which are in Table 1.

 

 

Table 1 On Purchase Order          
             
Item CodeDescriptionInner QtyOuter QtyInner LengthInner WidthInner HeightInner WeightAvg. Carton WeightOuter WidthOuter HeightOuter length
123ABC264131244520121343
43DEF634242544512313223
144JHK286224764365121223
             
             
Table 2Total Items           
             
Item CodeDescriptionInner QtyOuter QtyInner LengthInner WidthInner HeightInner WeightAvg. Carton WeightOuter WidthOuter HeightOuter length
123ABC264131244520121343
43DEF634 4 54 12313223
144JHK28622 764365 1223
234gfd476 2346246 6
             
Output Table-Only missing data items          
43DEF634 4 54 12313223
144JHK28622 764365 1223
             

 

7 REPLIES 7
ryan_mayu
Super User
Super User

@learner03 

here is a workaround for you.

1. merge table and find out the exactly match records and filter out them.

2. use left ID merge table 2 again to get the data from table 2.

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@learner03 

it shows access denied.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@ryan_mayu I have changed the access. Can you please try again?

@ryan_mayu  how can I share it then?

amitchandak
Super User
Super User

@learner03 , One of the option you can check is except

 

a new tbale = except(TableB, TableA)

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Sorry to mention that Number of Columns in both the tables are not same and the "if condition" to check which line to to selected from Table 2 will be based on the following columns only and not other columns-

Inner QtyOuter QtyInner LengthInner WidthInner HeightInner WeightAvg. Carton WeightOuter WidthOuter HeightOuter length

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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