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.
~Michelle

Hi, 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,

Similar Messages

  • Conditional Format in Cross-Tabs

    Hello,
    i have a problem with conditional formatting in cross-tabs(Word-Template-Builder)
    My Cross-Tab looks like:
    +++++++++++++++++++ColumnHeader1
    +++++++++++++++++++ColumnHeader2
    +++++++++++++++++++ColumnHeader3
    RowHeader 1 | Row Header 2 | Data
    First Problem: If "Row Header 2" has a certain value, the whole row should have a different background-color or borderthickness should be different
    -i tryed it at "Row Header 2" with +<?if@row:...?><?attribute@incontext:background-color;'lightgrey'?><?end if?>+ but this will only effect the background-color of "RowHeader 1" and outside of the cross-tab. Formatting font-style works fine with this solution.
    Second Problem: Similar to first problem. If "ColumnHeader3" has a certain value, the whole column should have a different background-color or borderthickness.
    -i tryed it at "Column Header 3" with +<?if:...?><?attribute@block:background-color;'lightgray'?><?end if?>+ but this will only effect the background-color of "ColumnHeader 3".
    In case i have to do the conditional formatting at cell ("Data"), how can i address the fields "columnHeader3"/"RowHeader 2" in the if-clause?
    Thanking you in anticipation.

    drop me mail to MY id in Profile Location, with template and xml.
    i can help.

  • 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

  • Help with formatting for Cross Tab Report Crystal 2008

    This is probably a simple question.  I have a cross tab report that displays sales by month for a period of 6 months.  These sales columns are formatted to be numbers with no decimals.  In addition to these columns, I have inserted columns that display the percentage up/down in sales over the previous month.  If I try to format the percentage columns, it changes every column to then display "##,##.##%" when I need to keep the sales columns at "##,###" with no decimal or percentage sign.
    1.  Is there a way to change the formatting of some of the columns but not all in a cross tab report?
    2.  If not, can I add a function that would change these in the calculation formula of the calculated member? 
    I tried to add "%" but it wants it to return a number.
    Here is the current code:
    //The calculation formula is used in place of the summaries in Calculated Members.
    // This calculation formula must return a/an Number value.
    If GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex) = 0 then 0 else
    ((GridValueAt (CurrentRowIndex,CurrentColumnIndex-1,CurrentSummaryIndex) -
    GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex)) /
    GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex)) * 100
    Any help is appreciated. 
    Thank you,
    Tobi

    Carl,
    Thank you for your help.  I did try your method but still couldn't get it to ignore the fact that it wanted a number.  I changed my approach a litte and managed to solve the problem.  Here is the method that I chose which managed to solve the problem.  If this is a poor way to solve it, please let me know as I am always open for new ways.
    Format Field > Number Tab > Customize > Currency  Symbol Tab
    Checked Enable Currency Symbol Fixed, changed  currency symbol to %.  This is the same thing that I did before which changes it for all columns. 
    Beside Enable Currency checkbox, I added this formula:
    // This conditional formatting formula must return one of the following Currency Symbol Constants:
    // crNoCurrencySymbol
    // crFixedCurrencySymbol
    // crFloatingCurrencySymbol
    If GridRowColumnValue("InvoiceLine.TxnDate") = Date(0,0,0) then
        crFixedCurrencySymbol  
    else
        crNoCurrencySymbol
    My added columns have a null date field so they take the currency format.  My other columns do not so they do not take the formatting.
    Thanks again for the help.
    Tobi
    Edited by: Tobi@TABeverage on Dec 2, 2009 3:58 PM

  • Error formatting in Cross tab Object

    Hi  All
    I'm using Crystal XiR2. I have a cross tab in my subreport.
    when I run the report, in preview and try to move from one to next page it is throwing an error "Error formatting Cross tab Object".
    Greatly appreciated for your prompt reply.
    Thanks
    -Kumar

    Hi Kumar
    Please search for the below kbase notes
    1.1212875 - "Error formatting crosstab object" received when previewing a Report
    2.1214209 - Err Msg: "Error formatting crosstab object"
    Please let us know if your issue does not get resolved with these resolutions.
    Hope this helps!!!
    Regards
    Sourashree

  • Conditional format in cross tab

    Post Author: RobotSlave
    CA Forum: Charts and Graphs
    Hello All
    Crystal 2008 12.0.0.549
    I have a crosstab report in that repeats in each GF1 that displays values for several variables over an eleven month span, for instance a shortened data set might look like this:
                           FEB     MAR      APR       MAY ....
    Claims             1233     876         666         888  ....
    sold                 987       987         7 7         8 888  ...
    etc...
    I want to display conditional formatting such that if a value in the claims row is over 800, make the font RED for that column only. When I use a conditional formatting formula in the format editor font dialog, it makes the whole row red, when the values clearly do not all meet the required "800". I have experimented with making certain my value is a number and not a string, and I'm stymied. Does anyone have any input?

    Post Author: rsvn
    CA Forum: Charts and Graphs
    use formula field. Write your condition in that formula field and in select the display string option of the column in the report.Make the display string output as the output of formula field.for eg. @formula -
      Formula Field if e>800 then   conditionelse    condition; Number -
    column in field. Display string option (at the bottom of the field format object --general tab) map the output of the formula field

  • 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 - Tim

    BTW...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?

  • PeopleSoft XMLP : Conditional Formatting for Cross tab report

    I have developed a XMLP cross tab report using ps query. Report runs good for (.htm,pdf,rtf) extension . But I am unable to format the data based on condition.
    Code which get displayed at the data field : <?sum ($G1[(./DESCR=current()/DESCR)]/JOB_REQ_NBR)?>
    any help ot suggestion ?
    Report layout(table) in .rtf format
    H GDESCR*E* Total (Header Row)
    GXLATLONGNAME G999*E* 999*E*
    CTotal G999*E* 999

    <?xml version="1.0" ?>
    - <query numrows="10" queryname="HF_EREC_BU_JOBREQCOUNT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
    - <row rownumber="1">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="2">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="3">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="4">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="5">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="6">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="7">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="8">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="9">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="10">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    </query>

  • Cross-tab and hyperlinks

    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

  • Conditional Formating Issue - Cross Tab

    Hi all,
    I'm trying to create a cross tab with some conditional formating of background colour..
    eg
    i have a background formula of:
    if {@concat} like "*1" then crGreen else
    if {@concat} like "*2" then crYellow else
    if {@concat} like "*3" then crRed
    my cross tab looks like:
                             Subject
    Name           {max of concat}
    But when previewed its not displaying colours correctly eg:
                              Art        English       Maths
    Joe Blogs           ??1           ??2           ??3
    Art result should be highlighted GREEN
    English result should be highlighted YELLOW
    Maths result should be highlighted RED
    Instead every subject result is GREEN?  Has anyone seen this before?  Have any ideas to resolve ?
    Thanks Again,
    Slash

    ABSOLUTE GENIUS.  Works like a charm!!
    Many Thanks,
    Slash.

  • 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

  • Cross Tab And summary fields

    <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

  • Formatting a cross tab report

    Post Author: gronkette
    CA Forum: General
    I have a simple crosstab report column A + column B = column C (total). Rows 1 - 24 and a total
    1  4276  5553  9829
    2  4132  5383  9514
    3 etc.....
    I would like the maximum value in each column to be highlighted in Yellow.....
    thanks
    I'm using CRXI Rel2

    You can do that in single table itself , as one of our friend mentioned above, still you want to do it in multiple table.
    You can change the line spacing from single line spacing between the table to exact and can give 1pt
    try this. otherwise
    send me your xml data and template to,
    fusionDOTobject AT gmailDOTcom
    i will have glance at it,and see if i can help.

  • Firefox keep lagging,freezing and crashing since update 4 when many tabs opened (3 windows, about 150-200 tabs total)

    After upgrading to FF4 problems with flash plugin started, even gif animation keeps lagging. With so much tabs previous version could perfectly manage. I have a 4-core processor, so 64-bit version would be awesome

    Because you still have problems with Firefox in safe mode, I think the problem
    is with something in the computer. Check that everything is updated. Even
    if you are sure it is.
    Have you [https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-caused-malware checked for mal-ware?]
    I'm going to call in the big guys to help out.

  • Cross Tab Size and Formatting

    Good Day To All,
    I have 3 Cross tab that fit perfectly on one page, but when it was created the user used an incorrect field as its columns.
    When I change the column field to the correct field the Cross-Tab increases in size shifting the last cross tab to another page.
    How can I keep the original size. I've tried To lock position and size but that does not work. I also tried using format painter but that only works on fonts size. I am unable to re-size the cross tab in design mode. Any suggestions would be appreciated.
    Regards,
    David

    hi David,
    unfortunately there are no properties in a cross-tab to keep it the same overall width if the number of column instances changes. the Size and Position dialogues for Width and Horizontal Position (X) also do not apply to cross-tabs.
    the only thing that you can do is to decrease the width of the column cell and if the output no longer fits in the width of the cell then you'll also need to decrease the font size.
    there is another workaround by limiting the number of records returned to a group. please see my blog post here in particular the section "Formatting a Cross-tab to Have N Rows & M Columns".  this is not an easy task either as the data coming in must be a precise match for the number of rows X the number columns that are required. this is explained further in the blog.
    -jamie

