Skip to content

}bedrock.cube.data.clear

lotsaram edited this page Apr 24, 2020 · 3 revisions

Description

This process could be used extensively by custom TIs in production to clear certain data out of a cube before copying data to that cube.

Use Case: Primarily for production systems.

  1. In production system this is a "workhorse" process called from the prolog of most custom processes prior to querying a data source to refresh cube data.
  2. During development/prototyping can be run manually to clear out a portion of a cube.

Note:
Wildcards can be used or a list of cubes specified to clear data out of multiple cubes simultaneouly.
If no cube (pCube) or an invalid cube is specified, the process will abort.

⚠️Caution: If no view (pView) or filter (pFilter) is specified, the entire cube(s) will be cleared out.
If a valid view is specified the process will simply zero out that view and ignore any filter (pFilter) specified.
If no valid view is specified then a temporary view will be built using the filter and its data deleted.
The filter can handle specific element references for any number of dimensions and elements.

  • The pFilter parameter contains the dimension and elements to be used for filtering.
  • The dimension parameters do not need to be given in the index order of dimensions in the cube.
  • The dimension name is specified as the first member of the delimited string of elements.
    If using the pFilterParallel parameter the single dimension used as the "parallelization slicer" cannot appear in the pFilter parameters.
    When using parallelization via the RunProcess function the elements listed in pFilterParallel will be split one_at_a_time and passed to a recursive call of the process being added to pFilter.

Process Parameters

Parameter Data Type Default Prompt Text
pLogOutput Numeric 0 OPTIONAL: Write parameters and action summary to server message log (Boolean True = 1)
pCube String REQUIRED: Cube Name (wildcard * and/or cube1 & cube2 list)
pView String OPTIONAL: View name to be cleared (uses pFilter if pView not specified else clears entire cube)
pFilter String Optional but ignored if view is specified: Year¦ 2006 + 2007 & Scenario¦ Actual + Budget & Organization¦ North America Operations
pFilterParallel String OPTIONAL: Parallelization Filter: Month:Q1+Q2+Q3+Q4 (Blank=run single threaded). Single dimension parallel slices. Will be added to filter single element at a time. Dimension must not be part of filter
pParallelThreads Numeric 0 OPTIONAL: Ignored if pFilterParallel is empty. Maximum number of threads to run when parallel processing is enabled ( if <2 will execute one thread, but parallel filter is still applied )
pDimDelim String & OPTIONAL: Delimiter for start of Dimension/Element set (default value if blank = '&')
pEleStartDelim String ¦ OPTIONAL: Delimiter for start of element list (default value if blank = '¦')
pEleDelim String + OPTIONAL: Delimiter between elements (default value if blank = '+')
pCubeLogging Numeric 0 Required: Cube Logging (0 = No transaction logging, 1 = Logging of transactions, 2 = Ignore Cube Logging - No Action Taken)
pTemp Numeric 1 OPTIONAL: Make Views and subsets Temporary (1=Temporary)
pSandbox String OPTIONAL: To use sandbox not base data enter the sandbox name (invalid name will result in process error)
pSubN Numeric 0 OPTIONAL: Create N level subset for all dims not mentioned in pFilter

Full Process Dependencies

Process ExecuteProcess RunProcess
}bedrock.cube.view.create Y N
}bedrock.hier.sub.create Y N
}bedrock.hier.sub.exclude Y N
}bedrock.hier.sub.create.bymdx Y N

test sidebar

Clone this wiki locally