Cross-Tab and Top-N
Dear Experts,
How can I add Top-N into Cross-Tab?
Thanks,
David
Hi David,
Right-Click on the top left corner of the crosstab and select 'Group Sort Expert'.
This opens up the Cross-Tab Top N and Sort Expert. Specify the Top N value for the groups here based on one of the summary values.
Hope this helps!
-Abhilash
Similar Messages
-
Format Fields in Cross Tab and Calculated Members
Hello:
I have a cross Tab with a calculated member, I need to display one decimal or no decimal in some of the columns so I created a formula in the Display String option like this:
if GridRowColumnValue ("@TestID_desc")= "ALK mg/L
then
Cstr(CurrentFieldValue, "0")
else
Cstr(CurrentFieldValue, "0.0")
But, after I saved the formula the value in the calculated member colums disappears. Any ideas? Thank You in advance!right click on calculated field and go to format field and in number tab select customize button and write the condition for decimals.
regards,
Raghavendra -
Suppress values in Cross-Tab and Cross-Tab Chart if null
I am developing a cross-tab report that has no-values contributing to the summary in a number of cells. For instance, if I were to display the average value for the testing of particle-counts by the day of the month, and no testing was performed on a particular day, then I would hope that the cell would be blank and a plot of the cross-tab would just omit that data point. However, Crystal interprets this as a 0.00 instead of NULL, and the plot (incorrectly) includes the zero-datapoint.
I can suppress the datapoint in the cross-tab if it's zero, but that isn't correct either (as, sometimes, zero will be the correct answer). Even then, though, I cannot suppress the datapoint on the plot.
Anyone have experience with a workaround for this?
Thanks - TimBTW...I found that I can work-around the plotting issue if I convert the chart to a "Group" type (instead of cross-tab). It will then ignore the null-values. Still thinking about cross-tab displaying zero for a summary value when it is working with no data.
Suggestions? -
Is it possible to have each rows of a cross-tab be a hyperlink poiting to another report and how to accomplish that?
My cross-tab rows represent categories, and I have another report for sub-categories (with category name as parameter), I'd like to be able to click a category and view the detail for that category.
Thanks for your help!you need to try using open doc URL
"http://<servername>/businessobjects/Enterprise11.5/InfoView/scripts/opendocument.aspx?sPath=Report+Samples&sDocName=Target.rpt"
to pass the category to your sub report parameter you need to use currentfieldvalue
regards,
Raghavendra -
<p>Hello Guys, </p><p>Need your help for the following problem:</p><p>1. In a Crosstab i have the customers in the Rows and the sum(invoiceamount) in the summarised fields. I have sort (group sort expert) to show the top 10 customers. Now i want to show what is the <strong>sum(of the invoice amount of the top 10 customers only), sum(of the invoice amount of the other customers), sum(invoice amount for all the customers). <font color="#ff6600">How do i get this</font></strong></p><p>2. I have year on Year comparison report. Customer in rows, order date(summarised for each year) in columns, sum(invoiceamount) in the summarised fields. <strong>Now i want to show what was the % growth or decline from last year.</strong> <strong><font color="#ff6600">How do i get this</font></strong></p><p>If you need any more information or explanation please let me know....</p><p>Any help is welcomed</p><p>Vignesh</p>
Search forums for the answer
-
Safari "flickers" /"pixlization" with new tab and top site option
I was using a 20" Imac running snow leopard. Then June'11 I got a 27" Imac and did a complete migration from the old mac to the new. Btw the new 27" is running Snow 10.6.8
Not too long after running with the new 27"Imac, I noticed that within Safari when opening a new tab, I would intermittenly get a "flicker" briefly when opening a new tab. The only other way I know how to explain it is like on Sattellite TV when you get a signal loss - you see momentary pixle flicker on the tv.
I am working with Mac's 2nd level support. The first guy had me to a reinstall of MacOS. Since this problem is easily reproduceable, it seemed to work. However, 2 weeks later it came back. The next guy had me delete all my preferences for EVERYTHING. This initially seemed to work, but quickly the problem came back.
The work around is to set preferences to open an empty page upon a new tab being opened.
It just has me more curious than anything now. Apple's next actions were for me to 1) uninstall every 3rd party app or plugin (NOT easy to do) or 2) wipe/erase the hard drive, reinstall clean mac OS and then bring data back slowly (not easy for me).
I guess the other option would be to upgrade to Lion, see what happens.
I have a very short video which shows this, but nor sure how or where to upload it to show people.
Any thoughts...Btw I was able to find all my Safari Plugin's - hey its a start. Any of these look like potentials to cause this:
Flip4Mac Windows Media Plugin 2.3.6
The Flip4Mac WMV Plugin allows you to view Windows Media content using QuickTime. — from file “Flip4Mac WMV Plugin.plugin”.
application/asx
Windows Media Plugin
application/x-mplayer2
Windows Media Plugin
application/x-ms-wmp
Windows Media Plugin
audio/x-ms-wax
Windows Media Playlist
wax
audio/x-ms-wma
Windows Media Audio
wma
video/x-ms-asf
Windows Media Video
asf
video/x-ms-asf-plugin
Windows Media Plugin
video/x-ms-asx
Windows Media Playlist
asx
video/x-ms-wm
Windows Media Video
wm
video/x-ms-wmp
Windows Media Video
wmp
video/x-ms-wmv
Windows Media Video
wmv
video/x-ms-wmx
Windows Media Playlist
wmx
video/x-ms-wvx
Windows Media Playlist
wvx
iPhotoPhotocast
iPhoto6 — from file “iPhotoPhotocast.plugin”.
application/photo
iPhoto 700
Java Plug-In 2 for NPAPI Browsers
Java Plug-In 2 for NPAPI Browsers — from file “JavaAppletPlugin.plugin”.
application/x-java-applet
Basic Java Applets
javaapplet
application/x-java-applet;jpi-version=1.6.0_29
Java applet
application/x-java-applet;version=1.1
Java applet
application/x-java-applet;version=1.1.1
Java applet
application/x-java-applet;version=1.1.2
Java applet
application/x-java-applet;version=1.1.3
Java applet
application/x-java-applet;version=1.2
Java applet
application/x-java-applet;version=1.2.1
Java applet
application/x-java-applet;version=1.2.2
Java applet
application/x-java-applet;version=1.3
Java applet
application/x-java-applet;version=1.3.1
Java applet
application/x-java-applet;version=1.4
Java applet
application/x-java-applet;version=1.4.2
Java applet
application/x-java-applet;version=1.5
Java applet
application/x-java-applet;version=1.6
Java applet
application/x-java-vm
Java applet
application/x-java-vm-npruntime
Java applet
LogMeIn Plugin 1.0.0.586
LogMeIn remote control components — from file “LogMeIn.plugin”.
application/x-3amlabs-rafiletransfer
File Transfer
application/x-3amlabs-raperfview
Performance Viewer
application/x-3amlabs-raremotecontrol
Remote Control
application/x-3amlabs-raversion
Version
Microsoft Office Live Plug-in
Office Live Update v1.0 — from file “OfficeLiveBrowserPlugin.plugin”.
application/officelive
Office Live Update v1.0
QuickTime Plug-in 7.6.6
The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site. — from file “QuickTime Plugin.plugin”.
application/sdp
SDP stream descriptor
sdp
application/x-mpeg
AMC media
amc
application/x-rtsp
RTSP stream descriptor
rtsp,rts
application/x-sdp
SDP stream descriptor
sdp
audio/3gpp
3GPP media
3gp,3gpp
audio/3gpp2
3GPP2 media
3g2,3gp2
audio/aac
AAC audio
aac,adts
audio/ac3
AC3 audio
ac3
audio/aiff
AIFF audio
aiff,aif,aifc,cdda
audio/amr
AMR audio
amr
audio/basic
uLaw/AU audio
au,snd,ulw
audio/mid
MIDI
mid,midi,smf,kar
audio/midi
MIDI
mid,midi,smf,kar
audio/mp3
MP3 audio
mp3,swa
audio/mp4
MPEG-4 media
mp4
audio/mpeg
MPEG audio
mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa
audio/mpeg3
MP3 audio
mp3,swa
audio/vnd.qcelp
QUALCOMM PureVoice audio
qcp,qcp
audio/wav
WAVE audio
wav,bwf
audio/x-aac
AAC audio
aac,adts
audio/x-ac3
AC3 audio
ac3
audio/x-aiff
AIFF audio
aiff,aif,aifc,cdda
audio/x-caf
CAF audio
caf
audio/x-gsm
GSM audio
gsm
audio/x-m4a
AAC audio
m4a
audio/x-m4b
AAC audio book
m4b
audio/x-m4p
AAC audio (protected)
m4p
audio/x-midi
MIDI
mid,midi,smf,kar
audio/x-mp3
MP3 audio
mp3,swa
audio/x-mpeg
MPEG audio
mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa
audio/x-mpeg3
MP3 audio
mp3,swa
audio/x-wav
WAVE audio
wav,bwf
image/jp2
JPEG2000 image
jp2
image/jpeg2000
JPEG2000 image
jp2
image/jpeg2000-image
JPEG2000 image
jp2
image/pict
PICT image
pict,pic,pct
image/png
PNG image
png
image/tiff
TIFF image
tif,tiff
image/x-bmp
BMP image
bmp,dib
image/x-jpeg2000-image
JPEG2000 image
jp2
image/x-macpaint
MacPaint image
pntg,pnt,mac
image/x-pict
PICT image
pict,pic,pct
image/x-png
PNG image
png
image/x-quicktime
QuickTime image
qtif,qti
image/x-sgi
SGI image
sgi,rgb
image/x-targa -
Data Format in Cross Tab and Parameter window about numeric and date
Hello,
I got a problem to show Year 2008 as 2,008.00, it's rediculous...
My PC and Notebook both show "2008", but my three co-workers' PCs all show "2,008.00"
the group field is: CStr(Year({SJ_Inv;1.TaxDate}))+ ' Sales Analysis'
How to convert such a numeric into text without decimal? CStr looks not workable.
also,
the numeric var in parameter window, sometimes I don't want it to show up comma and decimal, how to format it?
And, the datetime var in parameter window from store procedure, can it be a "Date" without Time for user to entry only?
I will be very appreciate for your helping.
~MichelleHi, Raghavendra,
The reason to use stored procedure is to save server room -- limited data for output; this is why we declare variable in Store procedure, and got problem there -- datetime but not date.
On the other hand, if we declare variable in Crystal report, it's allowed date type, but how to defaut the Date-from as 1st day of current month, and Date-to as Today in Crystal Report parameter setup ?? And then how to pass the parameter to store procedure to limit the data output volume?
(I am also trying to get this done in Store procedure right now..)
The pros and cons exist in Store procedure and Crystal report, which is better is not definite!
Best regards, -
Hi,
How to display only the TOP 10 rows in a cross tab based on the Total field. I am using BW as my source.
Thanks and Regards,
Subbu S.right click on the top left of the cross-tab and choose Group Sort Expert and there will be a top n expert available for the cross-tab.
-
Cross-Tab - conditional suppression and formatting
I have a cross-tab report of "widgets" sold. There are $10 widgets, $20 widgets, and $50 widgets. All widgets will always cost some round dollar amount, never anything like $10.99. My report shows weekly, month-to-date, and year-to-date sales for each widget denomination by both count and total amount by state. For example:
$10 $20 $50
count amount count amount count amount
New York
Week 5 $50 4 $80 1 $50
MTD
YTD
Delaware 1 $10
etc.
I also have totals by row, along with mark-up amounts (11% of gross sales amounts) and net sales (gross - mark-up). These last 3 columns are included in my dataset, not calculated in the cross-tab.
My problem is that I can't figure out how to do 2 things:
1. the count columns for mark-up and net will always be blank, so I want to suppress the "count" column header
2. I want to display the dollar amounts for those 2 columns with 2 decimal places, but the other amounts with no decimals.
Can this be done, and if so, how?
Thanks!
PhilHi Phil,
I also found the following information under Cross-tab Help for suppressing rows or columns. I hope this is what you're looking for. Sylvie
To suppress empty rows and columns
Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
The Cross-Tab Expert appears.
Click the Customize Style tab.
Select either the Suppress Empty Rows or Suppress Empty Columns check box.
Click OK.
Now, when you print the report, empty rows and/or columns will not appear.
To suppress row and column grand totals
Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
The Cross-Tab Expert appears.
Click the Customize Style tab.
Select either the Suppress Row Grand Totals or Suppress Column Grand Totals check boxes.
Click OK.
To suppress subtotals and their labels
If you have more than two groups in your Cross-Tab you can suppress the subtotal and label for one of them.
Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
The Cross-Tab Expert appears.
Click the Customize Style tab.
Click the field whose subtotal you want to suppress.
The Suppress Subtotal and the Suppress Label check boxes become active.
In the Group Options area, select the Suppress Subtotal check box.
Click the Suppress Label check box to suppress the label associated with subtotal.
Click OK. -
How to include both percentages and number values in a cross-tab chart?
Hi,
I created a cross-tab and a multiple pie chart using Crystal XI. I would like to include percentages as well as numbers in my pie charts' slices. Seems I can either show % or numbers but not both!
The multiple pie chart compares different charges for different Departments. It has an On Change Of by "DifferentDepartments" and "ItemCharges" (e.g. Normal, Double Time, Time & half, Shift, Meal... ) and the Summary value is sum of "Labour".
Is there any workaround available? Please advice.
Thanks,
Nazee
Edited by: Nazee TVK on Feb 23, 2012 1:52 AMhi Nazee,
this is possible sometimes, using a workaround, and depending on the values you're showing.
instead of using your department field as the On Change Of field, create a new formula which is something like
{departmentfield} + chr(10) + totext({your group level summary})
as an example using the xtreme sample databae
{Customer.Customer Name} + chr(10) +
totext(Sum ({Customer.Last Year's Sales}, {Customer.Customer Name}))
now in your Pie Chart switch the department field for the new formula you just created.
i have attached a sample report...however, please note that the forums sometimes don't work with these attachments. so you can try different browsers or right clicking on the attachment and doing a save first etc.
jamie -
I have a cross tab that maps closing dates over the prior 13 months and looks like this:
Total
Total 3,004
Sep-08 137
Aug-08 220
Jul-08 251
Jun-08 201
May-08 168
Apr-08 263
Mar-08 212
Feb-08 163
Jan-08 142
Dec-07 100
Nov-07 176
Oct-07 149
Sep-07 109
Jan-00 713
I have mapped everything that is not within the prior 13 month range to Jan 1, 2000. I have used record selection to grab records based on multiple criteria. It looks at cases opened in the prior 13 months and cases closed in the prior 13 months. This looks at opened and closed dates. The 713 is just everything in the past 13 months that doesn't have a closed date. When I don't map it to Jan-00 it displays a blank row. I tried to do a specific order sort but when I ran my report today it did not include Sep-08, not that its difficult to add the month once a month, but is it possible to exclude Jan-00 when its printing the cross-tab and then sort the remaining ones in descending order [most recent month prior to oldest]? I am new to Crystal Reports. I thought it may be in the Formula as Group Sort Order and something like this
if {@Closed Month}= date(2000,01,01) then [not sure of what function to exclude] else {@Closed Month} crDescendingOrder
thank you all for the support so farTry using group selection formula like
{@Closed Month}<>date(2000,01,01)
to exclude JAN data.
Regards,
Raghavendra -
Creating a header for rows/columns in cross-tab with syntax
Hi,
The issue is creating strings for rows or columns' headers. How can I create a formula field which contains more than one seperate string. Such as "aaa", "bbb" and "ccc" are headers and they should be in seperate columns. In short, they will behave like characteristics of one of my query's field but they are just headers of the columns.
..............aaa...bbb...ccc....
row1.......x.......x........x.....
row2.......y.......y........y.....
Also there is another issue about the formulation again. Is there any operator that does the same job as " \n" which is used in C languages to break the line?
before:
aaabbb
after:
aaa
bbbHi Carl;
Firstly, thanks for answering my question. To explain my problem there are two options ahead(for my first question); first one is writing down the actions step by step, the second one is posting an image file(jpeg etc) to visualize it. I think the first one will be enough. If not tell me
Step 1- Create a cross-tab and right click and select cross-tab expert.
Step 2- Click the button "New Formula" and write down any word(such as "Sales") between two -"- sign to make it string.Then save and close.
Step 3- Drag and drop the created formula to "columns" section and fill the other necessary sections with your database's(such as xtreme.mdb which is famous for crystal users) fields.Don't forget to add another column value to "columns" section, since our formula has no link to database.
Step 4- Then click OK to save the changes and lets preview the cross-tab.The result will have one top column and his child or children(that depends on your data). And this top column is behaving like a header not a field.
Now turn the second step but write down a formula for 2 columns or more.For exmple "Sales" and "Profit".So the result will have 2 top columns and their child/children.
My question is "what is the formula for 2 or more columns?"
Also I couldn't get the answer for my second question. What is the meaning of expressions "\c" and ChrW(13)?
Edited by: diabolus on Oct 30, 2009 9:39 AM -
Calculations based on Summarized data in Cross Tab
First off, I'm pretty experienced with Crystal.
I've run accross something that seems like it should be realy easy to do, and the sort of thing you would expect to do in a cross tab... so maybe I'm missing something totally obvious.
I'm doing a year over year comparison of some financial data broken down by month and by quarter.
So, my Rows are Quarter, and a field called 'YEARMONTH' (calculated field, YYYYMM, for ease of sorting)
My column is Year, and for summarized fields, I have the data field I'm interested in which is a float. Let's call it 'Dollars' for sake of argument.
What I want to do is create a summary field (next to the total field) called 'Difference' or 'Delta' that calculates for reach row the difference between my two years (2008, and 2009)
The only solution I can come up with is to dummy in a record from the datasource with a year value of 'Difference' and some other dummy values so that it will show up as a column on the cross tab, and then somehow use the currentrowcolum function or some such creature to mask the output in the column. but now that I type it out here, I'm not sure it's going to work. I also don't think it's going to export the way I want it to either.
I'd really prefer it to be in a cross tab, and not in some manually created cross-tab emulation using manual running totals, but I'll go there if I have to.
Thanks a ton!This is what I did in my report to get the difference
my crosstab looks like this
2004 2005 Total
Total T1 T2 T
USA A B C
INDIA X Y Z
right click on T1 and go to format field and write the suppress condition like this
numberVar d:=0;
currencyVar array arr1;
currencyVar array arr2;
numberVar e;
if GridRowColumnValue('year')=2004 then
(e:=e+1;
redim preserve arr1[e];
arr1[e]:=CurrentFieldValue)
else
(e:=e+1;
redim preserve arr2[e];
arr2[e]:=CurrentFieldValue);
false
right click on T and go to format field and write the Display string condition like this
currencyVar array arr1;
currencyVar array arr2;
totext(arr1[1]-arr2[1])
right click on A and go to format field and write the suppress condition like this
currencyVar array four;
currencyVar array five;
numberVar d;
if GridRowColumnValue('year')=2004 then
(d:=d+1;
redim preserve four[d];
four[d]:=CurrentFieldValue)
else
(d:=d+1;
redim preserve five[d];
five[d]:=CurrentFieldValue);
false
right click on C and go to format field and write the Display string condition like this
currencyVar array four;
currencyVar array five;
numberVar g;
g:=g+1;
ToText(four[g]-five[g])
Note: Please select the option "column totals on top" for crosstab in customize style
Hope this helps!
Raghavendra -
Issue with passing parameters through Java-JSP in a report with cross tab
Can anyone tell me, if there's a bug in Java SDK in passing the parameters to a report (rpt file) that has a cross tab in it ?
I hava report that works perfectly fine
with ODBC through IDE and also through browser (JSP page)
(ii) with JDBC in CR 2011 IDE
the rpt file has a cross tab and accpts two parameters.
When I run the JDBC report through JSP the parameters are never considered. The same report works fine when I remove the cross tab and make it a simple report.
I have posted this to CR SDK forum and have not received any reply. This have become a blocker and because of this our delivery has been postponed. We are left with two choices,
Re-Write the rpt files not to have cross-tabs - This would take significant effort
OR
(ii) Abandon the crystal solution and try out any other java based solutions available.
I have given the code here in this forum posting..
CR 2011 - JDBC Report Issue in passing parameters
TIA
DRG
TIA
DRGMr.James,
Thank you for the reply.
As I stated earlier, we have been using the latest service pack (12) when I generated the log file that is uploaded earlier.
To confirm this further, I downloaded the complete eclipse bundle from sdn site and reran the rpt files. No change in the behaviour and the bug is reproducible.
You are right about the parameters, we are using {?@Direction} is: n(1.0)
{?@BDate} is: dt(d(1973-01-01),t(00:00:00.453000000)) as parameters in JSP and we get 146 records when we directly execute the stored procedure. The date and the direction parameter values stored in design time are different. '1965-01-01' and Direction 1.
When we run the JSP page, The parameter that is passed through the JSP page, is displayed correctly on the right top of the report view. But the data that is displayed in cross tab is not corresponding to the date and direction parameter. It corresponds to 1965-01-01 and direction 1 which are saved at design time.
You can test this by modifying the parameter values in the JSP page that I sent earlier. You will see the displayed data will remain same irrespective of the parameter.
Further to note, Before each trial run, I modify the parameters in JSP page, build them and redeploy so that caching does not affect the end result.
This behaviour, we observe on all the reports that have cross-tabs. These reports work perfectly fine when rendered through ODBC-ActiveX viewer and the bug is observable only when ran through Java runtime library. We get this bug on view, export and print functionalities as well.
Additionally we tested the same in
With CR version 2008 instead of CR 2011.
(ii) Different browsers ranging from IE 7 through 9 and FF 7.
The complete environment and various softwares that we used for this testing are,
OS : XP Latest updates as on Oct 2011.
App Server: GlassFish Version 3 with Java version 1.6 and build 21
Database server ; SQL Server 2005. SP 3 - Dev Ed.
JTds JDBC type 4 driver version - 1.2.5 from source forge.
Eclipse : Helios along with crystal libraries directly downloaded from SDN site.
I am uploading the log file that is generated when rendering the rpt for view in IE 8
Regards
DRG -
How to insert page number on each page for Cross-Tab report?
Hi,
I have created a Cross-Tab in the section Report Header via Crystal Reports 11.
Now, I want to created more Cross-Tabs, and each page has one Cross-Tab.
So, I insert Report Headers to contain Cross-Tabs. But, the report only shows the page number at the last page.
How to insert page number on each page?
Thanks in advance.Hi,
Well, the easiest solution is to place the Cross-tab in the Report Footer, Of course, ONLY if the report contains this single object which I'm assuming is not the case.
If you do not wish to place the cros-tab in the Report Footer, here's what you need to do:
1) Create a formula;
whilereadingrecords;
2) Create a group on this formula. If the report already contains groups, move this formula to the top of the grouping list. It won't affect the other groups or records in any way.
3) Move the Cross-tab from the Report Header to the Group Header1 and suppress Group Footer1
4) Add the Page Number field to the Page Footer
Let me know how this goes!
-Abhilash
Maybe you are looking for
-
Bridge CS4 - Save/Print Photos from Web Gallery
I have only been using Bridge CS4 for the last couple months to put web galleries on a web page. I don't know how to change the settings to allow people to save/print the photos from the web gallery once it is posted on the website. I used to creat
-
another person in the house, who is not computer savvy, has pressed several keys out of frustrastion and now i have lost all colored backgrounds on any page including my screensaver. i can retore my screensaver but nothing else. i tried to fix in a
-
HI frendz, I have to retrieve data considering the date range.I have to check a date in the where condition which should within the last 12 months.So my one interval will be sydatum but how can i get the other interval ie 1 year back date ?? Is
-
Hi SD Gurus, Could some help me with the documents regarding the interfaces used in the SD. Also it would be helpful if some document is available in regards to SAP SD (deliveries) interfacing with 3rd party shipping software. Your help is much appre
-
Salary statement not getting generated after Upgrade
Hi all, We have recently Upgraded to NW 7.4 SP6 from 7.01 SP9 . we are using two standard ESS applications for HR i.e Leave Request and Salary statement. Leave Request application is working fine but salary statement is not getting generated with an