Compare Data in Tables Using Lists

This week, I was working on a Spotfire project with integrated filtering and marking using relations. I’m having some issues with this functionality. As part of my troubleshooting, I wanted to confirm all wells existed in both related tables. I was able to compare data in tables using lists very easily. Read more to find out how.

If you aren’t familiar with Spotfire lists and what they do, check out this Data Shop Talk post. If you are familiar with lists and just want to know how to do it, read on.

Summary

To begin, let’s look at the data in my project. I have two tables with well data. The idwell column is my well identifier. As you can see, I have 166 idwells in both tables, but I want to make sure they are the same wells.

To do this, I will create two different lists of all the idwells in each table using Spotfire’s lists panel. Then, I’ll create a list from list logic to tell me if the idwells in one table are the same as the other table.

Detailed Steps

Here are the detailed steps. Images to support the steps are below.

  1. First, open the lists panel
  2. Then, add 2 table visualizations to the page and set them to the two tables being reviewed.
  3. Next, click the create new list button in the list panel. Create a new list with the name of one of the tables. Repeat for the other table.
  4. Click on one of the tables to make it the active visualization.
  5. In the lists panel, select the column of data to create a list of from the drop-down at the top of the panel.
  6. Mark all of the records in one of the tables.
  7. Right-click on the corresponding list and select Add Marked to List. Repeat the process for the other table.
  8. Click on the list logic button in the lists panel.
  9. Finally, name the new list. Click the checkboxes of the two lists you just created. Select the first radio button option for AND. Click OK.
Open the lists panel.
Create 2 new lists.
Select the column of data to create a list of from the drop down.
Mark the table contents, right-click on the corresponding list, and add marked to list.
Click the new list from list logic button.
Name the new list and select (AND).

The numbers in each of the lists indicate a count of unique values. In this case, it’s counting the number of idwells. Now that I have created a new list from list logic, I know the tables contain the same wells. If the list logic list contained fewer than 166 idwells, I would know the tables contained some different wells.

Because the new list has the name number as the tables, I know the tables have the same idwells.

Thus, I have very quickly performed a simple QAQC task that tells me both tables have the same wells.

Spotfire Version

Content created with Spotfire 7.12.

If You Enjoyed This….

Check out my posts on how to use relations and column matches to integrate filtering and marking, as well as put data from separate tables onto a single visualization.

Tags:

3 thoughts on “Compare Data in Tables Using Lists”

  1. Pingback: Part 3 - Spotfire Data Limiting with Filtering Schemes » The Analytics Corner

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.