How do I keep Cognos from splitting my subgroups across pages? - reporting

I am reporting off of a cube into a crosstab with the results being summarized. For example:
| Val 1 | Val 2
----------------------------------------------------
Division 1 | Region 1 | Location 1 | 5.00 | 3.00
| |-----------------------------
| | Location 2 | 2.00 | 6.00
| |-----------------------------
| | Reg Sum | 7.00 | 9.00
|----------------------------------------
| Region 2 | Location 1 | 4.00 | 3.00
| |-----------------------------
| | Location 2 | 12.80 | 7.40
| |-----------------------------
| | Location 3 | 5.00 | 11.00
| |-----------------------------
| | Reg Sum | 21.80 | 21.40
|----------------------------------------
| Div Sum | 28.80 | 30.40
----------------------------------------------------
Division 2 | Region 1 | Location 1 | 3.00 | 12.85
etc...
Currently, Cognos is breaking the page in the middle of the Division 1/Region 2 subgroup. If the whole region subgroup (including summary) doesn't fit on the remainder of the page, I want it to go to the next page.
I've tried pagination at the region and location level. That has not given me the results I want. Any ideas as to how I can achieve this?
EDIT: Forgot to mention that this is Cognos 8.4.

well, a litle bit out-dated, but nevertheless here is what worked for me:
unlock
place a 1x1 table object inside the Regions cell
place the regions name inside the table object (just drag it inside
the table)
in the table's paginations properties deselect the option Allow row
contents to break across pages
you might also need to specify the height of the table object.

You can use Page breaks to achieve this.
In your example, click on Region data item. From Structure menu, click "Set Page Break using Master/Detail".
That will do the trick.
Please note, for crosstab and chart, report studio creates Page Break using Master/Detail relationship. If you were using List or repeater, then you could use the option of creating page break without Master/Detail relationship.
Please refer to IBM Infocenter for more information on Page Breaks and Page Sets. http://publib.boulder.ibm.com/infocenter/c8bi/v8r4m0/index.jsp?topic=/com.ibm.swg.im.cognos.c8bi.doc/welcome.html

Related

How can i merge multiple columns from two different files in talend

Lets say i have multiple columns coming from two different files like that :
USERNAME | AGE | GENDER | CHILDREN
Joe | 23 | male | 2
Annie | 45 | female | 5
| | |
And another one like this :
USERNAME | AGE |
Jonathan | 33 |
Mike | 41 |
And i want to merge the data of the columns that have the same name into one like this while keeping the data of the columns that are unique at each field:
USERNAME | AGE | GENDER | CHILDREN
Joe | 23 | male | 2
Annie | 45 | female | 5
Jonathan | 33 | |
Mike | 41 | |
Sorry if the answer is obvious, im new to talend, thanks.
What tool is available toy you?
The Append function in SAS for example can do this for you.
You can use the append approach in Python, R or other language you intend using.
For Talen:
Copy the complete subjob1 – copy me sub job and paste it to create a second sub job.
Link the two sub jobs using an onSubjobOK link.
Open tFixedFlowInput, and change Records from first subjob to Records from second subjob.
Open tFileOutputDelimited on the new sub job, and tick Append, as shown in the following screenshot:
use a tUnite component to accomplish that
here is the link of the documentation : https://help.talend.com/r/fr-FR/8.0/orchestration/tunite
your flow would be
tFileInput1(excel or csv ) ----------------------------------------------
|
| ->tUnite -> tLogRow
tFileInput2(excel or csv )->tMap (add to empty fields GENDER & Children )|

compound attribute in ezpublish content class

I am designing a content class in ezpublish 5 where i need a filed like rating in different categories. I want to give content editor an interface in admin panel where he can choose a category to rate from dropdown and then text field to put rating point (1-5).
How to achieve this in ezpublish5?
The Matrix data/fieldtype sounds like it's close to what you need.
It allows you to set a table of values with a set number of columns. The limitation here is that each field is a free text entry for users.
| Review | Rating | Notes |
|-------------------|-------------|--------------------|
| Customer Service | 5 | Friendly & polite |
| Quality of Food | 4 | Tasty & Plentiful |
| ... | ... | ... |
There is a symfony bundle available for the Matrix fieldtype to allow access to the data in the Symfony stack: https://github.com/ezcommunity/EzMatrixFieldTypeBundle.
Alternatively there is the option to create your own data/fieldtype: http://share.ez.no/learn/ez-publish/creating-datatypes-in-ez-publish-4 & https://doc.ez.no/display/EZP/eZ+Publish+5+Field+Type+Tutorial

