Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. I need to calculate the sum of one of the columns on crystal report - Need help

I need to calculate the sum of one of the columns on crystal report - Need help

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Slow Learner
    wrote on last edited by
    #1

    Hi, I am using DataSet as a datasource to my CrystalReport and I have no problem in displaying the data. But there is a column called MoneyWithHeld and I am trying to find a way how to calculate the sum or total of these values. I searched online and have found two possible solutions 1).Using Formula Fields -- Created a field called TotalWithHeld and in the formula I just put Sum({DataSet.MoneyWithHeld}) and that is it but no luck. I am pretty sure I have missed some thing else here but not sure what it was. Becuase while I was trying to save this TotalWithHeld field I ran into some syntax errors and as a result of those while trying to run the report the error was 'The function cannot be used because it must be evaluated later' . 2).Running Total -- I picked my DataSet.MoneyWithHeld filed to 'field to summarize' text box and I picked the "Sum" under type of summary drop down. When I run my app it wouldn't give me any error as it was in the case #1 but it wasn't displaying the total but just the last value of the MoneyWithHeld in the last record. I tried picking the Count, distinct count but nothing has worked. Looks like here too I need to put some kind of formula by selcting the radio button 'use a forumula' but not sure how to put it to get the total. I am kind of new to this Crystal reports would some one be kind enough to help me with this? Thanks, -L

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups