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

Error getting plugins from server

$
0
0
Hi everyone,

I am trying to get and install plugin from marketplace in Pentaho BI server.
I can log in and go into Marketplace.
But when i go into marketplace, there is a error with message: "Error getting plugins from server" .
And i don't see any plugin.

I try to use some different of Pentaho BI server, e.g: 4.8.0, 5.2.0.0, 6.1.0.1, but still get the error.
My computer use proxy. I don't know whether pentaho BI server doest support proxy or not?

Please help me to solve this problem.

Many thanks,

Pentaho BI Enterprise Edition Prices

$
0
0
Hello, I've searched and tried to contact but no one answered.
What are the prices or business model for using enterprise edition, and what are the steps to obtain it?
Thanks in advance.

Issue with SET Variable component in a job

$
0
0
Hello All,

I have started exploring PDI just two days ago.

Scenario:
I have many csv files in a directory. I have to pick each csv file one by one and load them in a new table each time (table name should be created dynamically, table name should be same as file name). However, I am facing issue at the very start of my requirement itself.

I am trying to use a SET VARIABLE component in a job where I created a variable DIR_PATH. I am giving the value as C:\PENTAHO\CDFDataFiles for that variable.

Now I have placed a transformation where I am using GET VARIABLE where I am looking for the variable DIR_PATH using ctrl+space but i don't see the variable that I had created in the listing. How can I get the filenames?

If someone can help me out here?

Regards,
Sachin

Pentaho - Sub-Report

$
0
0
Does anyone have information on how to use Sub-Reports with Pentaho Report Designer Application?

I am looking to use Sub-report feature of Pentaho to place 2 different reports in Multiple tabs in the Same workbook.

PRD version 5.2.0.0-209

Thank you
pentcme

very slow subreport

$
0
0
Hello!

I have basic report from Pentaho Data Integration datasource with pdf output.
Average finish time for that report 1500 entries is about 4min., what is acceptable.

After adding banded subreport to Group Footer, performance went down to more than 1.5h for the same report.

Subreport datasource also is Pentaho Data Integration and it is executed for every row by passing parameter to it's query from main report.
Subreport datasource is simple and uses another csv file input to gather and filter data and is very fast itself, when executed standalone.

Visually:

csv -> PDI -> Parent report <- Subreport <- PDI <- csv


Tried with different PDI/PRD versions - results are the same.


Hey folks, what can be done to improve performance?

Normunds

ETL Excel output : how to make CONDITIONAL formatting (with colors, borders) ?

$
0
0
Hi,

I use Pentaho Data Integration to product an Excel document, but I want to make it with conditional or variable formatting stuff (with colors or cell border like example).

Do you know how to do it ?


Thanks for help :)

Executing a Oracle Stored Procedure in Pentaho Report Developer

$
0
0
Hello All,

I am trying to execute a Oracle stored Procedure from the Pentaho reports designer.
The Procedure contains the ouput parameters and those o/p parameters will be displayed as values for the Report columns.

How should we be writing the syntax to execute the procedure. Please help me out in this.
Let me know if you people require any further information to help me out.

Thanks & Regards,
Rajee

Problem with publish schema

$
0
0
Hi, I am new on the suite Pentaho, I build my first cube with Schema workbench like the tutorials indicates. My db server is DB2, I create the connection data source correctly in the Pentaho Administation and I define the publish password in the Publisher_config.xml file.
Later I create a new folder for the schema but when I finish the publish, the application send an error messege HTTP 505 and not publish the schema.
I believe that is all to config but I cant publish the schema. I test with BI server 3.10.0 stable and SchemaWorkbench 3.8. Where is the correct folder where I must to save de schema.xml? Can I publish the schema by other way, manually?

Thanks for the help¡¡

Import text files with different layouts

$
0
0
Friends,


I'm trying to import about 3000 text files and they have different layouts. There are no big differences. For purposes of processing, there are basic fields that are common to all the 3000 files. To give an example of how are the files, see the example below.

"Arq1.txt"
field_A
field_B
field_C
field_D
VALUE
VALUE
VALUE
VALUE
VALUE
VALUE
VALUE
VALUE

"Arq2.txt"
field_A
field_B
field_E
VALUE
VALUE
VALUE
VALUE
VALUE
VALUE

"Arq3.txt"
field_A
field_B
field_G
field_H
VALUE
VALUE
VALUE
VALUE
VALUE
VALUE
VALUE
VALUE



Note that the three files have in common fields "field_A" and "field_B" which are actually those fields that need to complete the transformation.

However, on the tab: Fields of step <Text file input> if I only enter the fields I need, there is a disorganization of the sequence of the fields and as a result the PDI read the wrong value to be in the wrong position. On the other hand, if I insert all fields, the kettle returns an error warning that certain field could not be found in the source file.

Does anyone have any idea what I could do to read the 3000 files treating different layouts?


Thanks a lot and greetings Brazilian.

Error during CSV -> mysql update insert driving me nuts

$
0
0
Hello,


I am trying to update and/or insert records that need to be updated in a mySQL database. I am trying to use spoon by pentaho. I am using the update transformation.


I keep getting an error during import that I just cannot figure out what is wrong.


I've tried formatting and reformatting and just about anything else I can think of.


Here is the error I get when I try to run the process.




=============\\


2016/04/20 20:53:24 - General - Logging plugin type found with ID: CheckpointLogTable
2016/04/20 20:53:25 - cfgbuilder - Warning: The configuration parameter [org] is not supported by the default configuration builder for scheme: sftp
2016/04/20 20:54:24 - General - Starting agile-bi
2016/04/20 20:54:25 - class org.pentaho.agilebi.platform.JettyServer - WebServer.Log.CreateListener localhost:10000
2016/04/20 21:01:27 - Spoon - Transformation opened.
2016/04/20 21:01:27 - Spoon - Launching transformation [MLSFileUpdate]...
2016/04/20 21:01:27 - Spoon - Started the transformation execution.
2016/04/20 21:01:28 - MLSFileUpdate - Dispatching started for transformation [MLSFileUpdate]
2016/04/20 21:01:28 - Pull Latest MLS data.0 - Opening file: file:///C:/Users/Administrator/Downloads/MLS Data/Full Export/fullExport1.txt
2016/04/20 21:01:28 - Pull Latest MLS data.0 - Finished processing (I=792, O=0, R=0, W=791, U=1, E=0)
2016/04/20 21:01:29 - Insert / Update.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Unexpected error
2016/04/20 21:01:29 - Insert / Update.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : org.pentaho.di.core.exception.KettleStepException:
2016/04/20 21:01:29 - Insert / Update.0 - Error in step, asking everyone to stop because of:
2016/04/20 21:01:29 - Insert / Update.0 -
2016/04/20 21:01:29 - Insert / Update.0 - offending row : [Folio_Number String(17)], [#Beds Integer(15)], [#FBaths Integer(15)], [#HBaths Integer(15)], [#HBaths_1 Integer(15)], [Address String(25)], [Approx._Sqft_Total_Area Integer(15)], [Approximate_Lot_Size String(10)], [Area String(15)], [City___Original String(35)], [City_Name String(35)], [Closing_Date String(19)], [Compass_Point String(2)], [Compass_Point_1 String(9)], [Construction_Type String(67)], [County String(17)], [Dade_Assessed_$/SOH_Value Integer(15)], [Dade_Market_$/Assessed_$ Integer(15)], [Days_on_Market Integer(15)], [Design String(8)], [Design_Description String(37)], [Development_Name String(20)], [Elementary_School String(13)], [Geographic_Area String(51)], [I# Integer(15)], [IDX String(3)], [Last_Transaction_Date String(19)],
[List_Price Integer(15)],
[Listing_Type String(23)], [Lot_Description String(64)], [Map_Coordinates Integer(15)], [Map_Coordinates_1 String], [ML# String(9)], [Model_Name String(18)], [Municipal_Code Integer(15)], [Occupancy_Information String(18)], [Parcel_Number Integer(15)], [Property_SqFt Integer(15)], [Property_Type String(13)], [Remarks String(510)], [Sale_Price Integer(15)], [Sale_Terms String(12)], [Section Integer(15)], [Serial_Number String], [Special_Information String(71)], [SqFt_L.A._of_Guest_House Integer(15)], [SqFt_Liv_Area Integer(15)], [State String(7)], [Status String(16)], [Street_Name String(20)], [Street_Number Integer(15)], [Street_Suffix String], [Subdivision_Information String(61)], [Subdivision_Name String(25)], [Subdivision_Number Integer(15)], [Tax_Amount Integer(15)], [Tax_Information String(78)], [Tax_Year Integer(15)], [Township/Range Integer(15)], [Unit_Number String], [Type_of_Property String(6)], [Type_of_Contingencies String], [Waterfront_Property_(Y/N) String(3)], [Water_Access String(60)], [Year_Built Integer(15)], [Year_Built_Description String(16)], [Zip_Code Integer(15)], [Zoning_Information String(8)], [Agent_Email_Address String(35)], [Agent_License_# String], [Agent_Phone String(12)], [Agent's_Office_Extension Integer(15)], [Exterior_Features String(102)],
[Listing_Agent's_Name String(23)], [Zip_Code_(Last_4_Digits) Integer(15)]
2016/04/20 21:01:29 - Insert / Update.0 -
2016/04/20 21:01:29 - Insert / Update.0 - Error setting value #1 [String(17)] on prepared statement
2016/04/20 21:01:29 - Insert / Update.0 - Parameter index out of range (1 > number of parameters, which is 0).
2016/04/20 21:01:29 - Insert / Update.0 -
2016/04/20 21:01:29 - Insert / Update.0 -
2016/04/20 21:01:29 - Insert / Update.0 -
2016/04/20 21:01:29 - Insert / Update.0 - at org.pentaho.di.trans.steps.insertupdate.InsertUpdate.processRow(InsertUpdate.java:313)
2016/04/20 21:01:29 - Insert / Update.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2016/04/20 21:01:29 - Insert / Update.0 - at java.lang.Thread.run(Unknown Source)
2016/04/20 21:01:29 - Insert / Update.0 - Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
2016/04/20 21:01:29 - Insert / Update.0 - offending row : [Folio_Number String(17)], [#Beds Integer(15)], [#FBaths Integer(15)], [#HBaths Integer(15)], [#HBaths_1 Integer(15)], [Address String(25)], [Approx._Sqft_Total_Area Integer(15)], [Approximate_Lot_Size String(10)], [Area String(15)], [City___Original String(35)], [City_Name String(35)], [Closing_Date String(19)], [Compass_Point String(2)], [Compass_Point_1 String(9)], [Construction_Type String(67)], [County String(17)], [Dade_Assessed_$/SOH_Value Integer(15)], [Dade_Market_$/Assessed_$ Integer(15)], [Days_on_Market Integer(15)], [Design String(8)], [Design_Description String(37)], [Development_Name String(20)], [Elementary_School String(13)], [Geographic_Area String(51)], [I# Integer(15)], [IDX String(3)], [Last_Transaction_Date String(19)],
[List_Price Integer(15)],
[Listing_Type String(23)], [Lot_Description String(64)], [Map_Coordinates Integer(15)], [Map_Coordinates_1 String], [ML# String(9)], [Model_Name String(18)], [Municipal_Code Integer(15)], [Occupancy_Information String(18)], [Parcel_Number Integer(15)], [Property_SqFt Integer(15)], [Property_Type String(13)], [Remarks String(510)], [Sale_Price Integer(15)], [Sale_Terms String(12)], [Section Integer(15)], [Serial_Number String], [Special_Information String(71)], [SqFt_L.A._of_Guest_House Integer(15)], [SqFt_Liv_Area Integer(15)], [State String(7)], [Status String(16)], [Street_Name String(20)], [Street_Number Integer(15)], [Street_Suffix String], [Subdivision_Information String(61)], [Subdivision_Name String(25)], [Subdivision_Number Integer(15)], [Tax_Amount Integer(15)], [Tax_Information String(78)], [Tax_Year Integer(15)], [Township/Range Integer(15)], [Unit_Number String], [Type_of_Property String(6)], [Type_of_Contingencies String], [Waterfront_Property_(Y/N) String(3)], [Water_Access String(60)], [Year_Built Integer(15)], [Year_Built_Description String(16)], [Zip_Code Integer(15)], [Zoning_Information String(8)], [Agent_Email_Address String(35)], [Agent_License_# String], [Agent_Phone String(12)], [Agent's_Office_Extension Integer(15)], [Exterior_Features String(102)],
[Listing_Agent's_Name String(23)], [Zip_Code_(Last_4_Digits) Integer(15)]
2016/04/20 21:01:29 - Insert / Update.0 -
2016/04/20 21:01:29 - Insert / Update.0 - Error setting value #1 [String(17)] on prepared statement
2016/04/20 21:01:29 - Insert / Update.0 - Parameter index out of range (1 > number of parameters, which is 0).
2016/04/20 21:01:29 - Insert / Update.0 -
2016/04/20 21:01:29 - Insert / Update.0 -
2016/04/20 21:01:29 - Insert / Update.0 - at org.pentaho.di.core.database.Database.setValues(Database.java:1030)
2016/04/20 21:01:29 - Insert / Update.0 - at org.pentaho.di.trans.steps.insertupdate.InsertUpdate.lookupValues(InsertUpdate.java:83)
2016/04/20 21:01:29 - Insert / Update.0 - at org.pentaho.di.trans.steps.insertupdate.InsertUpdate.processRow(InsertUpdate.java:299)
2016/04/20 21:01:29 - Insert / Update.0 - ... 2 more
2016/04/20 21:01:29 - Insert / Update.0 - Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
2016/04/20 21:01:29 - Insert / Update.0 - Error setting value #1 [String(17)] on prepared statement
2016/04/20 21:01:29 - Insert / Update.0 - Parameter index out of range (1 > number of parameters, which is 0).
2016/04/20 21:01:29 - Insert / Update.0 -
2016/04/20 21:01:29 - Insert / Update.0 - at org.pentaho.di.core.row.value.ValueMetaBase.setPreparedStatementValue(ValueMetaBase.java:4867)
2016/04/20 21:01:29 - Insert / Update.0 - at org.pentaho.di.core.database.Database.setValue(Database.java:1012)
2016/04/20 21:01:29 - Insert / Update.0 - at org.pentaho.di.core.database.Database.setValues(Database.java:1028)
2016/04/20 21:01:29 - Insert / Update.0 - ... 4 more
2016/04/20 21:01:29 - Insert / Update.0 - Caused by: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).
2016/04/20 21:01:29 - Insert / Update.0 - at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
2016/04/20 21:01:29 - Insert / Update.0 - at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896)
2016/04/20 21:01:29 - Insert / Update.0 - at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885)
2016/04/20 21:01:29 - Insert / Update.0 - at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
2016/04/20 21:01:29 - Insert / Update.0 - at com.mysql.jdbc.PreparedStatement.checkBounds(PreparedStatement.java:3319)
2016/04/20 21:01:29 - Insert / Update.0 - at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3304)
2016/04/20 21:01:29 - Insert / Update.0 - at com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:4016)
2016/04/20 21:01:29 - Insert / Update.0 - at org.pentaho.di.core.row.value.ValueMetaBase.setPreparedStatementValue(ValueMetaBase.java:4759)
2016/04/20 21:01:29 - Insert / Update.0 - ... 6 more
2016/04/20 21:01:29 - Insert / Update.0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1)
2016/04/20 21:01:29 - MLSFileUpdate - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Errors detected!
2016/04/20 21:01:29 - Spoon - The transformation has finished!!
2016/04/20 21:01:29 - MLSFileUpdate - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Errors detected!
2016/04/20 21:01:29 - MLSFileUpdate - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Errors detected!
2016/04/20 21:01:29 - MLSFileUpdate - Transformation detected one or more steps with errors.
2016/04/20 21:01:29 - MLSFileUpdate - Transformation is killing the other steps!






This is the mySQL code for the table that it is going into:




`Folio Number` varchar(50) DEFAULT NULL,
`#Beds` int(11) DEFAULT NULL,
`#FBaths` int(11) DEFAULT NULL,
`#HBaths` int(11) DEFAULT NULL,
`#HBaths1` int(11) DEFAULT NULL,
Address varchar(50) DEFAULT NULL,
`Approx. Sqft Total Area` int(11) DEFAULT NULL,
`Approximate Lot Size` varchar(50) DEFAULT NULL,
Area varchar(50) DEFAULT NULL,
`City - Original` varchar(50) DEFAULT NULL,
`City Name` varchar(100) DEFAULT NULL,
`Closing Date` datetime DEFAULT NULL,
`Compass Point` varchar(50) DEFAULT NULL,
`Compass Point1` varchar(50) DEFAULT NULL,
`Construction Type` varchar(150) DEFAULT NULL,
County varchar(50) DEFAULT NULL,
`Dade Assessed $/SOH Value` int(11) DEFAULT NULL,
`Dade Market $/Assessed $` int(11) DEFAULT NULL,
`Days on Market` int(11) DEFAULT NULL,
Design varchar(50) DEFAULT NULL,
`Design Description` varchar(50) DEFAULT NULL,
`Development Name` varchar(50) DEFAULT NULL,
`Elementary School` varchar(50) DEFAULT NULL,
`Geographic Area` varchar(100) DEFAULT NULL,
`I#` int(11) DEFAULT NULL,
IDX varchar(50) DEFAULT NULL,
`Last Transaction Date` datetime DEFAULT NULL,
`List Price` int(11) DEFAULT NULL,
`Listing Type` varchar(50) DEFAULT NULL,
`Lot Description` varchar(100) DEFAULT NULL,
`Map Coordinates` varchar(50) DEFAULT NULL,
`Map Coordinates1` varchar(255) DEFAULT NULL,
`ML#` varchar(50) DEFAULT NULL,
`Model Name` varchar(50) DEFAULT NULL,
`Municipal Code` int(11) DEFAULT NULL,
`Occupancy Information` varchar(50) DEFAULT NULL,
`Parcel Number` int(11) DEFAULT NULL,
`Property SqFt` int(11) DEFAULT NULL,
`Property Type` varchar(50) DEFAULT NULL,
Remarks text DEFAULT NULL,
`Sale Price` int(11) DEFAULT NULL,
`Sale Terms` varchar(50) DEFAULT NULL,
Section int(11) DEFAULT NULL,
`Serial Number` varchar(255) DEFAULT NULL,
`Special Information` varchar(100) DEFAULT NULL,
`SqFt L.A. of Guest House` int(11) DEFAULT NULL,
`SqFt Liv Area` int(11) DEFAULT NULL,
State varchar(50) DEFAULT NULL,
Status varchar(50) DEFAULT NULL,
`Street Name` varchar(50) DEFAULT NULL,
`Street Number` int(11) DEFAULT NULL,
`Street Suffix` varchar(255) DEFAULT NULL,
`Subdivision Information` varchar(100) DEFAULT NULL,
`Subdivision Name` varchar(50) DEFAULT NULL,
`Subdivision Number` int(11) DEFAULT NULL,
`Tax Amount` int(11) DEFAULT NULL,
`Tax Information` varchar(150) DEFAULT NULL,
`Tax Year` int(11) DEFAULT NULL,
`Township/Range` int(11) DEFAULT NULL,
`Unit Number` varchar(50) DEFAULT NULL,
`Type of Property` varchar(50) DEFAULT NULL,
`Type of Contingencies` varchar(255) DEFAULT NULL,
`Waterfront Property (Y/N)` varchar(50) DEFAULT NULL,
`Water Access` varchar(100) DEFAULT NULL,
`Year Built` int(11) DEFAULT NULL,
`Year Built Description` varchar(50) DEFAULT NULL,
`Zip Code` varchar(50) DEFAULT NULL,
`Zoning Information` varchar(50) DEFAULT NULL,
`Agent Email Address` varchar(100) DEFAULT NULL,
`Agent License #` varchar(255) DEFAULT NULL,
`Agent Phone` varchar(50) DEFAULT NULL,
`Agent's Office Extension` int(11) DEFAULT NULL,
`Exterior Features` varchar(150) DEFAULT NULL,
`Listing Agent's Name` varchar(50) DEFAULT NULL,
`Zip Code (Last 4 Digits)` int(11) DEFAULT NULL

How to set cell height in crosstab report?

$
0
0
Hi, Dear All members.

I use PRD 5.1

Our clients need us to create report with solid border.

We face difficulty to edit cell height
cell_height.jpg
as circled in the uploaded image.

Can anybody give suggestion how to resolve it?

I upload crosstabExample1.prpt too for your reference.



Thanks,


Hanafi,
KL, Malaysia.
Attached Images
Attached Files

How to configure an H2 datasource?

$
0
0
For the life of me I can't get pentaho BI to connect to my h2 datasource.

Current configuration:

Database Type: H2 Native (JDBC)
Host Name: localhost
Database Name: /home/myusername/h2/pemc_for_pentaho
Port Number: 3306
Username: sa
Password: sa

I'm sure my mistake is with the Database Name. If it helps, in tomcat's catalina.out I'm getting this:

org.h2.jdbc.JdbcSQLException: Error opening database: "Could not load properties /home/clim/pentaho/biserver-ce/tomcat/bin/h2:/localhost:3306/ho
me/clim/h2/pemc_for_pentaho.lock.db" [8000-131]

Please help before I lose all my hair over this.

Thanks,
Mark

How to move the user in Pentaho Community 6.0 to mysql?

Conditional repeat rows

$
0
0
Hi guys,

Ive got an example where I want to apply repeat rows. For the first column I have already applied repeat rows through the option in the file input. However the same I want to do for the 2nd column. There is only one if, it should not repeat when the value in the first column changes again. Then it should just leave it null.

