MDX Query Issue

  • This MDX query runs fine-

    SELECT

    KPIValue("XXX") ON COLUMNS,

    (

    [Facility Attributes].[Latitude].Children,

    [Facility Attributes].[Longitude].Children,

    [Facility Attributes].[Building Name].Children

    ) ON ROWS

    FROM

    [Cube]

    The issue we have is that some of the Lat and Longs are null, and we want to omit those from the result set. We tried a 'Non Empty', but we have too many arguments - does anybody know a work around to that?

  • You might try setting up a member for Lat and one for Lon and then put the non empty there, and then use the member(s) in your query

  • cmbrooks08 (9/17/2010)


    This MDX query runs fine-

    SELECT

    KPIValue("XXX") ON COLUMNS,

    (

    [Facility Attributes].[Latitude].Children,

    [Facility Attributes].[Longitude].Children,

    [Facility Attributes].[Building Name].Children

    ) ON ROWS

    FROM

    [Cube]

    The issue we have is that some of the Lat and Longs are null, and we want to omit those from the result set. We tried a 'Non Empty', but we have too many arguments - does anybody know a work around to that?

    I would suggest the following:

    Step 1: During the ETL phase convert all Nulls to a default integer say -1

    Step 2: During OLAP analysis phase filter cell records on the basis of [Value]>-1

    Please let me know incase of any further explanation

    Raunak J

  • Thanks everybody!

    Basically, we ended up filtering the records into an array and eliminated the null records. It seemed to work great!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply