Quantcast
Viewing all articles
Browse latest Browse all 16689

Reporting from MDX data source -- still can't make it work!

I'm trying now with a cube from the sample data.
PRD 5.0, Ubuntu 12.04 LTS, OpenJDK 1.6 one place, OpenJDK 1.7 another


  • New DataSource / OLAP / Pentaho Analysis
  • SteelWheels.xml as the Schema File (available at http://Blacklocustsoftware.com/Downl...teelWheels.xml so you don't need to export it)
  • SampleData as the Connection
  • New Query I name "YearlySalesByMarket" ... with this MDX:
  • select NON EMPTY [Time].[All Years].Children ON COLUMNS,
    NON EMPTY [Markets].[All Markets].Children ON ROWS
    from [SteelWheelsSales]
    where Crossjoin({[Measures].[Sales]},
    { Parameter("Status",[Order Status], [Order Status].[Shipped])})
  • That query previews just fine.
  • Second query I name orderStatus with this MDX:
  • Select Non Empty {[Time].[All Years]} on COLUMNS,
    Non Empty {[Order Status].Children} on ROWS
    from [SteelWheelsSales]
  • This query also previews fine
  • On the report, I add a couple fields so it will show something when I preview the report, and it runs fine.
  • Add a Parameter
    • Name: Status
    • Label: Status
    • Value Type: String
    • Data Format:
    • Default Value:
    • Default Value Formula: =["[Order Status].[Shipped]"]
    • Post-Processing Formula:
    • Display Type: Drop Down
    • Query: orderStatus
    • Value: [Order Status].[Type]
    • Display Name: [Order Status].[Type]

  • Now the report will not preview, though the right values show up in the prompt list.


Somewhere in that parameter configuration, I'm going wrong. Does anyone here know how to configure a parameter for an OLAP / MDX data source?

Thanks!

Viewing all articles
Browse latest Browse all 16689

Trending Articles