repeat row.jpg

Any javascript on this?I tried it with the last_known function, but I did not get it to work properply.
Attached Images

Excel input string vs number data types issue

$
0
0
Hi All

I have a strange issue with Excel input step using Excel 2007 XLSX (Apache POI Streaming)
It seems that it does not properly recognize data types from excel. I get ".0" added to the end of number in excel text field.
Please look at the sample in picture.
Excel_PDI.jpg
Attached Images

Dynamic Height

$
0
0
Hi All!
I am creating a report in PRD, and putting a column coming from database in a band. I inserted the band in report header and changed its layout to block, however the report header itself is in canvass layout. when i run the report, the band elements and the element right under it( which is also a band and i changed it to block layout too) overlap. The only time it doesnt overlap is when i change whole report header to block layout. but that changes the whole layout of report. i have tried setting dynamic height to both true and false and that didnt change anything. Help please.

How to enable safe mode in a bash execution

$
0
0
Hello, I've recently started using Kettle and ran into some problems regarding a weird data type error :

Code:

There was a data type error: the data type of java.lang.Double object [545368.0] does not correspond to value meta [Integer]
which is weird in itself since the value is not defined as a double on the DB, nor do I perform any data type conversion on the transformation.

Anyway, I saw that a solution was running the transformation in safe mode, and it worked just fine in Kettle.

