Data TransformationPivot & TransposeAdvanced

Triggered Unfold

Infoveave Data Automation — Pivot & Transpose

Multiple event rows for the same session become one clean, structured record — identified by the trigger and ready for direct analysis.

Event logs, machine sensor streams, and session-based monitoring systems frequently store data as a sequence of rows per session — one row marking the session start or trigger event, followed by subsequent data rows with the actual readings or actions. This long-format log structure is difficult to analyze directly: filtering by session type, comparing sessions to each other, and aggregating across sessions requires first reconstructing individual sessions from the row stream. Triggered Unfold collapses these session-based row sequences into one structured record per session, using a specified trigger value to identify session boundaries and promoting subsequent data rows as properties on that session record. The result is a flat, wide-format table where each session is a single row ready for direct reporting, aggregation, and analysis.

Input:Long-format event log table where multiple rows per session key share a trigger row and subsequent data rowsOutput:Wide-format structured table with one row per session key containing data from the trigger row and all subsequent data rows as properties

What Triggered Unfold does

Collapse session or event-style rows into one structured record per session using a trigger value in Infoveave. Flatten log-format event streams into analyzable wide-format session records without code.

When to use Triggered Unfold

  • Your data is in a long-format event log where each session has a trigger row — such as a START or INIT event — followed by data rows, and you need one flat record per session
  • You are processing sensor or machine readings stored as a sequence of rows per measurement session where the first row defines the session type and subsequent rows hold the data payload
  • You want to flatten event stream data — such as call center interaction logs, IoT device sessions, or user journey events — into analyzable records without writing custom grouping and pivot logic
  • You need to calculate session-level metrics such as duration, sequence count, or data values, but the raw data is stored across multiple rows that must first be collapsed into one row per session

When to avoid it

  • Your data is already in a wide format with one row per session — no collapsing is needed
  • The row sequences do not have a clear trigger or boundary marker — use Group by transformations to aggregate across rows without session boundary detection
  • You want to go the other direction and expand one row into multiple rows — use Fold Multiple Columns or Fold an Array for that case

Where it fits in your Infoveave automation

Triggered Unfold is one step inside a multi-step Infoveave workflow. Chain it with other activities — no code, no manual hand-offs.

ConnectRead event log data from a database, S3 file, logging platform, or IoT data source
You are hereTriggered UnfoldCollapse the session event rows into one structured record per session using the trigger value as the session boundary
FilterFilter the resulting session records by session type, data values, or record properties
AggregateCount sessions, calculate averages, sum data values, or compute metrics across the structured session records
AutomateSchedule the workflow to reconstruct session records from event logs automatically on every run

Build this workflow visually in Infoveave Data Automation — drag, connect, and schedule with no infrastructure setup.

Infoveave — Workflow Builder
● SavedSchedule: Daily 06:00
Data SourceConnectRead event log data from a…YOU ARE HERETriggered UnfoldCollapse the session event…FilterFilter the resulting sessi…AggregateCount sessions, calculate …AutomateSchedule the workflow to r…Dashboard

How teams use Triggered Unfold

Real scenarios where this transformation saves hours of manual work.

Manufacturing

Flatten Machine Test Session Logs into One Record per Test

A manufacturing quality team processes machine test logs where each test session appears as multiple rows in the data — a START row containing the session ID and test type, followed by DATA rows containing individual sensor readings. Triggered Unfold identifies each START row as the session trigger, collapses the subsequent DATA rows into properties on that session record, and produces one flat row per test session. The team can then filter tests by type, compare readings across sessions, and flag tests that exceeded tolerance thresholds — analysis that was impossible with the raw row-per-event log format.

Healthcare

Reconstruct Patient Visit Sessions from EHR Event Streams

A healthcare analytics team processes an electronic health record event stream where each patient visit appears as a sequence of rows — an ADMIT trigger row followed by procedure and observation data rows. Triggered Unfold collapses each patient visit into one structured record per admission using the ADMIT trigger, making it possible to compare visit types, calculate visit length, and report on procedure combinations without manual grouping and pivot logic in SQL.

Technology

Collapse User Session Events from Web Analytics Logs

A product analytics team processes web logging data where each user session is a sequence of rows — a SESSION_START row followed by page view and interaction data rows. Triggered Unfold uses SESSION_START as the trigger to identify session boundaries and collapses each session's subsequent rows into a single structured session record. The team can then analyze session depth, content engagement, funnel progression, and conversion by session type.

See Triggered Unfold in action

Input data (left) is transformed using the configuration below. The output table (right) is ready for dashboards or downstream steps.

Key Column:SessionID
Fold Column:EventType
Trigger Value:START
Data Column:EventData

Input Data

SessionIDEventTypeEventData
1STARTTypeA
1DATAValue1
1DATAValue2
2STARTTypeB
2DATAValue3
3STARTTypeA
3DATAValue4
3DATAValue5
3DATAValue6

Output Data

SessionIDSTART_EventDataDATA_EventData_1DATA_EventData_2DATA_EventData_3
1TypeAValue1Value2
2TypeBValue3
3TypeAValue4Value5Value6

Configuration

Key fields to configure in the Infoveave workflow builder. Full reference available in the documentation.

Key Column

Select the column that identifies which rows belong to the same session. All rows with the same key value — such as the same SessionID — are treated as one group. Triggered Unfold produces one output row per unique key value, collapsing all rows in the group into that single structured record.

Fold Column

Select the column that contains the event type or category values used to classify each row within a session group. The trigger value is looked for within this column. Once the trigger row is found, subsequent rows in the same group provide the session data.

Trigger Value

Specify the value in the Fold Column that identifies the trigger row — the session boundary marker. Rows where the Fold Column equals the trigger value mark the start of a session group and their data is promoted to session-level properties. Rows that follow the trigger row within the same key group become sequential data properties on the session record.

Data Column

Select the column that holds the data payload for each row — the values to carry forward into the structured session record. The trigger row's data value and each subsequent data row's value are all brought into the output record as named properties.

Frequently asked questions

Everything you need to know about Triggered Unfold in Infoveave.

Also in Pivot & Transpose — and what runs before & after

Transformations in the same family as Triggered Unfold, often chained together in the same Infoveave workflow.

Part of Infoveave Data Automation

80+ transformations. Zero manual steps.

Triggered Unfold is one of over 80 transformation activities available inside Infoveave workflows. Chain transformations together — no code, no exports, no waiting for IT.

Ready to see Infoveave in action?

Book a Demo
ISO 27001ISO 27017ISO 27701GDPRHIPAACCPAAICPACSR LogoCapterra Reviews — Infoveave

© 2026 Noesys Software Pvt Ltd

Infoveave® is a product of Noesys

All Rights Reserved