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

creating a cube based on three primary keys

$
0
0
Greetings,
I want to make a cube for analysis on a table that has four values

Fund_code <-- three-digit code (Primary Key)
Dept_code <--six digit code(Primary Key)
Acct_code <--six digit code(Primary Key)
BDGT_amt <--Dollar figure

I just learned about making cubes in BI using the Data source wizard, so now I want to take it to the next level.
These codes are interdependent.
meaning there's a one-to-many relationship between all three codes towards each other.

I want to make a Saiku analysis platform against this table.
I want to be able to group by Fund, Dept, Acct, Fund/Dept, Fund/Acct, and Dept/Acct

I am looking for a way to do this.
Any suggestions?
Thanks

Cumulative SUM not adding zeros

$
0
0
Greetings, I'm noticing that my cumulative sums are not cumulating when the value of the next field is zero.
I have a query That outputs like this:

Code:

date    month    month_day    TRANS_AMT
2014/01/17 00:00:00.000    1    17    58.67
2014/01/17 00:00:00.000    1    17    135.09
2014/01/17 00:00:00.000    1    17    171.82
2014/01/17 00:00:00.000    1    17    18
2014/01/18 00:00:00.000    1    18    0
2014/01/19 00:00:00.000    1    19    0
2014/01/20 00:00:00.000    1    20    0
2014/01/21 00:00:00.000    1    21    2.22
2014/01/21 00:00:00.000    1    21    3056.34
2014/01/21 00:00:00.000    1    21    601.3
2014/01/21 00:00:00.000    1    21    153
2014/01/21 00:00:00.000    1    21    3566.4
2014/01/21 00:00:00.000    1    21    9078.47

Notice on some dates, there's a zero.
I have two Group Bys. First one to Sum the values of the TRANS_AMT by date.
Code:

date    month    month_day    CFYSUM
2014/01/14 00:00:00.000    1    14    33283.75
2014/01/15 00:00:00.000    1    15    16010.5
2014/01/16 00:00:00.000    1    16    142974
2014/01/17 00:00:00.000    1    17    349024.49
2014/01/18 00:00:00.000    1    18    0
2014/01/19 00:00:00.000    1    19    0
2014/01/20 00:00:00.000    1    20    0
2014/01/21 00:00:00.000    1    21    293431.28
2014/01/22 00:00:00.000    1    22    1354121.98
2014/01/23 00:00:00.000    1    23    223047.47
2014/01/24 00:00:00.000    1    24    0
2014/01/25 00:00:00.000    1    25    0
2014/01/26 00:00:00.000    1    26    0
2014/01/27 00:00:00.000    1    27    81662.92

The second to cumulate the sums:

Code:

date    month    month_day    CFYSUM    CFYCUM
2014/01/14 00:00:00.000    1    14    33283.75    33283.75
2014/01/15 00:00:00.000    1    15    16010.5    16010.5
2014/01/16 00:00:00.000    1    16    142974    142974
2014/01/17 00:00:00.000    1    17    349024.49    349024.49
2014/01/18 00:00:00.000    1    18    0    0
2014/01/19 00:00:00.000    1    19    0    0
2014/01/20 00:00:00.000    1    20    0    0
2014/01/21 00:00:00.000    1    21    293431.28    293431.28
2014/01/22 00:00:00.000    1    22    1354121.98    1354121.98
2014/01/23 00:00:00.000    1    23    223047.47    223047.47

I have attached the last group here.
Capture.jpg


As you can see, it's not cumulating. Help?
Thanks.
Attached Images

parameters not working

$
0
0
I am trying to create a report that will take a parameter that will then be used in the query for the data for the report. I created the parameter which is a simple numeric value and then created the query which looks along these lines:

select fld1, fld2, fld3
from tbl
where ( fld4 = ${para1} )

If is use the parameter in the query and then attempt to save it is fails to work when I save the query. Only when I have a literal example for the parameter will it seem to work correctly and show the flds at output to be used in the report. As far as I can tell everything is being done correctly from what I have seen from the documentation but cannot make it work.

Am I doing this incorrectly in some fashion.

Populating Fact Table from multiple tables

$
0
0
So I have 4 tables:

tbl_medic
idregistration
iddisease

tbl_registration
idregistration
idpatient

tbl_disease
iddisease
diseasename

tbl_patient
idpatient
age
gender
location

I have made the age, gender, and location columns as a separate dimension, dim_age, dim_gender, and dim_location, I also have made dim_disease

I want to make this fact table
fact_visit
idregistration
iddisease
age
gender
location

I'm currently confused on how to make a proper kettle transformation to populate this fact table, because it requires data from 4 different tables that are linked to each other with their own foreign keys. I dont know how can I populate the fact table while maintaining the correct order based on idregistration. Ex: at idregistration 1, the age of the patient is 17, gender M, location SF, disease Chicken Pox, all in order according to the table data sources.

Can you give me a clue or example on how to do this? What steps should I use, or even just the gist of it would be very helpful.

I have some problem with map report please help me!!(Marker)

