Forum Discussion
learning2022
4 years agoNew Member
Comparing data in two tables with different columns
Hi I am trying to compare data in two tables with the following scenarios. Scenario 1 Same number of columns and match the data. Results should highlight the differences in the data. ...
rbriga
Impactful Individual
4 years agoAssuming the columns have the same name:
- In the query editor, add a manual "source" column.
- The value will be [Table 1 name] and [Table 2 name]
- Union these 2 tables ("Append Queries" in the query editor).
- Create a matrix on the new, appended table.
- Each coulumn in the table will go into the matrix values as distinct count
- "Source" will go into the matrix columns
- If the tables are the same, "distinct count" of any column will show Table1 = Table2 = Total
- You can expend on that by adding ID fields to find the difference if needed.