Now trying to set up a shell script to execute the transformation, I can't find any information on how to enable safe mode. Is this even possible?

Thanks in advance,

David

Snowflake schema returns empty results

$
0
0
Good day to you, sirs, I wrote a schema and can't understand, how to make a hierached query, which will group my Orders by Routes AND Resources. I can get hierachy Orders by Routes with measure Sum Driving Time by executing:

WITH
SET [~ROWS] AS
Hierarchize({{[Units].[Routes].[Route].Members}, {[Units].[Routes].[Order].Members}})
SELECT
NON EMPTY {[Measures].[Sum Driving time]} ON COLUMNS,
NON EMPTY [~ROWS] ON ROWS
FROM [Routes]

But how to get it grouping by resources?

Here's schema:
Code:

<?xml version='1.0'?>
<Schema name='Routes' metamodelVersion='4.0'>
    <PhysicalSchema>
        <Table name="resources" keyColumn="resource_id"/>
        <Table name="routes" keyColumn="route_id"/>
        <Table name="orders" keyColumn="order_id"/>
        <Link source="dim_date" target="orders" foreignKeyColumn="time_id"/>
        <Link source="routes" target="orders" foreignKeyColumn="route_id"/>
        <Link source="resources" target="routes" foreignKeyColumn="resource_id"/>
    </PhysicalSchema>
    <Cube name='Routes'>
        <Dimensions>
            <Dimension name="Units" key="Order">
                <Attributes>
                    <Attribute name="Resource" table="resources" nameColumn="name" hasHierachy="false" parent="Warehouse">
                        <Key>
                            <Column table="resources" name='resource_id'/>
                      </Key>
                    </Attribute>
                    <Attribute name="Route" table="routes" nameColumn='route_id' hasHierachy="false" parent="Resource">
                        <Key>
                            <Column table="routes" name='route_id'/>
                      </Key>
                    </Attribute>
                    <Attribute name="Order" table="orders" nameColumn="number" hasHierachy="false">
                        <Key>
                            <Column name='order_id'/>
                        </Key>
                    </Attribute>
                    <Attribute name="Order Number" table="orders" keyColumn="number" hasHierachy="false"/>
              </Attributes>
                <Hierarchies>
                    <Hierarchy name='Routes' allMemberName='All units' >
                      <Level attribute="Route"/>
                        <Level attribute="Order"/>
                    </Hierarchy>
                    <Hierarchy name='Units' allMemberName='All units' >
                      <Level attribute="Resource"/>
                        <Level attribute="Route"/>
                        <Level attribute="Order"/>
                    </Hierarchy>
                </Hierarchies>
            </Dimension>
        </Dimensions>
        <MeasureGroups>
            <MeasureGroup name="Time management" table="orders">
                <Measures>
                    <Measure name="Sum Driving time" column="driving_time" aggregator="sum"/>
                    <Measure name="Sum Waiting time" column="waiting_time" aggregator="sum"/>
                    <Measure name="Sum Service time" column="service_time" aggregator="sum"/>
                    <Measure name="Avg Driving time" column="driving_time" aggregator="avg"/>
                    <Measure name="Avg Waiting time" column="waiting_time" aggregator="avg"/>
                    <Measure name="Avg Service time" column="service_time" aggregator="avg"/>
                </Measures>
                <DimensionLinks>
                    <FactLink dimension="Time" foreignKeyColumn="time_id"/>
                  <FactLink dimension="Units"/>
                </DimensionLinks>
            </MeasureGroup>
            <MeasureGroup name="Cost/Distance" table="orders">
                <Measures>
                    <Measure name="Sum avg cost" column="avg_cost" aggregator="sum"/>
                    <Measure name="Avg cost per order" column="avg_cost" aggregator="avg"/>
                    <Measure name="Sum distance per order" column="distance" aggregator="sum"/>
                    <Measure name="Avg distance per order" column="distance" aggregator="avg"/>
              </Measures>
                <DimensionLinks>
                    <FactLink dimension='Time' foreignKeyColumn='time_id'/>
                    <FactLink dimension="Units" foreignKeyColumn="order_id"/>
                </DimensionLinks>
            </MeasureGroup>
        </MeasureGroups>
    </Cube>
</Schema>

Thank you.

Unable to include drop down parameter in html page

$
0
0
Hello guys,

I have made a dynamic report which changes when the value in the drop changes in Pentaho Report Designer, but when I am trying to run it with html it doesn't show the drop down menu and give me a static page with only one value. Can you guys help me please? There are 5 items in the drop down.

Thank you

Group Calculation

$
0
0
Hi All

Please assist members
1 I have created a report and grouped by different department so I need each department to be in each page example like 5 departments 5 pages.
2 I have calculated totals for each department so at the end of report I need to add all totals for departments together to create grand total.

Thanks
Viewing all 16689 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>