When working with QuickBooks Online data, certain financial objects like Bills or Journal Entries are split into two levels:
A summary-level object (e.g., Bill, Journal Entry)
A corresponding line-level object (e.g., Bill Lines, Journal Entry Lines)
If you only use one of these, you’ll either miss key breakdowns or lose context for filtering and grouping. Merging ensures you get complete and accurate financial reporting.
To build accurate reports—especially for use cases like P&L by Subcategory—you need to combine these objects using a Merged Dataset.
Create Datasets for Bill, Journal Entry, and their respective Line objects
Navigate to the Datasets page and create new Datasets from Quickbooks.
Create a Bill Dataset and another Bill Lines Dataset.
Create a Journal Entry and another Journal Entry Lines Dataset.
View
Columns
Bills
Id, other columns like DueDate, CurrencyRef_Code, etc.
Bill Lines
BillId (Bill ID), other columns like Account_UnitPrice, Account_Quantity, etc.
Journal Entries
Id, other columns like CreatedAt, CurrencyRef_Name, ExchangeRate, PrivateNote, etc.
Journal Entry Lines
Journal Entry ID, other columns like AccountRef_Name, AccountRef_Value, Amount, etc.
How to merge Bill or Journal Entry with their Line objects
Go to Data Manager > Merged Datasets and click Merge Datasets.
Select the two entities to merge:
Bill + Bill Lines
Journal Entry + Journal Entry Lines
Set the Join Operator to Left Outer..
Set the Join Conditions to Id <> JournalEntryID (or BillId of using Bill Lines)
On the next screen, you will be prompted to select what columns to include in the merged dataset. We recommend selecting all columns.
Build your Custom Metrics
Now that your data is merged:
Use Metric Builder to build Custom Metrics like Amount by AccountRef_name or Subcategory Spend by Month.
Apply filters using fields from the summary object for greater context (e.g., filter by Vendor, Date, Transaction Type).
Group line-level data for deeper financial insights.
This setup ensures you're pulling all relevant line items and gives you the flexibility to build accurate P&L reporting, category tracking, and vendor-level breakdowns.
For more, visit: How to merge Datasets.