Results 1 to 3 of 3

Thread: Help me for Weight Conversion in Crystal Reports (8)…

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    6

    Help me for Weight Conversion in Crystal Reports (8)…

    Hello All friends

    I have a problem in Crystal Reports.

    I have a table of with fields Item, Kg, Grams and data like:

    Item | Kg | Grams
    --------------------------
    A | 5 | 250
    A | 1 | 500
    A | 1 | 350
    A | 2 | 400

    Now when I make the report in Crystal Report 8, it sums up the data as Total KG (5+1+1+2)= 9 and Total Grams (250+500+350+400)= 1500 at the end of the report.

    Problem is that if Grams are >=1000 then it must add 1 to the Total Kg and Grams = Grams-1000.

    But I don’t know that how can I do this in Crystal Report. I tried to add a formula field but don’t know the correct syntax of writing formulas in Crystal Report 8.

    So please help me that how can I place the correct totals at the end of the report after calculating the weights.

    I will be very thankful to you all. I need it very urgent please.

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: Help me for Weight Conversion in Crystal Reports (8)…

    I would create 2 formulas; 1 for the grams and 1 for the kgs. Do your normal ttals, but make them invisible (suppressed). You rformauls for the grams would be

    if {your subtotal of grams} >= 1000 then
    {subtotal of grams} - 1000

    your formula for the Kgs would be
    if {your subtotal of grams} >= 1000 then
    {subtotal of kgs} + 1

    Use the formulas as your totals.
    I think this should give you the direction, if the syntax is not entirely correct.
    ===================================================
    If your question has been answered, mark the thread as [RESOLVED]

  3. #3
    Addicted Member mabbas110's Avatar
    Join Date
    Oct 2005
    Location
    Karachi , Pakistan
    Posts
    172

    Re: Help me for Weight Conversion in Crystal Reports (8)…

    You take grand total of two fields in for example group footer section. In group fotter u make two forumlas and dont display that total field and then give ur logic of greater then thouse so subtract one or so.

    You can ge the result easily.
    Thanks and Regards,

    Muhammad Abbas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width