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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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