Multiple Groups in Cross Tab Workbook
I have one worksheet like
-------------------------XXXX----------YYYY-------------ZZZZ
------------------------NO %----------NO %------------NO %
A1--------------------1 1-------------- 4 4----------------5 5
A2--------------------1 1---------------4 4----------------6 6
A3--------------------1 1---------------4 4----------------6 6
Here XXXX, YYYY, ZZZZ values for one column
No and % are data columns
A1,A2 and A3 is another column's values.
I have another column(gender) which I want to add like
-------------------------XXXX----------YYYY-------------ZZZZ--------------MALE--------------FEMALE
------------------------NO %----------NO %------------NO %-------------NO %---------------NO %-----
A1--------------------1 1-------------- 4 4----------------5 5------------------3 3--------------------2 2-------
A2--------------------1 1---------------4 4----------------5 5------------------3 3--------------------2 2-------
A3--------------------1 1---------------4 4----------------5 5------------------3 3--------------------2 2-------
Is it posible to have multiple groups, (direct or indirect way to do that ?)
Thanks
Sachin
Edited by: SachinK on Dec 18, 2008 8:00 PM
Edited by: SachinK on Dec 18, 2008 8:07 PM
Could you not just create a calculated column to cover both original columns and place the calculated column.
Such as:
calc1
case when col1 IS NULL then gender_column
else col1
end
assuming the gender column never has a value at the same time as the original column - which I assuming by your example - then just replace your col1 placement in the worksheet with calc1.
Make sense?
Russ
Similar Messages
-
Grouping when there are multiple subreports with cross tabs
<p>I have been unsuccessful trying to make a grouping work on the master report when the sub-reports contain cross tabs. All stored procedures used contain the exact grouping field.</p><p>Where am I going wrong?</p><p>Thanks</p>
Not much, but good call.
While I'm not too versed in reading them, as I rarely branch out of the Premiere Pro part of the workflow,
a quick look at the EDL in a text editor names the files by name and then provides the timecodes for cuts,
and the like. There's no more information there than anywhere else, though it does tell me what parts
should flow into what parts. I could manually track to the appropriate places in the source files and see if
the cut makes sense, and then the file with the most sensical cuts is the one I'm looking for, but again
that would be a really long process, and would have to be repeated for each and every file.
Definite credit for thinking of it, though. I hadn't thought of what I could glean from there.
As for crashing, I've been taking it slow trying to not risk making mistakes and needing to go back and
re-reimport the files, but I'd assume Premiere Pro doesn't like it too much when you ask it to pull footage
from the fifteenth minute of a twelve-minute clip. I haven't extensively tested it, though, that's why I offered
the second scenario, in which it works and I have to figure out what's out of place. -
I have a cross tab with a date in column 1. I have it grouped by week. This makes the date displayed as a Sunday date, since day 1 is Sunday. If I change the group option to last day, it displays a Saturday date. I would like to see this date as a Friday date.
Is there a formula I should use, or is this a CR option that I should change?
Thanks for any input.Hi,
Create a formula as
DayOfWeek ({Orders.Order Date},crFriday)
Insert the group on this formula.
In group Options > Options > Select the option use a formula as the grooup name> insert the date field as totext(Datefield).
Regards,
Vinay -
Hi Guru,
Have a problem and need your expertise. I already tried searching and cannot find a match solution in my problem.
I have two cross Tab groups. First group is the Month and the second group are the days of the month.
Month> |__________JANUARY 2013_____________|_________FEBRUARY 2013__________| <- Group 1
Days> |__1__|___2___|___3___|___4___|__..31_|__1__|__2__|__3___|__4__|__..28___| <- Group 2
Item 1 | 0 | 3 | 1 | 0 | 3 | 0 | 1 | 0 | 1 | 0 |
Item 2 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 0 | 3 | 0 |
Item 3 | 1 | 3 | 3 | 0 | 1 | 3 | 2 | 2 | 3 | 0 |
May I know the technique for the for-each group for this.
Sorry for my bad English.
Regards,
JimHi Robin,
I think you could achieve that using subreports; in each subreport, you would work on a specific set of data.
In the main report, you would just display the required data from each subrport.
I hope this helps,
Selenia -
Hello All,
Can anyone suggest me how can i create a cross tab report that has multiple fields in columns and multiple fields in summary?
I have 10 formulae for the columns and 10 for the summary. But if I add more than one in columns or it gives some extended report which i want to avaoid. How can i get a normal cross tab report.
Thanks
RobinnPlease re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551 -
Oracle BI Publisher 10.1.3.3.2 - Grouping a cross tab in sections
Hello Experts,
I am trying to make a BI Publisher template containing a cross tab and the cross tab is repeated for sections.This is how the structure of tables are
Costs Dim (Cost_id, Costs_Section , Costs_Type)
Trans_Dim (Trans_id, Trans_Ref, Trans_Narr)
Costs_Fact ( Cost_Id , Trans_id , Amount)
The output needed is somewhat like this
Costs_Section X
Trans_Ref| Trans_Narr|| Cost Type A | Cost Type B
Tref1 | Tnarr1 || Amt 1 | Amt 2 | Sum(Amt1, Amt2)
Tref2 | Tnarr2 || Amt 3 | Amt 4 | Sum(Amt3, Amt4)
Sum(A1, A3)| Sum(A2, A4)
Costs_Section Y
The creation of the table is okay and that is done via the Cross tab wizard , but when i add the costs section , the output is garbled.
The dimensional columns disappears and the sum remains..
Any leads , help would be greatly appreciated.
Thanks and Regards,
-PKBCheck these, use that forum for specific to BIP
Re: Run BI Publisher from the command line through a shell script
Is there a UNIX command line to export/import XML Publisher templates?
Ifhelps mark -
Unable to create cross tab report with multiple level dynamic columns
Hi Gurus,
We are trying to develope group above cross tab report with BI Publisher.
i am unable to achieve multiple level columns dynamically.Using cross tab wizard i can achieve single level measure column ,but not the second level column.
Output should look like this:
Country1
Region1 Region2 Region3 --(level1 column)
d1 d2 d3 d1 d2 d3 d1 d2 d3 -- (level2 column)
Row1 10 20 30 70 80 90 40 70 90 --data
Row2 21 24 54 65 23 64 64 76 87
Here regions and d1 d2 d3 may vary based on xml data.Also we have page break on country.
Thanks,
MaheshHi kavipriya,
Any update on this.I have set the rtf and xml to ur gmail id.
Thanks,
mahesh -
Issue in developing cross tab report with wizard in 10.1.3.2.1
Hi Gurus,
We are trying to develope group above cross tab report with wizard in BI Publisher 10.1.3.2.1 .
i am unable to achieve multiple level columns dynamically.Using cross tab wizard i can achieve single level measure column ,but not the second level column.
Output should look like this:
Country1
Region1 Region2 Region3 --(level1 column)
d1 d2 d3 d1 d2 d3 d1 d2 d3 -- (level2 column)
Row1 10 20 30 70 80 90 40 70 90 --data
Row2 21 24 54 65 23 64 64 76 87 --data
Here Regions and d1 d2 d3 may vary based on xml data.Also we have page break on country.
Haven't get any solution till now.
Also unable to achieve under line and overline on data for total row.
Need help urgently in this issue.
Thanks,
Mahesh
Edited by: user13450806 on Jan 7, 2011 12:43 AMHi Gurus,
I am still waiting for some one to help me in this issue.
It is very urgent for me to solve this. Did not get any help yet.
--Mahesh -
Cross tab Date Column Grouping
Hi,
I have a cross tab in my report which displays no of tickets opened grouped by day, week or Month, grouping is done based on a parameter GroupBy, which has Day, Week, Month values
Incident Jun -99 Jul-99
Priority1 10 20
Priority2 45 23
if user selects day or week, cross tab should display column in dd/mm/yy format, if its month, MMM-yy format.
I have created formula which returns a date type
GroupBy = Day then Opendate
GroupBy = Week then opendate -dayofweek(opendate)+1
GroupBy = date(year(opendate),month(opendate),1)
and used this date formula as column in cross tab. I tried to format using custom date style...but its not working in cross tab.
if I use totext to format the date formula, data will not be in sorted order...ex, its showing jul-99 before jun-99
can anyone help?
Thanks in Advance,
JyothiYou can avoid multiple cross tabs by using the Display String expression under Field Formatting. The expression that is entered in this field is what is displayed as the field value in the report. Use the same logic as you are using for calculating the value, except return CStr(CurrentFieldValue, <format>), where <format> is the formatting code for the desired date format based on GroupBy.
HTH,
Carl -
Cross-Tab in multiple columns on same page rather than on multiple pages
I have a report that shows temperature readings and the date/time of the reading in a cross tab as a part of a report. The amount of readings causes the cross-tab to take up multiple pages. What I would like to do is set the cross tab to appear three or four times on the same page before going to the next page to reduce the number of pages in my report. Any ideas on how I can do this?
This is what I have:
Page 1:
Date/Time1 | Temp1
Date/Time2 | Temp2
Date/Time3 | Temp3
Date/Time4 | Temp4
Page 2:
Date/Time5 | Temp5
Date/Time6 | Temp6
Date/Time7 | Temp7
Date/Time8 | Temp8
What I want is:
Page 1
Date/Time1 | Temp1..............Date/Time5 | Temp5..............Date/Time9 | Temp9
Date/Time2 | Temp2..............Date/Time6 | Temp6..............Date/Time10 | Temp10
Date/Time3 | Temp3..............Date/Time7 | Temp7..............Date/Time11 | Temp11
Date/Time4 | Temp4..............Date/Time8 | Temp8..............Date/Time12 | Temp12
Page 2
Date/Time13 | Temp17............Date/Time21 | Temp21............Date/Time25 | Temp25
Date/Time14 | Temp18............Date/Time22 | Temp22............Date/Time26 | Temp26
Date/Time15 | Temp19............Date/Time23 | Temp23............Date/Time27 | Temp27
Date/Time16 | Temp20............Date/Time24 | Temp24............Date/Time28 | Temp28hello,
Don's suggestion of creating a "mock cross tab" is a good one.
you can also try this Multiple Columns formatting idea if you wish:
1) create a new report
2) create a group on your date field
3) put a summary on your Temp field and move it into the group header of the group
4) suppress the details section and the group footer
5) right click on the details section header in the design mode and choose Section Expert
6) in the Common tab, choose Format With Multiple Columns
7) in the Layout tab, choose a Width of about 2.66"
8) choose Down Then Across for Printing Directions
9) choose Format Groups With Multiple Columns
10) bring this new report into your existing report as a subreport
jamie -
Cross tab template Formatting. Two Row Groups cannot be on the same line
Hi
I have a cross tab template(Vetsriselvan favor) where it has Multiple Row groups. In the RTF template I want them to be on the same line but somehow it works only if they are one below the other. In this template Comp is the First Group Row then Acct is 2nd Group Row and Expense is the 3rd Group Row. Period is the Column. I want all the Group rows start from the same line instead one below the other. Is it possible to do it?
Comp Acct Expense Period
<?for-each-group:/BIOFASPRJ/LIST_G_SUMDEPR1PERACCT/ <[?for-each-group@column:G_PERIOD_NAME[./PERIOD_NAME!=''];PERIOD_NAME|mailto:?for-each-group@column:G_PERIOD_NAME[./PERIOD_NAME!=''];PERIOD_NAME]?>
G_SUMDEPR1PERACCT/LIST_G_COMP_CODE/G_COMP_CODE;./COMP_CODE?> F_comp
<?for-each-group:./LIST_G_ACCT/G_ACCT [LIST_G_DESCRIPTION/G_DESCRIPTION/LIST_G_PERIOD_NAME/G_PERIOD_NAME/LIST_G_DEPR1/G_DEPR1];ACCT?> <?variable@incontext:G1;current-group()?>acc
<?for-each-group:./LIST_G_DESCRIPTION/G_DESCRIPTION[LIST_G_PERIOD_NAME/G_PERIOD_NAME/LIST_G_DEPR1/G_DEPR1];DESCRIPTION?><?variable@incontext:G2;current-group()?>accUpload the template here
http://apps2fusion.com/forums/viewforum.php?f=60
or
Send me the template and xml to fusionDOTobjectATgmail.com -
Cross-tabs in Multiple Sub-reports
Post Author: Kiwi Jan
CA Forum: Crystal Reports
I have created a crystal report which contains multiple detail sections (Da-Di). Each detail section contains a subreport, which contains a cross-tab.
I have done this because I need to create one excel spreadsheet which contains data from different types of cross tabs.
For example, one cross tab lists accounts and totals, the second lists accounts and totals by cost centre (17 of these), and a third lists accounts and totals by product group (11 of these).
I have lined up all the columns perfectly, and when I export to Excel (Data only), it works perfectly, and I get all the rows and columns of all the cross-tabs in one excel worksheet. Brilliant.
However, when I print, preview or export to pdf, I only see the "real" page and do not see any virtual pages that are shown in each of the sub-reports.
How can I print or view this from the main report and get the virtual pages as well, without stuffing up my export to excel?
Any suggestions would be greatly appreciated.Hi Kim,
What version on Crystal Reports are you using? If its CR 2008 then you can take advantage of the various gridvalue functions and the calculated member feature available.
Here's what you need to do:
1) In 'Preview' mode, right click the 1st col and select Calculated Member > Insert Column
2) This will insert a col after the 1st col. To make the newly added col appear 1st, right click on the top left corner of the crosstab and go to Advanced Calculations > Calculated Member
3) In the Properties area, set the Insert Evaluation to 'Before'
4) Now the new col would be the 1st col in the crosstab and it's values would be 0
5) You said you calculate the Billed Amount on some logic; you can apply the summarization logic by editing the calculation formula
6) Right click one of the 0 values in the new col and select Calculated Member > Edit Calculation Formula. Use the formula in this manner:
select Gridlabelat("Row",currentrowindex)
case "Job1" : 50
case "Job2" : 20
Default : 0
The function GridLabelAt() accepts 2 parameters: 1st is the name of the row. In this case it would be your database field name. Suppose your database field used as a row is called Customer.Country then the formula would be:
Gridlabelat("Customer.Country",currentrowindex)
You can use if-else instead of the select -case if you like, but this is where you need to apply the logic for billed amount.
At last, you'd notice that the Header for this col is blank. Just Right click the blank header and select Calculated Member > Edit Header formula and type in "Billed".
That's it! The grand totals for the row won't add the values from the calculated member.
Hope you get this working.
-Abhilash -
Discover group problem with cross tab report
Hi, I'm working on a cross tab report in discoverer 4i and I'm having a problem with two of the colums. I'm doing a count on one field but because they are called something different they are being shown as two seperate columns rather than 1.
I have one called 101 -AVG and another called 101-AVG. My condition pulls every result back that starts with 101 in the table. So because in the table the values are different it breaks the count into totals for 101 -AVG and 101-AVG.
Is there some way I can group these results together into one field?
thanks,
IanPitson,
better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
BI Publisher
Regards
Rainer -
Problem with Cross-tab report (RTF Template) null values, current-group()
Hi, experts!
I generate Cross-tab report using RTF Tamlpate and I have problem with grouping.
My XML file have to be with one group only because I want to using dynamic regrouping inside the RTF template.
Here is my data structure (XML file):(Look the images for details)
http://img156.imageshack.us/img156/3997/xmlstructureay9.jpg
=======================
WITH GROUPS
=======================
Here is my RTF template:
http://img151.imageshack.us/img151/2951/resultcrosstabbycustomehf8.jpg
When I'm using grouping and I want to have for each group cross-tab report I have the following problem: (Look the images for details)
http://img156.imageshack.us/img156/8786/resultcrosstabbycustomect9.jpg
And this is my code I'm using inside the RTF template with groups:(Look the images for details)
http://img156.imageshack.us/img156/4253/fieldbrowserxb7.jpg
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
=======================
WITHOUT GROUPS
=======================
Here is my RTF template:
http://img151.imageshack.us/img151/9545/resultcrosstabwithoutgrzg7.jpg
When I generate one cross-tab there is no problem: (Look the images for details)
http://img156.imageshack.us/img156/7030/resultcrosstabwithoutgrsr1.jpg
This is my code I'm using inside the RTF template WITHOUT groups:(Look the images for details)
http://img151.imageshack.us/img151/7030/fieldbrowserwithoutgrours8.jpg
Can someone give me a hand to deal with this?
Thank you!Pitson,
better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
BI Publisher
Regards
Rainer -
BEx Broadcaster - Using a Workbook with multiple queries on different tabs
Hi,
I was wondering if any has used Bex Broadcaster to broadcast a workbook that contains multiple queries on different tabs in the workbook. I believe someone has mentioned that this was an issue in the past and I was wondering if this now a possibility with Bex Broadcaster
If you were able to do this successfully, please let me know.
ThanksHello
Of course it is possible.
But, if you want to broadcast a workbook, you have to use a Precalculation Server.
Without precalculation server, workbooks cannot be precalculated and broadcasted.
More details, please check the note below:
1461398 BW 7.X(7.20) Precalculation - General Info. & Limitations
Best regards,
Edward John
Maybe you are looking for
-
File does not exist: /servlet/f60servlet
Hi, We have a Developer 2000 application which is running on 9ias. Till last week the UAT system was working ok. Since i re-started, it stopped working. The apache error log displays the following error messages: [Tue Jan 25 15:53:08 2005] [error] [c
-
I am changing to iCloud on my iMac, MacBook Air and my iPhone. My iMac and MacBook both moved over to iCloud but my iPhone when I go to Settings and click on iCloud it shows my Mail setting turned Off. When I turn it on it wants me to create a new em
-
What is the best way to change the flooring in an image keeping perspective?
For example, I have an image of a lounge room and want to show a client different flooring options including tiles, floorboards. Key is keeping the perspective and being able to easily select and replace the floor. Thank you!
-
Wiki haven't how to login to lxde with kdm.
I have installed lxdm, but can't find to login to lxdm with kdm in Wiki. I search in google and find this solution. https://bbs.archlinux.org/viewtopic.php?id=72595 Xabre wrote: There allready has been theme about this.. Just copy /usr/share/xsession
-
ASA Modular Policy Framework - Global vs. Interface
I understand from the Cisco documentation that a service-policy applied to an interface on an ASA 5500 series firewall, will override the default global service-policy. However, I am not clear on whether it will override the entire global service-po