Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: slicer dimension in MDX

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default slicer dimension in MDX

    hi ,
    I have a doubt in MDX query in jpivot.When i pass a dimension which has text values as a slicer dimension in the where condition it is working fine.But when i pass an integer type dimension in the where condition i am getting the following exception:

    org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: com.tonbeller.jpivot.olap.model.OlapException: ERROR: function upper(integer) does not exist

    Let me explain this with an example:I have two dimensions in my cube:location and year.I have a measure say no.of products sold.If i want the report for a particular location I pass this in the where condition like : where {[location].[All location].[Boston]}.But when i want the report for a particular year i am trying with the following :{[year].[All year].[1991]}.But i am getting the above mentioned exception.please help me.


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: slicer dimension in MDX

    Try passing a String.valueOf(myInteger) into the method instead.

    // Json

  3. #3
    Junior Member
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: slicer dimension in MDX

    Thanks for the reply.But how do i do this conversion in the query?Please provide a sample query.

  4. #4
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: slicer dimension in MDX

    What does the code look like where you write your query which blows up?

    // Json

Similar Threads

  1. Multi-dimension ArrayList example
    By helloworld922 in forum Java Programming Tutorials
    Replies: 1
    Last Post: February 3rd, 2010, 10:01 AM