Maybe you are looking for

  • Cheque print from F110 (Automatic Payment Transaction)

    Hello Friends, I have a requirement to print the cheque from t.code F110 (Automatic Payment Transactions). Normally when run Auto payment from F110 it will give A4 size print out at top having Address details and then item details, and finally Cheque

  • Can I AirPrint to a dell C1765nfw printer?

    I Am trying to airprint from my mini iPad and iPhone 4s to a dell C1765nfw that is connected to my home wifi.  I am able to wireless print from a dell laptop but not my apple devices??  AirPrint doesn't find any printers????

  • How to boot with another Recovery DVD?

    (Sorry if i have Bad-English) Hi guys, i bought a 15" MacBook Pro (A1286, Mid-2010) and i'm want to make a clean installation of a Snow Leopard DVD (Note: I bought that computer Without the Original Recovery DVD's) with a Non-Factory Recovery DVD's..

  • Can't Get On Internet Using Modem after install 10.3.5 and10.3.9

    Hello, I will try to make this explanatory and as simple as possible. My ibook was erased completely. SO, I installed 10.3.5 fresh. Then I verified permissions and installed the 10.3.9 update which is what I am using now. I tried to enter my internet

  • HT201317 Why did my iPod automatically upload photos from another iPod?

    I stumbled upon "my photo stream" on my iPod and I found a lot of pictures not from my iPod and few from my iPod in the photo stream. I didn't know most of the people in the photos and some of the pictures were very crude. I'm just wondering how my i