$
0
0
I can make map show maker by get 'city' 'Country'
but my boss want in detail by get latitude and longtitude
I don't know how to do this


Anybody know Please reply and help me please!!!

5.1日本語ランゲージパックがMarketPlaceでリリースされました

$
0
0
手元のCentOS6.5(Oracle Virtual Box4.3.12)に入れてみました。なかなか良い感じです。
Attached Images

Open Flash chart - Nothing is coming to visualize

$
0
0
Hi Forum,

I am looking for 3D affects for one of my requirements and found this can be implemented using Open Flash charts in CDE.

The below is my query output and wanted to represent on a pie Chart

State Amount
------------------------
BC 4334
CA 10511
DF 845
Guerrero 275
Jalisco 265
Mexico 258
Oaxaca 212
OR 2674

Not dealing with bootstrap but blueprint - Given columnName for HTML object usage .. and for the Openflash chart component given height, width, htmlObject,datasource(above queryname) for a simple display of data.

I've checked the the query is working fine with CDA editor... When I preview the dashboard nothing I'm getting on the screen..

Am I missing some thing here ? OR is there any work around to achieve this ?

Thank you.

Sadakar

visualize the error over the trainings cycles ?

$
0
0
Dear community,

give it a chance in Weka to visualize the error of the trainings- and testdatasets over the training cycles?

Here is a example:



If not, how could I implement that?

I am thankfull for every answer.

Jonas

P. S.: I need that to show how fast a Neural Network reduce the errors and compare some Networks.
P. S. 2: A graph over the time and not the trainings cycles would be okay too.

Exported CSV file has all commas last line.

$
0
0
Hi,

We are using Pentaho as embedded reporting engine in one of our Java application. We allow the application users to configure the report to take export as CSV file. It has been observed that this exported file has a last line that is containing only commas, like ",,,,,,,,,,,". This is creating issue when this export facility has been integrated with some other application. This integrated application is throwing exception when it encounters the last line.

Can anyone here please help me understand if I can configure Pentaho not to create this last line? Or any idea why this all commas last line is getting generated in CSV export?

Thanks and regards
Santanu

Protovis chart component : Sunbrust chart implementation.

$
0
0
Hi Forum,

I'm writting below code to work with sun brust .. but failed to get the chart on dashboard. Query out is shown at the end of code.

function f(vis,queryResult){
var data = queryResult.resultset;

var partition = vis.add(pv.Layout.Partition.Fill)
.nodes(pv.dom(flare).root("flare").nodes())
.size(function(d){ return d.nodeValue})
.order("descending")
.orient("radial");

partition.node.add(pv.Wedge)
.fillStyle(pv.Colors.category19().by(function(d){ return d.parentNode && d.parentNode.nodeName}))
.data(data)
.strokeStyle("#fff")
.lineWidth(.5);

partition.label.add(pv.Label)
.visible(function(d){ return d.angle * d.outerRadius >= 6});

}

My Query result set is some thing like this :
BC Burnaby 222
BC Cliffside 224
BC Haney 228
BC Ladner 224

CA Arcadia 263
CA Bellflower 239
CA Berkeley 266
CA Beverly Hills 244

OR Beaverton 247
OR Corvallis 239
OR Lake Oswego 265
OR Lebanon 269
OR Milwaukie 274

mondrian roles management

$
0
0
Hi folks!

I need more knowledge, about how mondrian roles are managed by default, i shoot the scenario:

I have this role definition:

<Role name="M_Development">
<SchemaGrant access="none">
<CubeGrant cube="MyCube" access="all">
<HierarchyGrant hierarchy="[Organization]" access="custom" rollupPolicy="partial">
<MemberGrant member="[Organization].[Organization].[37518]" access="all"/>
</HierarchyGrant>
</CubeGrant>
</SchemaGrant>
</Role>

Over this Dimension:

<Dimension name="Organization">
<Hierarchy hasAll="true">
<Table name="`my_table`" schema="`my_schema`"/>
<Level name="Organization" column="organization_id" type="Numeric" uniqueMembers="false">
</Level>
<Level name="Name" column="orgName" type="String" uniqueMembers="false">
</Level>
</Hierarchy>
</Dimension>

And the question is, if the member [Organization].[Organization].[37518] doesn't exists in my_table, i can see all the other members and not an empty result, why ?

It's about any setting by default? Is for the CubeGrant definition?

PD: I use Pentaho release: 4.5.0.stable.49886, it's old, i know.

Thank you!

Specifying a Mondrian database dialect via Pentaho CE?

$
0
0
My data is in Sybase ASE (15.5). I have a simple Mondrian cube (with no embedded SQL expressions in the XML definition) running within Pentaho CE 5.0 which works great against Sybase if I use the open source jTDS JDBC driver. If I use the proprietary Sybase jConnect driver the SQL that Mondrian is generating to my database (surrounding its use of quoted and square-bracketed identifiers) is invalid and I get runtime errors.

I can see in the Mondrian API documentation that there's a Sybase dialect. I'm guessing that Pentaho CE is using a generic dialect when I'm using the Sybase jConnect driver.

