Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version r093

D toc

Excerpt

Extracting one or more values from within a column of values can turn data into meaningful and discrete information. This section describes how to extract column data, the methods for which may vary depending on the data type.

Extract vs. Split

Extract and split transformations do not do the same thing:

...

MethodDescription
By selectionSelect part of a value in the data grid to prompt a series of suggestions on what to do with the data. Typically, extract options are near the top of the suggestions when you select part of a value.
By column menuFrom the menu to the right of the column, select Extract and a sub-menu item to begin configuring a transformation. See Column Menus.
By Transformer toolbarAt the top of the data grid, click the Extract icon in the Transformer toolbar to begin configuring extract transformations. See Transformer Toolbar.
By Search panelIn the Search panel, enter extract to build a transformation from scratch. See Search Panel.

Extract text or patterns

...

The following functions can be used to extract values from a Datetime column, as long as the values are present in the formatted date:

Function NameDescription
DAY Function

D excerpt include
pageDAY Function
nopaneltrue

MONTH Function

...

D excerpt include
pageMONTH Function

...

nopanel

...

true

...

YEAR Function

D excerpt include
pageYEAR Function
nopaneltrue

HOUR Function

D excerpt include
pageHOUR Function
nopaneltrue

MINUTE Function

D excerpt include
pageMINUTE Function
nopaneltrue

SECOND Function

D excerpt include
pageSECOND Function
nopaneltrue

You can also reformat the whole Datetime column using the DATEFORMAT function. The following reformats the column to show only the two-digit year:

...

The following functions can be used to extract values from a set of URLs:

URLs:

Function NameDescription
HOST Function

D excerpt include
pageHOST Function
nopaneltrue

DOMAIN Function

D excerpt include
pageDOMAIN Function
nopaneltrue

SUBDOMAIN Function

D excerpt include
pageSUBDOMAIN Function
nopaneltrue

SUFFIX Function

D excerpt include
pageSUFFIX Function
nopaneltrue

URLPARAMS Function

D excerpt include
pageURLPARAMS Function
nopaneltrue

Query parameters

You can extract query parameter values from an URL. The following example extracts the store_id value from the storeURL field value:

...

D s also
inCQLtrue
label(label = "cleanse_tasks")