On This Page

Dataset Functions

Functions that return metadata and statistics about the current dataset, such as the dataset name, row count, file information, and auto-detected column mappings.

These functions describe the dataset itself rather than individual events, so ProcessMind resolves them while it evaluates the expression in the app, for example in the Expression Editor preview. They are not available in the dataset processing pipeline, which translates expressions into database queries: a calculated attribute or dataset filter that uses one of them fails to process.

lastDataUpdate

()

Returns the timestamp of the most recent data upload or update.

Returns date
Examples
lastDataUpdate() Timestamp of last update

lastDateInData

()

Returns the timestamp of the last event in the dataset.

Returns date
Examples
lastDateInData() Timestamp of the last event in the data

datasetName

()

Returns the dataset's display name.

Returns string
Examples
datasetName() Sales Orders

datasetRows

()

Returns the total number of rows, or events, in the dataset.

Returns number
Examples
datasetRows() 15000

dataFreshnessDays

()

Returns the number of days since the last data update.

Returns number
Examples
dataFreshnessDays() 3

dataFileName

()

Returns the original file name of the uploaded data.

Returns string
Examples
dataFileName() orders_2024.csv

dataFileSize

()

Returns the uploaded data file size in bytes.

Returns number
Examples
dataFileSize() 1048576

dataFileFormat

()

Returns the detected file format of the uploaded data.

Returns string
Examples
dataFileFormat() csv

detectedProcess

()

Returns the name of the automatically detected business process type.

Returns string
Examples
detectedProcess() Order to Cash

detectedCaseId

()

Returns the column name detected as the case identifier.

Returns string
Examples
detectedCaseId() Order Number

detectedTimestamp

()

Returns the column name detected as the event timestamp.

Returns string
Examples
detectedTimestamp() Event Time

detectedActivity

()

Returns the column name detected as the activity name.

Returns string
Examples
detectedActivity() Activity