How can I specify that it should be using the Sybase dialect when I'm establishing my "JDBC" and/or "Analysis" connections in Pentaho CE?

Thanks in advance for any tips! :-)

Richard

CBF and ctools-installer

$
0
0
Hi there,

I was very pleased to hear that CBF works with 5.1, too as Pedro mentioned in his blog on http://pedroalves-bi.blogspot.de/201...entaho-ba.html. After digging around some time I realized that ctools are installed after all patches are applied.
Anyone any idea how to modify the build.xml to install ctools before patches are processed ????

Thank you for any input !
Peter

User Defined Java Expression: return null if any of the operands are null

$
0
0
I am using one of these steps to calculate a formula like this: ((monthly_value/monthly_value_prev_year)-1)*100

The problem I have is that, for certain rows, specially old ones, both values can be null, not zero but null (which means there is no data stored for them) and therefore, the result of the expression should be also null, implying that the data needed to calculate that field is missing.

I have done a inline if such as this: (monthly_value )== null || monthly_value_prev_year == null) ? null : (((monthly_value/monthly_value_prev_year)-1)*100)

And this fails with a 'Incompatible expression types "void" and "double" error. Both the values and the result are of type Number in Kettle. If I change the entire expression for a 'new Double(12)', I obtain a '12' for each row were the operands are null... so I suspect that there is something with the expression... but in the rows with non-null data it works...

I'm really clueless about this, if any of you have ever been in a case such as this, any advice will be great.

Thanks!

Need guidelines for transformation performance tunning

$
0
0
Hi All,

If any of you have any guidelines for transformation performance tunning. Please share with me.
If you can provide any help on which transformation should be used when? What kind of bottlenecks can reduce the performance and how to over come them.
If there is any link or any material available on net. Please do share.

Thanks in advance.

jfree report help

$
0
0
Hi,i am new to jfree reports..my requirement is that i have nearly more than 100 labels are there to display in a pdf page.so now it is not displaying all those labels because the labels are exceeding the page..The remaining labels has to print in next page of pdf. but it is not happening..i am getting those labels from <groups> tag.. The piece of code is like this...

<!-- GROUPS -->
<groups>
<group name="StoreFilter">
<groupheader height="46" fontname="Arial" fontsize="8" repeat="false">
<string-field fieldname="stores" x="0" y="32" width="550" height="20" alignment="left"/>
<label x="0" y="14" width="150" height="20" alignment="left" fontsize="12">"Store Names"</label>
</groupheader>
<fields/>
</group>

please..can any one provide the solution for this..

Generating Unique ID/Keys

$
0
0
Hi all.
I'm new to PDI so I apologise if theres a simple answer to this question.

We have a situation where we receive a file from x number of sources every month. For every record in each one of those files we want to assign a unique key/ID for tracking purposes further down the line (for example of a record was 'bad' we could easily track it by its ID and amend/remove it). The problem seems to be that each ID needs to be unique across all the files, every month so I'm guessing I need some kind of central 'counter' which we can increment whenever its called.

I've seen a number of different ways to add IDs but none seem to suit my requirements (which I'd have thought would be quite normal!).

Can anyone help!?

Greatly appreciated.
Dave

treeMap leaf node color

$
0
0
Hi, everybody. I'm trying to color a leaf node of treeMap. Can anybody give me a hand? My dificulty is I don't know how to apply the method fillStyle and strokeStyle to the leaf node.


My code is bellow:


def.renderCallback = function () {
var shape = this.chart._multiChartPanel._children[11].chart.basePanel.pvPanel;
shape.fillStyle (function(){

return 'white';
});

shape.strokeStyle (function(){


return 'brown';
});






}

Recognise Excel Format dynamically

$
0
0
Hi All,

I am looking to create a Transformation that will process an excel file and perform some validation and populate an SQL database.
Which is simple in itself.

Slight twist, is that I am looking to dynamically recognize the format of the Excel Spreadsheet (i.e. whether it an xls or xlsx file), and process appropriately.

I have looked at :-
  • Use Get Variable to get Filename (which is passed as parameter to transformation)
  • Use Switch/Case to determine whether filename contains .xls or .xlsx
  • two separate Excel Input components (one to handle xls and another to handle xlsx)


Somehow the Switch still attempts to run both Excel Inputs no matter what the filename is.

Has anybody else had to input from both excel formats?
How did you accomplish it?

Any advice would be welcome.

Regards
Eddie

Exclude a measure from a level in a hierarchy

$
0
0
I have a list of stores that provide to me their sales and transaction data. I want to do some reporting on these stores using Mondrian. Let's say I want to populate the column axis with the number of Sales by Month and then the number of Transactions by Year, where store locations are listed on the row axis. If I simply add the Sales measure to the column axis, it will apply to both the Month and Year levels. The same goes for the Transactions measure. Is there a way I can apply the Sales measure only to the Month level and the Transactions measure only to the Year level?
Viewing all 16689 articles
Browse latest View live


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