Factory Source Rules
Measure Factory input data sets are compiled cBases that were created by DI ETL tools. The columns in the cBase are automatically made available as source rules in the data sets.
The source rules can have Spectre functions applied, such as calc, sum, and filter. In this example, the source rule (the Charge column) is used as the measure's calculation, and it uses sum.
measures { category "Charges" {
measure "Total Charges" `sum(value("Charge"))` { view "Charges" } } }
After you run a factory configuration file, if you examine the Workbench output, you can see the number of rows and rules (columns) that were processed. The rule count specifies the number of columns in all of the input cBases.
In the following example, on line 10 you can see that 26 rows, 5 rules from a simple five-column cBase were processed through a factory configuration file with no additional rules set.
See also: