Jump to content

Invalid SQL in Measure Expression


vishal29bhp

Recommended Posts

Hello Everybody,

                                I am trying to add Measures Expression in jasperanalysis workbench in cdata element.

                                It is properly validated the mondrian connection. But when i fire MDX query this sql generates Invalid Syntax

                                Error.

                                My Measures are Net Sales , Target and I am  trying to get Last Year Sales From the Measure Expression.

                               

                               Example:

                                <Measure name="Last_Year_Sales" column="amount" aggregator="sum" visible="true">
                                    <MeasureExpression>
                                         <SQL dialect="mysql">
                                              <![CDATA[select distinct 0 as amount from ciph_time_d]]>
                                          </SQL>
                                   </MeasureExpression>
                                 </Measure>
                               

       I think the problem is it is taking sql in aggregate function but how do i get rid of this error.                                                             

Code:


Post Edited by vishal29bhp at 11/05/2009 11:37
Link to comment
Share on other sites

  • 4 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...