Skip to content
  • There are no suggestions because the search field is empty.

Prepare your data for Advanced Analytics

Advanced Analytics charts require flat, tidy data: one header row, one value in every cell, and the same type of data all the way down each column. Check your data table against the requirements below and unnest any list fields before you add the data in Collect.

Before you start:

  • Ensure your UpMetrics login is assigned an Org Admin or Editor role. These roles can add data sets and data tables in Collect.
  • Have the data table you want to use saved as a CSV or Google Sheet.
  • If any column holds list data, you will need to determine what tool you will restructure the data (eg. LLM like Claude or Gemini, SQL Lab, or another tool).

How Advanced Analytics reads your data

Advanced Analytics is built around flat, tabular data. It expects every cell to contain a single value so it can count, group, and filter rows reliably. Most data you'll analyze falls into one of four data types.

Data type What it is Examples
String Text-based data, including letters or numbers that aren't used in calculations John Smith, Youth Leadership Academy, ZIP codes, user IDs
Number Any numeric value used in calculations 25, $100, .75
Date Dates such as session dates or survey completion dates MM/DD/YYYY, YYYY-MM-DD
List A single field containing multiple values from a predefined set of options After School, Mentoring, Counseling

Why list data needs to be unnested

A list field packs several values into one cell, like a participant whose services field reads "After School, Mentoring, Counseling." Because Advanced Analytics expects one value per cell, charts built on a list field won't count or group those values correctly.

The fix is to unnest (sometimes called explode) the data. Instead of one row holding a list, you create one row for each item in the list, and every other field in that row is repeated. Think of it like turning a grocery list written on one line into a column with one item per line.

Before unnesting:

participant_id program services
P-001 Youth Leadership Academy After School, Mentoring, Counseling

After unnesting:

participant_id program services
P-001 Youth Leadership Academy After School
P-001 Youth Leadership Academy Mentoring
P-001 Youth Leadership Academy Counseling

Machine-readable data requirements

Machine-readable data is structured so software can read it without a person interpreting it. Before you add a data table to Collect, make sure it has:

  • A single header row
  • Unique column headers
  • Column headers with no spaces or special characters except an underscore (_)
  • The same data type throughout each column
  • No merged cells
  • Data that starts immediately below the header row
  • No blank or skipped rows
  • No subtotals or grand totals
  • Fewer than 200 columns

Tip: Use all lowercase column headers when you can, for example participant_id rather than Participant_ID.

Spreadsheets formatted for people to read, with title rows, stacked headers, and totals, usually break several of these rules. A table that meets them may look plain, but it's exactly what Advanced Analytics needs.

Needs improvement: This spreadsheet is formatted for people to read. The title row, two stacked header rows, color-coded cells, notes box, and subtotal rows all keep Advanced Analytics from reading it correctly.

A spreadsheet that isn't machine readable, with a title row, two header rows, colored cells, and subtotal rows.

Improved: The same attendance data in machine-readable form. It has one header row with lowercase column names, one value per cell, and one row for each fellow and session date.

The same attendance data in machine-readable form, with one header row of lowercase column names and one value per cell.

For a more thorough review of your data table, work through the Data Table Review Checklist.

Unnest list data

Using an LLM (such as Claude or Gemini) is one way to unnest list data. If you prefer another method, use whatever works for you. The goal is the same: one value per cell.

If you're familiar with SQL, you can use SQL Lab in Advanced Analytics to create a virtual table that contains the unnested data. You can also restructure your data in Google Sheets before you add it in Collect.

Unnest list data with an LLM

Warning: Uploading data to an LLM may share it outside of your organization. Always follow your organization's policies on data privacy and use of LLMs before you upload any data.

  1. Open your preferred LLM.
  2. Upload your data table and enter a prompt like the following, replacing [Field Name] with the name of your list field:
    I have a data table with an array field, [Field Name], I need it unnested, so each value within that field has its own row, keeping all associated fields. Generate this data table.
  3. Review the transformed data to confirm it's correct. Each list value should have its own row, with the other fields repeated.
  4. Save the transformed data table.

Note: LLMs can make mistakes when restructuring data. Spot-check a few rows against your original table before you use the results.

Add your prepared data to Collect

When your data table is ready, add it to a data set in Collect. For step-by-step instructions, see Discover data sets and data tables.

Note: We advise against selecting List as the data type when you add your data. The data will still be available in Advanced Analytics, but it won't be usable as a list and will have formatting issues.

Note: New data tables, or changes to existing data tables, can take up to 4 minutes to appear in Advanced Analytics. Tables deleted from Collect can take up to 5 minutes to be removed from Advanced Analytics.

Related articles