• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Data Verification of 2 Exact tables|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Data Verification of 2 Exact tables|Power Query|Excel Forum|My Online Training Hub

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryData Verification of 2 Exact tables
sp_PrintTopic sp_TopicIcon
Data Verification of 2 Exact tables
Avatar
Amy Cole

New Member
Members
Level 0
Forum Posts: 1
Member Since:
January 13, 2023
sp_UserOfflineSmall Offline
1
January 13, 2023 - 2:56 am
sp_Permalink sp_Print

I have two tables that are the same size in regards to columns and rows; 130 columns by 153 rows. These are from 2 different databases. I have been tasked with finding the differences between the 2 tables. The columns contain a mixture of numbers and text, but the tables match each other in regards to columns being the same. So, if column 50 is text in one table, it will also be text in the other table.

Other than pulling them into power query and doing a true/false statement on each cell. Is there a better way? I am only 6 months into my power query journey, so I really appreciate the help.

Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 0
Forum Posts: 382
Member Since:
January 31, 2022
sp_UserOnlineSmall Online
2
January 13, 2023 - 7:54 pm
sp_Permalink sp_Print

Hi Amy,

Hopefully you have unique ID's in both tables so that you can match records that should be the same across all columns. Unpivot both tables and then merge the two based on ID and column (name or number). Add a custom column identifying the rows where the value in table 1 does not equal the value in table 2 and filter on TRUE.

The attached file contains a small scale example, but it should also work with your 130 X 153 tables. Unpivoting will result in tables 19890 row, which isn't going to be a problem for PQ. And remember, you don't have to load these unpivoted tables back to an Excel sheet.

If it doesn't work for you, please come back and attach a file with two tables, say each 10 X10, that truly represent how your real data look like.

Riny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 170
Currently Online: Riny van Eekelen, Christian Huapaya
Guest(s) 40
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1431
Anders Sehlstedt: 845
Velouria: 574
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 213
A.Maurizio: 202
Aye Mu: 201
Jessica Stewart: 185
Newest Members:
Vicky Otosnika
Abhishek Singh
Kevin Sojourner
Kara Weiss
And Woox
Armani Quenga
moshood bello
annelies b
James1989
lucy gilmour
Forum Stats:
Groups: 3
Forums: 24
Topics: 6045
Posts: 26523

 

Member Stats:
Guest Posters: 49
Members: 31492
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Riny van Eekelen
© Simple:Press —sp_Information
  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
 
  • About My Online Training Hub
  • Contact
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Copyright © 2023 · My Online Training Hub · All Rights Reserved

Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We won’t spam you.

x