SSRS Report matrix

I want to display a graph with a variable number of curves (that I get from a dataset) :
So I can have this :
Trend 1 | Tag 1.1 | Unit 1 |
Trend 1 | Tag 1.2 | Unit 2 |
Trend 2 | Tag 2.1 | Unit 1 |
Trend 2 | Tag 2.2 | Unit 2 |
Trend 2 | Tag 2.3 | Unit 3 |
I Want to display this in a matrix with a group on Trend name to have somethning like this :
Trend 1 | Graph SubReport |
Trend 2 | Graph Subreport |
In the subreport I have Tag1Name, Tag2Name, ... Tag10Name (It was designed like this and I cannot change it :/)
So I have to pass as a parameter to the subreport tag names and I don't find a way to to do this, because when I do it "normally" I have only the first Tag (Tag 1.1 for trend1 and Tag 2.1 for Trend 2).
Do you have any idea ?
I use SSRS 2008 (NOT R2 - so no lookup feature).
Thanks in advance.

Select only the rows which timestamp correspond to the current month

I am starting to try some experiments using Google SpreadSheets as a DB and for that I am collecting data from different sources and inserting them via spreadsheets API into a sheet.
Each row has a value (Column B) and a timestamp (Column A).
+---------------------+------+
| ColA | ColB |
+---------------------+------+
| 13/10/2012 00:19:01 | 42 |
| 19/10/2012 00:29:01 | 100 |
| 21/10/2012 00:39:01 | 23 |
| 22/10/2012 00:29:01 | 1 |
| 23/10/2012 00:19:01 | 24 |
| 24/10/2012 00:19:01 | 4 |
| 31/10/2012 00:19:01 | 2 |
+---------------------+------+
What I am trying to do is to programmatically add the sum of all rows in Column B where Column A is equal to the current month into a different cell.
Is there any function that I can use for that? Or anyone can point me to the right direction on how can I create a custom function which might do something like this? I know how to do this using MySQL but I couldn't find anything for Google SpreadSheets
Thanks in advance for any tip in the right direction.
Would native spreadsheet functions do?
=ArrayFormula(SUMIF(TEXT(A:A;"MM/yyyy");TEXT(GoogleClock();"MM/yyyy");B:B))

Category/Product Pageviews Magento

I run an ecommerce company which is made on Magento.
I need to find Category and Product wise page views and conversions for my website.
Google Analytics does not show me the Pageviews data for the said groups.
Is there a way to track the same in GA or some extension to do so.
We tried to use Jirafe, the data was right but it seems to run the cron every hour and would
at times use too many DB instances and thus eating into site bandwidth.
I've got a template that included a popular products widget for the homepage. While researching how to remove a product I didn't want in there, I stumbled up the table report_viewed_product_index which may or nay not be part of their template's code.
The people are "Templates Master" and the module which contains this code is "TM Highlight". The below query may not be perfectly exact, but at least corresponds to our "top 5" products widget.
<?
SELECT sfoi.sku, count(rvpi.product_id)
FROM
report_viewed_product_index rvpi
INNER JOIN
( SELECT DISTINCT sku, product_id FROM sales_flat_order_item ) as sfoi
ON sfoi.product_id=rvpi.product_id
GROUP BY rvpi.product_id
ORDER BY count(rvpi.product_id) DESC
LIMIT 0,10;
+------------+------------------------+
| sku | count(rvpi.product_id) |
+------------+------------------------+
| HM69.BLK | 11055 |
| FP-HUS | 3455 |
| 2VCOILS | 2829 |
| TB900 | 1920 |
| 460-1505 | 1396 |
| 2112-0061 | 1293 |
| JAMBNUTS | 1077 |
| VM520-110 | 1076 |
| TR200038PC | 1066 |
| 016-721 | 1008 |
+------------+------------------------+
?>

Resources