Adding limit parameters to bar charts in Pentaho Report Designer - mdx

I am using Pentaho Report Designer to generate reports from my olap cube using mdx. I want to generate bar chart reports from Pentaho Report Designer. I have 50000 records and writing a MDX query to display keywords along with their count. Problem is bar chart that is created is of 50000 records, but I want to pass two parameters that act as start and end value to display i.e user is prompted to enter starting and ending parameters (suppose he enters 1 and 10) so 10 records should be displayed.

I do not know the specifics of Pentaho MDX, but in general, I would use the following approach, assuming the 50000 records are in hierarchy [DimA].[Record]:
WITH SET [Selected Records] AS
SubSet([DimA].[Record].[Record].Members,
ParamRef('start') - 1,
ParamRef('end') - ParamRef('start') + 1
)
SELECT { [Measures].[Count] }
ON COLUMNS,
[Selected Records]
ON ROWS
FROM [MyCube]
I am a bit guessing about the use of ParamRef in Mondrian MDX here. The SubSet function is described for Analysis Services here: http://msdn.microsoft.com/en-us/library/ms144767.aspx

Related

Execute a Dataset based on parameter value -SSRS

I have an SSRS report which have two datasets. One Dataset for showing the Amount of purchase in detail level for All Region Managers & other dataset is for displaying amount of purchase for individual manager. If the user select all managers as input, the report displays data from both datasets. If the user select a single manager, Detail level information will be hidden and data for that manager alone will be displayed ( Handled this by creating visibility expression in dataset). But whenever the report exectuted stored prcoedures for both datasets called. Is it possible to configure the execution of report dataset based on parameter values?
for e.g : In dataset1 properites I gave below expression,
=iif(Parameters!ManagerID.Value= -1,exec procedure1 ,0)
But it gave me error. How to make a dataset execute based on a parameter value?
Use an 'if' condition in both data sets. For example:
if #parameter = 'A'
...query....
else
select 1
And for the tablix, use visibility expression to hide based on the parameter va.

Combine multiple database with different queries in 1 report ( bar chart)

I need to create a report using Pentaho User Console. I want to view my report in bar chart. In that report I need to include multiple query from different database and then the result in 1 chart. For example I have 3 database: Car, House, employee. I also have 3 query: quantity of car for each type, quantity of available house, total no of employee for each department. 3 different database and 3 different query but I want to show all 3 result in 1 chart. How I can do that?
You know about schema creation?
Go through on google how to create schema, what is fact table, what is dimension table..
And you can use pentaho schema workbench. It is used for your kind of purpose only.
and after creating schema in pentaho schema workbench you can publish that schema in pentaho BI server and you can view it in bar chart over their, and you can do analysis and drill-up , drill-down, slicing, dicing kinds of operations as well.
You can use kettle transformation as a data source for Pentaho report. Within the transformation it's perfectly fine to query 3 different DBs and prepare the result data set.

Creating calculated items in powerpivot

I am trying to create a new row of data like the following:
Line item. Actuals
Total compensation 200
Net revenue 400
Net rev per total comp. 2
I used to be able to do a calculated item to do this in old pivot table but how do I accomplish in powerpivot? It needs to be a row calc not a column
If you are using a ssas cube then it is possible using the calculated member option where you can drag and drop line items (members) and divide which is pretty easy
Just connect to SSAS and Query --> Design in the upper menu you can find a calculator, clicking that you can achieve.
can you just elaborate on database used and excel version

Pentaho report designer: display a bar chart

Here is the problem:
I want to show in a chart, using Pentaho report designer, the number of tickets by the resolution duration calculated earlier in the DB.
I have joined an image of the wanted report.
I've tried the following:
In the chart I've set priority in the category-column, and the count (of tickets) in the value-columns, and in series by value: duration < 1, duration < 2 or > 1 , .... It didn't work.
Any thoughts?
Sounds like you're trying to put basic charting to your report. May I offer you 2 links for you to follow? It's been helpful to me in my early days.
A Comprehensive Report Design Tutorial
http://wiki.pentaho.com/display/Reporting/04.+Designing+a+report

Building SSRS time series report from SQL datetime column

I need to create a SSRS report where the user specifies the start and end date (e.g. March 2012 to July 2012) and the result is a report with the following headings:
User Department Product Mar-12 Apr-12 May-12 Jun-12 Jul-12
The dates are stored in a datetime column (e.g.2012-06-11 14:48:04.787) in my SQL table which I'm using to build the time-series report.
Do I need to convert/transpose my SQL table first? Or should I be processing this in SSRS?
Your advice is much appreciated!
Based on your question it appears all your dates are in a single datetime column and your trying to display them, formatted as a month, in a single report with the report columns grouped and renamed based on the month. This is a pivot and I don't think you can do that within SSRS. The dataset will already need to be pivoted by the time SSRS gets it.
So, to me this sounds like something you'll have to do both pre and post SSRS. I did a similar report using days of the month. You can see the winning answer here. as opposed to months of the year.
Thinking through your logice, I think you'll probably have to build the query with the pivot and then send to SSRS. On the SSRS side you need 12 columns for all 12 months and then put some logic to hide the ones that don't get data. Your original pivot will need to be smart enough to pass the empty months so SSRS doesn't error out. The end result will appear the same but needs a lot of pre-thought and design effort up front.
You do the processing using SSRS - you would design it in the GUI editor(BIDS ) , and you can customize things using the VBasic code also(i.e, dates and logic)
Looks like you need an intro, I really recommend this video