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 r0682

...

StateQty
CA10
OR-10
WA2.5
ZZ15
ID 
 4

Transformation:

Invalid State values: You can test for invalid values for State using the following:

D trans
RawWrangletrue
Typestep
WrangleTextderive type:single value: ISMISMATCHED (State, 'State')
p01NameFormula type
p01ValueSingle row formula
p02NameFormula
p02ValueISMISMATCHED (State, 'State')
SearchTermNew formula

The above transform flags rows 4 and 6 as mismatched.

Info

NOTE: A missing value is not valid for a type, including String type.

Invalid Integer values: You can test for valid matches for Qty using the following:

D trans
RawWrangletrue
p03Value'valid_Qty'
Typestep
WrangleTextderive type:single value: (ISVALID (Qty, 'Integer') && (Qty > 0)) as:'valid_Qty'
p01NameFormula type
p01ValueSingle row formula
p02NameFormula
p02Value(ISVALID (Qty, 'Integer') && (Qty > 0))
p03NameNew column name
SearchTermNew formula

The first transform flags rows 4 and 6 as mismatched.

Info

NOTE: A missing value is not valid for a type, including String type.

The second transform flags above transform flags as valid all rows where the the Qty column  column is a valid integer that is greater than zero.

Missing values: The following transform tests for the presence of missing values in either column:

...

After re-organizing the columns using the the move transform transform, the dataset should now look like the following:

...