Skip to main content

Consolidating Data from Multiple Subforms into One Master View

A step-by-step guide to automatically merging data from different sources in Jodoo, saving you from the headache of copy-pasting.

Updated today

This guide will show you how to create a process that takes data from several different subforms and neatly merges them into a single, consolidated view.


Use Cases

  • Consolidate expenses, budgets, or other data from multiple teams or departments.

  • Create a "master sheet" that automatically pulls in data from several different sources.

  • Streamline report generation and financial reviews by eliminating manual copy-pasting.


The Core Idea: Merge, Then Split

The logic behind this process is simple but clever:

  1. Merge: We'll use a formula to combine all the data from your different subforms into a single, long piece of text.

  2. Split: We'll use another set of formulas to "unpack" or parse that text, distributing the correct data into the rows and columns of your final consolidated table.


How to Set it up?

Step 1 Preparing two forms

You need two forms to start: a main form for your data and a simple "helper" form.

1. The Main Form: "Project Expense Report"

This is your primary form where users will input data and where the final consolidated view will appear. Create it with the following subforms:

  • Marketing Team Expenses (Subform) - For data input

  • Sales Team Expenses (Subform) - For data input

  • Consolidated Expenses (Subform) - The final, merged output

In your workflow, you can create parallel tasks for "Marketing Team Reporting" and "Sales Team Reporting" so team leaders can submit their expenses simultaneously. You can view the responsible persons and field permissions for each node on the right side.

Note:

For field permissions and other settings of the remaining workflow nodes, please refer to the "Consolidate subforms" app template.

2. The Helper Form: "Row Generator"

This simple utility form has one job: to generate a numbered list of rows. This allows us to tell our main form exactly how many rows to create in the consolidated table.

Create the form with these fields:

Field Name

Field Type

Total Rows

Number

Subfield - Serial Number

Number

Subfield - Number

Number

Then, import the sample data from the attached file at Row Generator > Manage Data > Import. This populates the form with a pre-made list of numbers for the data linkage to use.

When importing data, please ensure that the sample data is mapped to the corresponding form fields as follows:

Step 2 Linking your forms to create dynamic rows

Now, let's make the Consolidated Expenses subform automatically create the right number of empty rows.

1. Select the Consolidated Expenses subform. In Field Properties, set the Initial Value to Data Linkage.

2. Set up the linkage:

  • Link to Form: Row Generator

  • Condition: Total Rows (from Row Generator) equals Total Rows (the formula field in your main form).

  • Map Fields: Link the subform and its Serial Number field to the corresponding fields in the Row Generator.

This linkage tells the system: "Calculate the total number of expense items I have, then create that many empty, numbered rows in my Consolidated Expenses table."

Step 3 Setting formula to merge and split the data

This is where the magic happens. We'll first merge all the data into a temporary text field and then use formulas in our consolidated table to pull the right pieces of data into each cell.

Part A: Merge all data into one place

1. Select “Marketing Team Expenses - Merged Field” and go to “Field Properties > Initial Value.” Set the default value to “Formula”, then click “Edit” below.

2. On the formula editing page, set the formula for “Marketing Team Expenses - Merged Field” as:

This formula runs for each row in the "Marketing Team Expenses" subform, joining the data together with a "+" as a separator.

3. Do the same for "Sales Team Expenses - Merged Field":

4. Finally, set the formula for the main "Merged Fields Collection" field to combine the two previous fields:

Now you have a single string containing all your data, with rows separated by "," and fields separated by "+".

Part B: Split the data into the consolidated form

Now, we'll add formulas to the columns in the Consolidated Expenses subform to parse the "Merged Fields Collection".

Field in "Consolidated Expenses"

Formula

Explanation

Expense Item

1. Find the data for the current row (Serial Number).
2. Split it by "+".
3. Take the 1st part (the item).

Category

1. Find the data for the current row.
2. Split it by "+".
3. Take the 2nd part (the category).

Cost

1. Find the data for the current row.
2. Split it by "+".
3. Take the 3rd part (the cost).

Step 4 Setting field visibility rules

To ensure your formulas update correctly every time data changes, make one last adjustment:

  1. Go to Form Properties > Hidden Field Default Value.

  2. Set the assignment rule to Always Recalculate.

And you're done! You've successfully built an automated workflow that intelligently consolidates data from multiple sources, saving you time and preventing manual errors.

Did this answer your question?