Dynamic fields

Dynamic fields allow you to make reports flexible by changing how data is filtered or displayed based on a selected input.

They work by passing an input into a query, which returns a value.

For example, you can:

  • Filter a report by a specific tag or collection
  • Display custom data stored in metafields, attributes, or properties

This article explains the two types of dynamic fields and how to identify and use them in a report.


In this article:


Types of dynamic fields

There are two types of dynamic fields. Each is used for a different purpose.

  • Input dynamic fields: used to filter or evaluate data based on a selected input
  • Key-value dynamic fields: used to display stored custom data

How to choose the right type

  • Use an input dynamic field to filter data or check a condition
  • Use a key-value dynamic field to display custom data stored in metafields, attributes, or properties

Input dynamic fields

Input dynamic fields require an input for a parameter. This input is passed through a query, which returns a value.

This means:

  • You select an input (for example, a tag)
  • The query checks the data
  • The field returns a result based on that input

The data type is pre-defined, so no additional formatting is required.


How to identify this type

Input dynamic fields can be identified by the ‘@’ in the field display name, which represents the parameter name.

When to use this type

Use input dynamic fields when you want to:

  • Filter results
  • Check conditions (for example, whether something matches a value)

Example:

The field Is tagged with ‘@Tag’ from the Products table allows you to select a tag as the input.

  • The input is the selected tag
  • The query checks whether each product has that tag
  • The field returns 'Yes' or 'No' for each product
Check if a product is tagged with a specific tag with the Is tagged with ‘@Tag’ input dynamic field

Key-value dynamic fields

Key-value dynamic fields return a value or a list of values associated with a specific key.

These fields are used to display custom data stored as key-value pairs, such as:

  • Metafields
  • Attributes
  • Line item properties

This means:

  • You select a key (for example, a metafield)
  • The field retrieves the stored value
  • You choose a format to control how the value appears

How to identify this type

Key-value dynamic fields can be identified by the star icon in the field data type.

When to use this type

Use key-value dynamic fields when you want to:

  • Display stored custom data
  • Format that data for readability

💡 If your key can contain a list of values, it will appear as a JSON array, wrapped with [” “]. This formatting can be removed using the OPENJSON function in a custom field. If you need help, please contact the support team.


Format key-value data

When using a key-value dynamic field, you must select a format to control how the value appears in your report.

💡If the format does not match the data:

  • Values may display incorrectly
  • Dates may not convert properly
  • Structured data (such as currency or units) may not format as expected

How to choose a format

  • Use Text for words, labels, or descriptions
  • Use Numeric for plain numbers
  • Use Currency or Unit when the value includes structured data
  • Use Date or Date/Time when converting stored strings into readable dates

Available formats

Format Description Example
Text A string value such as a word, name or description.

Key: Product_Season

Value: SS26

Formatted display value: SS26

Numeric A numeric value with no formatting.

Key: Loyalty_ID

Value: 12345

Formatted display value: 12345

Currency: {Account Currency Code} A formatted numeric value using the default currency of your account.

Key: Custom_Cost

Value: 26.07

Formatted display value: $26.07

Currency: code A formatted numeric value using the currency provided in the value.

Key: Custom_Price

Value: { "amount": "1.60", "currency_code": "EUR"}  

Formatted display value: €1.60

Unit A formatted numeric value using the unit provided in the value.

Key: Weight

Value: { "amount": "45", "unit": "oz"}  

Formatted display value: 45 oz

Date: MM/DD/YYYY, MM-DD-YYYY, MM.DD.YYYY Converts a string to a date using a specified pattern.

Key: Pickup_Date

Value: 03/06/2026

Formatted display value: Mar 6th, 2026

Date: DD/MM/YYYY, DD-MM-YYYY, DD.MM.YYYY Converts a string to a date using a specified pattern.

Key: Delivery_Date

Value: 06-03-2026

Formatted display value: Mar 6th, 2026

Date: YYYY/MM/DD, YYYY-MM-DD, YYYY.MM.DD, YYYYMMDD Converts a string to a date using a specified pattern.

Key: Pickup_Date

Value: 2026.03.06

Formatted display value: Mar 6th, 2026

Date / Time: YYYY-MM-DDThh:mm:ss Converts a string to a date and time using a specified pattern.

Key: Pickup_DateTime

Value: 2026-03-06T14:45:30

Formatted display value: Mar 6th, 2026 at 2:45:30 PM

Date / Time: Unix timestamp Converts a UTC timestamp to a date and time in your account timezone.

Key: Delivery_DateTime

Value: 1700000000

Formatted display value: Nov 14th, 2023 at 10:13:20 AM

Reference data Converts reference file IDs into accessible URLs.

Key: Upload_File

Value: gid://shopify/Video/26995523682366

Formatted display value: https://cdn.shopify.com/s/files/1/0322/1615/4252/files/13_b024aa0b-4bd7-47ac-95a4-1bd7bbff6f5b.jpg?v=1774330547

Example:

The field Product Metafield ‘@Metafield’ from the Products table shows the value assigned to a product for the metafield key global.title_tag.

  • The key is global.title_tag
  • The stored value is retrieved for each product
  • The format (Text) controls how the value is displayed
Show the value of a product metafield using the Product Metafield ‘@Metafield’ key-value dynmaic field

How to use dynamic fields

Dynamic fields can be added to a report as either:

  • a filter (to control which data is included)
  • a field (to display values in the report)

Add a dynamic field:

Use a dynamic field to filter a report by a specific tag
  1. Select the field to add to your report or add as a filter
  2. In the popup window:
    • Select a Parameters input (for input dynamic fields), or
    • Select a key and a Format (for key-value dynamic fields)
  3. Select OK

Change an input

Change the input of a dynamic field to filter a report by a different tag
  1. Select the field in the Selected fields pane, or select the pencil icon next to the filter field
  2. In the popup window:
    • Update the Parameters input, or
    • Update the Format (for key-value dynamic fields)
  3. Select OK

Need more support?

If you get stuck or have additional questions, you can contact our team directly through the Help widget in the bottom-right corner — we typically respond within one business day.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.