Hitachi Vantara Pentaho Community Wiki
Child pages
  • 05. AdvancedMQLQuery Example
Skip to end of metadata
Go to start of metadata

The AdvancedMQLQuery extension of MQLQuery contains two additional features in addition to the core set of features within MQL:

  • The ability to alias selections, so the same business column can be selected twice with two different join paths
  • The ability to specify calculated selections

These features are expressed via the AdvancedMQLQuery API in both Java and XML.

Aliased Selections

To specify an aliased selection in XML, add an additional element entitled "alias":


Once specified in a selection, the same alias path can be referenced in an MQL constraint instead of the traditional category name:

    <condition>[Alias1.BC_ORDERS_ORDERDATE] &gt;= DATE(1;1;2007)</condition>

Selection Formulas 

To specify a selection formula in XML, use the following syntax in the selections XML:


 Using AdvancedMQLQuery functionality within Pentaho's BI Platform

In order to take advantage of this example MQL functionality, an additional component definition is required within the MQLRelationalDataComponent component.  The class of the MQLQuery must be specified as seen below:

  • No labels