US and Worldwide: +1 (866) 660-7555
+ Reply to Thread
Results 1 to 4 of 4

Thread: PropertyExpression

  1. #1
    Join Date
    Jan 2007
    Posts
    461

    Default PropertyExpression

    Hi all,

    According to the Mondrian Documentation (http://mondrian.pentaho.org/document...A_XML_elements)

    Mondrian has a <PropertyExpression> element.

    I am trying to use said element like:

    Code:
    <Level name="NombresCompletos" table="dim_clientes_scd2" column="fullname" uniqueMembers="false">
            <Property name="Personeria" column="personeria" type="Numeric">
                <PropertyExpression>
                    <SQL dialect="mysql">
                        (If(coop_presenta_dim_clientes_scd2.personeria = 'F', 3, If(coop_presenta_dim_clientes_scd2.personeria = 'J', 1, 
                            If(coop_presenta_dim_clientes_scd2.personeria = 'N', 2, 99))))
                      </SQL>
                </PropertyExpression>
            </Property>
        </Level>
    My two questions are: does in fact Mondrian handle the PropertyExpression; and if so, is the above example code correct?

    I have tried numerous times to use the mentioned property but after having failed miserably, resorted to use the <Property> and include the "IIfs..." in a Calculated Measure..

    I am working with Mondrian 3.0 on PCI
    1.7.0.1062

    Thanks in advance for your assistance,
    Regards, DMUrray3

  2. #2
    Join Date
    Nov 1999
    Posts
    1,559

    Default

    I think I made a mistake while reworking the documentation to describe various places that expressions can be represented as sub-elements. PropertyExpression is not a valid element, and never has been. It would be nice if mondrian supported it, but it doesn't.

  3. #3
    Join Date
    Jan 2007
    Posts
    461

    Default

    Thanks anyway....

    BTW the mistake in the documentation is on the XML Elements detail at the end of the documentation...

    Regards, DMurray3

  4. #4
    Join Date
    Jun 2006
    Posts
    233

    Default

    And much to my dissapointment, it is still there and still not valid.
    "If you want to increase your success rate, double your failure rate."
    Thomas Watson, Sr (former president of IBM)

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts