Quantcast
Channel: Pentaho Community Forums
Viewing all 16689 articles
Browse latest View live

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

$
0
0
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!

Convert number in brackets/number in parentheses to numbers with sign

$
0
0
Hi

I get a file with amounts in $###.##;($###.##) from text file. How do I convert to numbers with sign and remove "$" currency?

Thanks

Microsoft SQL Server Connection problems

$
0
0
I have a weird situation in that my transform has 3 steps that require a connection to a MSSQL Server. The transform is failing with the following errors

Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
Network error IOException: Connection timed out

I am using the latest sqljdbc4.jar file. The Connection tests OK in PDI.

I can run the job perfectly with only one step in the transform (one connection) but when I try and run it with the three steps it fails in the initialisation stage.

I can run the job perfectly on my desktop (Ubuntu 13.10).

The job is failing on our PDI server (Ubuntu Server 10.04 LTS). The job used to work but now does not.

Any suggestions because I am all out of ideas.

getting quartz error while start BI server 5.1

$
0
0
I am using Pentaho BI 5.1 community edition and mysql 5.6

Getting following error while run server. After google search I found that mysql version issue to update OPTION SQL_SELECT_LIMIT=5
http://stackoverflow.com/questions/1...select-limit-1
Is It bug in pentaho BI?

Code:

mysql> select VERSION();
+--------------+
| VERSION()    |
+--------------+
| 5.6.13-log |
+--------------+
1 row in set (0.00 sec)

mysql> SET OPTION SQL_SELECT_LIMIT=10;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=10' at line 1


mysql>  select VERSION();
+------------+
| VERSION()  |
+------------+
| 5.5.11    |
+------------+
1 row in set (0.00 sec)

mysql> SET OPTION SQL_SELECT_LIMIT=10;
Query OK, 0 rows affected (0.00 sec)Older versions of MySQL employed SET OPTION, but this syntax is  deprecated in favor of SET without OPTION.

You should just use SET SQL_SELECT_LIMIT=10; instead.
Incompatible Change: The obsolete OPTION modifier for the SET  statement has been removed.

Code:

2014-01-23 10:06:23,586 ERROR [org.quartz.core.ErrorLogger] An error occured while scanning for the next trigger to fire.
org.quartz.JobPersistenceException: Couldn't acquire next trigger: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=5' at line 1 [See nested exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=5' at line 1]
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2785)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport$36.execute(JobStoreSupport.java:2728)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3742)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2724)
    at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:263)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=5' at line 1
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.Util.getInstance(Util.java:386)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2619)
    at com.mysql.jdbc.StatementImpl.executeSimpleNonQuery(StatementImpl.java:1606)
    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2268)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
    at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectTriggerToAcquire(StdJDBCDelegate.java:2921)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2742)
    ... 4 more

How het xml as datasource with http authorization?

$
0
0
I need in my report xml datasource. Provided xml link requires http authentication, how I can add this datasource?

Pentaho 5.0 encoding and metadata

$
0
0
Hi,

I'm having trouble working with metadata file which include special characters such as åäö.

When working with metadata editor, characters are shown okay. Then I published the file and trying to use it on PIR. There the characters are crushed. The metadata file has encoding utf-8 so everything should work correct but there is something in PUC which brakes the letters.

Does the puc (or pir) include own encoding information or have anyone any thoughts what could be done wrong?

Regards
Maria

Excel Attributes-pentaho reports

$
0
0
Hi
How to set background image for labels while viewing report in excel format.
I can achieve setting background image while i am viewing in HTML format.

Untitled.jpg

How we can achieve this in excel o/p too...??????


Thanks
Kavitha S
Attached Images

after assign role admin to new user, BI shows multiple menu , is it BUG?


Exceptions while connecting to mondrian

$
0
0
i am trying to connect to mondrian and trying to execute MDX queries but i am facing some exceptions which i am unable to resolve.
Following is my code.Can anyone help me out with this.it's little urgent!!
thank you in advance!!!



import java.util.*;
import java.sql.*;


import org.olap4j.*;
import org.olap4j.metadata.*;


public class OlapTest {


public static void main(String args[]) throws Exception {


Class.forName("mondrian.olap4j.MondrianOlap4jDriver");
// Class.forName("mondrian.olap4j.MondrianOlap4jDriver");
Connection test = DriverManager.getConnection(
"jdbc:mondrian:" +"Jdbc=jdbc:mysql://localhost:3306/foodmart?user=root&password=root;" +

"JdbcDrivers=com.mysql.jdbc.Driver;" +
"Catalog= C://Documents and Settings//Administrator.SYS28//My Documents//Downloads//mondrian-3.4.1//demo//FoodMart.xml;");
OlapConnection connection = ((OlapWrapper)test).unwrap(OlapConnection.class);

OlapWrapper wrapper = (OlapWrapper) connection;
OlapConnection olapConnection = wrapper.unwrap(OlapConnection.class);
OlapStatement statement = olapConnection.createStatement();


CellSet result = statement.executeOlapQuery("select {[Measures]} on columns, {[Date].[All years]} on rows from [events]");


for (CellSetAxis axis : result.getAxes()) {
System.out.print(axis.getAxisOrdinal() + ": ");
boolean firstPos = true;
for (Position position : axis.getPositions()) {
if (!firstPos) {
System.out.print(", ");
}
System.out.print("{");
boolean first = true;
for (Member member : position.getMembers()) {
if (!first) {
System.out.print(", ");
}
System.out.print(member.getUniqueName());
first = false;
}
System.out.print("}");
firstPos = false;
}
System.out.println("");
}


// Finally, display the Cells
CellSetAxis cols = result.getAxes().get(0);
CellSetAxis rows = result.getAxes().get(1);
for (int row = 0; row < rows.getPositions().size(); row++) {
System.out.println("Row #" + (row + 1) + ":");
for (int col = 0; col < cols.getPositions().size(); col++) {
List<Integer> positions = new ArrayList<Integer>(2);
positions.add(col);
positions.add(row);
Cell cell = result.getCell(positions);
System.out.println(cell.getFormattedValue());
}
}
}
}



Output: Exceptions

log4j:WARN No appenders could be found for logger (mondrian.olap.MondrianProperties).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ReferenceMap
at mondrian.rolap.agg.SegmentCacheManager$SegmentCacheIndexRegistry.<init>(SegmentCacheManager.java:1510)
at mondrian.rolap.agg.SegmentCacheManager.<init>(SegmentCacheManager.java:256)
at mondrian.rolap.agg.AggregationManager.<init>(AggregationManager.java:58)
at mondrian.server.MondrianServerImpl.<init>(MondrianServerImpl.java:172)
at mondrian.server.MondrianServerRegistry.createWithRepository(MondrianServerRegistry.java:184)
at mondrian.server.MondrianServerRegistry.<init>(MondrianServerRegistry.java:48)
at mondrian.server.MondrianServerRegistry.<clinit>(MondrianServerRegistry.java:33)
at mondrian.olap.MondrianServer.forId(MondrianServer.java:77)
at mondrian.olap.DriverManager.getConnection(DriverManager.java:98)
at mondrian.olap.DriverManager.getConnection(DriverManager.java:68)
at mondrian.olap4j.MondrianOlap4jConnection.<init>(MondrianOlap4jConnection.java:135)
at mondrian.olap4j.FactoryJdbc4Plus$AbstractConnection.<init>(FactoryJdbc4Plus.java:323)
at mondrian.olap4j.FactoryJdbc41Impl$MondrianOlap4jConnectionJdbc41.<init>(FactoryJdbc41Impl.java:118)
at mondrian.olap4j.FactoryJdbc41Impl.newConnection(FactoryJdbc41Impl.java:32)
at mondrian.olap4j.MondrianOlap4jDriver.connect(MondrianOlap4jDriver.java:132)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at OlapTest.main(OlapTest.java:14)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.map.ReferenceMap
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 18 more

Exceptions while connecting to mondrian

$
0
0
i am trying to connect to mondrian and trying to execute MDX queries but i am facing some exceptions which i am unable to resolve.
Following is my code.Can anyone help me out with this.it's little urgent!!
thank you in advance!!!



import java.util.*;
import java.sql.*;


import org.olap4j.*;
import org.olap4j.metadata.*;


public class OlapTest {


public static void main(String args[]) throws Exception {


Class.forName("mondrian.olap4j.MondrianOlap4jDriver");
// Class.forName("mondrian.olap4j.MondrianOlap4jDriver");
Connection test = DriverManager.getConnection(
"jdbc:mondrian:" +"Jdbc=jdbc:mysql://localhost:3306/foodmart?user=root&password=root;" +

"JdbcDrivers=com.mysql.jdbc.Driver;" +
"Catalog= C://Documents and Settings//Administrator.SYS28//My Documents//Downloads//mondrian-3.4.1//demo//FoodMart.xml;");
OlapConnection connection = ((OlapWrapper)test).unwrap(OlapConnection.class);

OlapWrapper wrapper = (OlapWrapper) connection;
OlapConnection olapConnection = wrapper.unwrap(OlapConnection.class);
OlapStatement statement = olapConnection.createStatement();


CellSet result = statement.executeOlapQuery("select {[Measures]} on columns, {[Date].[All years]} on rows from [events]");


for (CellSetAxis axis : result.getAxes()) {
System.out.print(axis.getAxisOrdinal() + ": ");
boolean firstPos = true;
for (Position position : axis.getPositions()) {
if (!firstPos) {
System.out.print(", ");
}
System.out.print("{");
boolean first = true;
for (Member member : position.getMembers()) {
if (!first) {
System.out.print(", ");
}
System.out.print(member.getUniqueName());
first = false;
}
System.out.print("}");
firstPos = false;
}
System.out.println("");
}


// Finally, display the Cells
CellSetAxis cols = result.getAxes().get(0);
CellSetAxis rows = result.getAxes().get(1);
for (int row = 0; row < rows.getPositions().size(); row++) {
System.out.println("Row #" + (row + 1) + ":");
for (int col = 0; col < cols.getPositions().size(); col++) {
List<Integer> positions = new ArrayList<Integer>(2);
positions.add(col);
positions.add(row);
Cell cell = result.getCell(positions);
System.out.println(cell.getFormattedValue());
}
}
}
}



Output: Exceptions

log4j:WARN No appenders could be found for logger (mondrian.olap.MondrianProperties).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ReferenceMap
at mondrian.rolap.agg.SegmentCacheManager$SegmentCacheIndexRegistry.<init>(SegmentCacheManager.java:1510)
at mondrian.rolap.agg.SegmentCacheManager.<init>(SegmentCacheManager.java:256)
at mondrian.rolap.agg.AggregationManager.<init>(AggregationManager.java:58)
at mondrian.server.MondrianServerImpl.<init>(MondrianServerImpl.java:172)
at mondrian.server.MondrianServerRegistry.createWithRepository(MondrianServerRegistry.java:184)
at mondrian.server.MondrianServerRegistry.<init>(MondrianServerRegistry.java:48)
at mondrian.server.MondrianServerRegistry.<clinit>(MondrianServerRegistry.java:33)
at mondrian.olap.MondrianServer.forId(MondrianServer.java:77)
at mondrian.olap.DriverManager.getConnection(DriverManager.java:98)
at mondrian.olap.DriverManager.getConnection(DriverManager.java:68)
at mondrian.olap4j.MondrianOlap4jConnection.<init>(MondrianOlap4jConnection.java:135)
at mondrian.olap4j.FactoryJdbc4Plus$AbstractConnection.<init>(FactoryJdbc4Plus.java:323)
at mondrian.olap4j.FactoryJdbc41Impl$MondrianOlap4jConnectionJdbc41.<init>(FactoryJdbc41Impl.java:118)
at mondrian.olap4j.FactoryJdbc41Impl.newConnection(FactoryJdbc41Impl.java:32)
at mondrian.olap4j.MondrianOlap4jDriver.connect(MondrianOlap4jDriver.java:132)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at OlapTest.main(OlapTest.java:14)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.map.ReferenceMap
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 18 more

How to integrate pentaho 4.0 with liferay 6.0.6?

$
0
0
Hi All,


I am new to pentaho. I am trying to integrate pentaho 4.0 with liferay 6.0. For this read one article in wiki(Location:http://www.liferay.com/community/wik...ntaho+Portlets). In this mentioned as "Download and unzip the latest pentaho_j2ee_deployments-<version>.zip" but i am unable to findout those files. Can any one help me how to proceed to integrate pentaho with liferay.


Thank you.

Filter on Date Fields in Interactive Reports

$
0
0
Hello,

Is there any way to filter on Date Fields for the previous day? Say for example I want the constraint like
Transaction_Date = Previous day (whenever the report is run)

We have scheduled self service reports and we would like to execute the report with filter on the previous day's data.

Any help is appreciated.

Regards,
Rashmitha.B

How can I save report parameters in audit table in database (track report usage)?

$
0
0
I want to track report usage. For every report execution I would like the values of report parameters to be saved in audit table in database. I found the description in the FAQ:

http://community.pentaho.com/faq/reporting.php

Quote:

Can I track report usage?

Yes. The Pentaho BI Platform is built with audited workflow under the covers and the system can track report access, parameter selection, and report delivery.
I configured AUDIT LOGS in Pentaho and it saves the details (report system filepath, execution duration, actor etc.) in a database:
TABLE myAudit (jobId, instId, objId, objType, actor, messageType, messageName, messageTxtValue, messageNumValue, newfield, duration)

Is it possible to save report parameters in the same table?

Best regards,
Dawid Chodura

Reporting Designer and Mondrian Cubes

$
0
0
Hello,

What is possible to do in Reporting designer about Mondrian cubes? Is possible to use it in graphics, charts, and make then interactive?

I am looking at every free solution for dashboard and analysis, so if report designer do something for that, i would like to explore it.

I could not find any topics about that here (even in docs).

Thanks

Axis Properties - Axis Limits - WEKA Visualizer

$
0
0
Hello.

I am a beginner with WEKA and I want to make some non permanent changes in the graphic's properties in the Visualize tab.

I was able to change the colour of the axis by following this guide: http://weka.wikispaces.com/Properties+File.

I am aware of the possibility of select a region by using the rectangle feature in the Select Instance drop-down list but this is not what I want.

Can you teach how to do changes in the axis limits.

For example, by default y-axis graphic is between -7 and 3 for some set of data and I want to change the limits to be between 0 and 1.

Any idea? Following the previous guide, which code I must add to the Visualize.props file to get the desire final result.

Thank you,

Mongo - Batch insert size

$
0
0
Hi, fellow Kettlemen,

Have a question about the Batch insert size parameter in MongoDB Output component.
What does it exactly do?

Because as far as i know, mongo does not support transactions, so what is the purpose of this parameter?

Anyone knows exactly what it does?

Thanks

Daniel

pentaho 5, permits

$
0
0
Hello.
Pentaho 4.8 has a permit execution.
This does not leave edit a dashboard, but if ejecturalo to see.
Pentaho 5, does not have this permission.
How do I get the same result?.


thanks

Buy Pentaho - Pricing

$
0
0
Hello,

I have try every menu and option in pentaho's website but i cant find anything that lead me to pricing, or a person who knows it.

How can i talk to a seller? Do anyone have a directly e-mail?

Thanks

replace

$
0
0
How to replace the string if any text contains some words it has to replace with some value


For example


In my csv file i have two columns and multiple rows with pipe delimited format


Pms|url
?Name?,?sno?|http://localhost:8080/pentaho?Name=?Name?&sno=?sno?
?Name?,?sno?,?address?|http://localhost:8080/pentaho?Name=?...ress=?address?


what i need is it has to search and replace the url column whenever the url content contains with pms columns it has to replace with some value


my final urls has to be formed like below
output
========
http://localhost:8080/pentaho?Name="aaa"&sno=123
http://localhost:8080/pentaho?Name="aaa"&sno=123&address="ABCDEFG"

Simple XML Data Extract - Please help

$
0
0
Pentaho Build 5.0.1-stable

When I preview rows, my field called "URLPayload" contains below for each row:

The URLPayload field contains this data:
<data>
<UrlServiceData ver="1.0">
<payload>
<content isUrl="true">iwantthisdata</content>
</payload>
<poster>posterdata</poster>
<background>backgrounddata</background>
<type>XHTML</type>
<cacheimages>False</cacheimages>
<overlaytext>True</overlaytext>
<showlaunchprompt>True</showlaunchprompt>
<titles>
<title>titledata</title>
</titles>
<descriptions>
<description>descriptiondata</description>
</descriptions>
</UrlServiceData>
</data>

I'm trying to get the data in 'content', and I have the Get XML Data Step configured as such:

File tab:
XML Source is defined in a field? Checked
get XML source from a field - URLPayload

Content tab:
Loop XPath - /data/UrlServiceData/payload
Encoding - UTF-8
Do not raise an error if no files - Checked

Fields tab:
Name XPath Element Result type Type
content content Node Value of String

I've tried so many different combinations without luck, can you guys tell me how to get "iwantthisdata" from the content element?

Thanks,

Deepak
Viewing all 16689 articles
Browse latest View live