Sum() function not working properly. Instead of summing, its showing total count of the rows

We have migrated one application from .net framework 1.0 to .net framework  2 (from Visual studio 2003 to Visual STUDIO 2005). Now after migration we are facing some problem related to the sum function in Crystal report 10. It is not working properly.
So we migrated to Crystal report XI release 2 (though still using evaluation version for testing purpose), the problem is not yet resolved.
The problem we are facing is while using the summary in the group field, it is showing the number of rows instead of the sum of the values.
We have checked the same with min-max functions, and it is working properly with those.
We have tried to make the sum by formula field. In such case, it is not showing any syntactical error but at execution time, it is throwing an error saying "A number field or currency amount field is required here".
In the  the report the datatype of the field on which we are applying the sum function, is number, and in the table from where the data is fetched, the datatype is numeric(9,6).
Any idea why sum function is not working ?
I was browsing the net and saw running totals can be a work around for such summation issues in Crystal Report XI.
Can you please provide insight of how to implement running totals for summation purpose in solving such issues.

Hi,
Running totals are more accurate than Summary Totals in Crystal.  Why? ...ask Crystal.  Anyway, just right click on Running Totals, create a new one, and enter you fields, etc. For group totals, it gives you a place to reset the totals for each group, etc.  Pretty self explainatory. 
Jim

Similar Messages

  • Sum function not working properly in Crystal XI. Its showing total count of the values

    We have migrated one application from .net framework 1.0 to .net framework  2 (from Visual studio 2003 to Visual STUDIO 2005). Now after migration we are facing some problem related to the sum function in Crystal report 10. It is not working properly.
    So we migrated to Crystal report XI release 2 (though still using evaluation version for testing purpose), the problem is not yet resolved.
    The problem we are facing is while using the summary in the group field, it is showing the number of rows instead of the sum of the values.
    We have checked the same with min-max functions, and it is working properly with those.
    We have tried to make the sum by formula field. In such case, it is not showing any syntactical error but at execution time, it is throwing an error saying "A number field or currency amount field is required here".
    In the  the report the datatype of the field on which we are applying the sum function, is number, and in the table from where the data is fetched, the datatype is numeric(9,6).
    Any idea why sum function is not working ?
    I was browsing the net and saw running totals can be a work around for such summation issues in Crystal Report XI.
    Can you please provide insight of how to implement running totals for summation purpose in solving such issues.

    Are you seeing this happen in the Crystal designer as well, outside of any .NET application?

  • Hi, My face time is not working properly in my computer and mi iPhone, some of the people that i used to contact a can't talk to anymore, and some i can. Its not working in my mac nor in my iPhone, it just shows legend that says face time error

    Hi, My face time is not working properly in my computer and mi iPhone, some of the people that i used to contact a can't talk to anymore, and some i can. Its not working in my mac nor in my iPhone, it just shows legend that says face time error, what can i do???

    Assign an email address (gmail.com?)
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • AirDrop is not working properly on my Ipad mini, it doesn't have the accept button. What can I do?

    AirDrop is not working properly on my Ipad mini, it doesn't have the accept button. What can I do?

    What are you trying to AirDrop to? Another iOS device or a Mac?
    Check out this tutorial for getting AirDrop setup as well as the system requirements...make sure your devices all meet the stated requirements.
    http://9to5mac.com/2015/01/24/yosemite-ios-8-how-to-set-up-and-use-airdrop/
    See this as well:
    Mac Basics: AirDrop lets you send files from your Mac to nearby Macs and iOS devices - Apple Support

  • I am using firefox 3.6.17 i upgraded it to 4.1.but it does not work properly sometimes it opens every website and most of the time it does not work . so what is the problem please help . thank you

    i am using firefox 3.6.17 i upgraded it to 4.1.but it does not work properly sometimes it opens every website and most of the time it does not work . so what is the problem please help . thank you

    Did you check your security software (firewall)?
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See:
    * [[Server not found]]
    * [[Firewalls]]

  • Hi my name is Vajra from INDIA, i am using ipod shuffle 3rd generation but it is not working properly due to battery problem, i need to change the battery please guide me how to change the battery or any chance to replace the ipod shuffle 3rd generation ?

    Hi my name is Vajra from INDIA, i am using ipod shuffle 3rd generation but it is not working properly due to battery problem, i need to change the battery please guide me how to change the battery or any chance to replace the ipod shuffle 3rd generation ?

    Seems no one care about us .no one replied till no@!!!!@ strange

  • Why does the sum function not work when I try to add a column of decimal numbers?  The value is always returned as 0.  No problem with whole numbers but decimals do not work!

    just bought a MacBook Air and using Numbers to make a spreadsheet for financial purposes.  The sum function is working ok for whole numbers but when I try to sum a column of 2 decimal place numbers the result always comes back as 0.  Can anyone help?

    Hi laura,
    I suspect that your 2 decimal place numbers are formatted as text. Change the format of the column to currency and see it that works.
    Also You might want to update your profile to reflect your current systems!
    quinn

  • JDeveloper 11.1.1.0.2: "Go to Declaration" function not working properly

    Hi all,
    We have updated to the new release of JDeveloper and converted our project to this new version.
    But now the function "Go to Declaration" (also available using ctrl key + click on the class) does not work properly.
    Although we have the source included in the library some classes are opened ok but some in the same package are not.
    This problem has occurred on two different installations.
    Have someone any idea where could be a problem?
    Thanks
    Steven

    It does nothing. And the source for classes where it works are in same JAR as the source for classes where it doesn´t work.
    Example:
    we have our class:
    public abstract class FormularController extends org.springframework.web.servlet.mvc.SimpleFormController {
    when I click on SimpleFormController (with ctrl key) it works ok, it opens SimpleFormController:
    public class SimpleFormController extends org.springframework.web.servlet.mvc.AbstractFormController {
    but now when I click on AbstractFormController (with ctrl key) it does nothing.
    In previous version of JDeveloper it works fine.
    And when I create a brand new application in new JDeveloper it works also ok.

  • IOS4 bluetooth functions not working properly?

    Hello there,
    I have the iPhone 3Gs and it is updated with the iOS 4.0.1. The problem I'm having is that, not all of the bluetooth functions are working properly as it used to before, and I wanted to know if there was away of letting Apple know about it so that it could be fixed. I believe it's just a software issue, where there is a delay in conncetivity from phone to headset, but I'm not sure. I own the new, "Jawbone Icon" and it used to work fine before I've updated to the new iOS 4.0. I've tried doing a total rest with both iphone and bluetooth and both methods were unsuccessful. I've actually tested my bluetooth headset with another iPhone, that still had the previous iOS 3.1.3 software, and it worked exactly how it should compared to my updated iOS 4.0.1 iPhone.
    The main problem I have is that for one, I no longer hear my phone's message tone in my headset when I recieve a text message, push notification, or even email to my iPhone. Before, with the iOS 3.1.3 software, I would alway here my message tone when I recieve any of those notifications. Which was convinient when I had my phone in my pocket and was in an area where I couldn't hear my phone when I recieved a message.
    The other problem I have is that, while my phone is ringing, I would hear my ringtone through my bluetooth while the caller id function was being read to me. This was a little distracting at first, but not too much of a problem. The problem is, when my phone rings and my "Jawbone" reads back to me the caller's number - when I pressed the sleep/wake button to slients my phone, it would also cancel the caller id function that my bluetooth offers. This was a little inconvinient, especially while I was driving. In the state the I live in, while driving, the driver is not allowed to talk on their phone unless it is connected to a bluetooth device. Which is the reason why it would be the reason why i enjoy the caller id function provided by "Jawbone".
    If there is anyone that could help me with this problem, or possible help me find a way to send this to Apple, I would greatly appreciate it. If anything, I believe that the new iPhone iOS 4.01 software has a slight delay on their bluetooth connectivity from phone to headset. But, nevertheless, any help or ideas would be greatly appreciated!
    Thanks!
    Yung Vibe

    Yung,
    Consider rolling back the OS if you can. Apple support should be able to help.
    The bluetooth functionality in IOS 4 is definitely different and not for the better. I'm having serious sound quality and connectivity issues with both the Jawbone II and the Blue Ant Q1. I've called both support groups and bottom line is that IOS 4 has changed and the vendors haven't caught up or the OS has issues that the vendors cant compensate for. I've had to abandon the headsets and move to the delivered earphones. Even that approach has issues if you dont turn off the blue tooth IOS 4 will continue to connect to the bluetooth headset mid conversation. That's a new issue as well. Previous OS made the corded headset the priority and never let the bluetooth take over if the cord was plugged in. I hope Apple is working on this it's darn frustrating and I have an Iphone 4 therefore I cant roll back the OS to 3.

  • Ago function not working properly with time dimension

    Hi all,
    In OBIEE 11g we have the following issue:
    We have a fact which contains transaction's sum for the last day of each month.
    We use ago function like this : ago(<fact.column>,1)When we want to see the result from the time hierarchy the fact with the ago function works properly for quarters and half years but for the months shorter than the previous one can't take the right value /equals to NULL/.
    For example :
    sum for YEAR: 10000
    sum for Half Year 1 : 4000
    sum for Half Year 2 : 6000
    sum for Quarter 1: 1000
    sum for Quarter 2: 3000
    sum for Quarter 3: 2000
    sum for Quarter 4: 4000
    sum for month... - here the ago function is confused with the last day of previous month if it's shorter than itself: For example - for march it cannot take value for end of February ..etc.
    Any ideas?
    Thanks in advance,
    Alexander.

    Hi,
    I faced some issues previously with month, so I used month+year as id instead of month id. Instead of tragging month id 1-12 into your hierarchy, create another column into your table like month+year - 201201, 201202 which creates unique month_year_id and drag this column into month level instead of month_id. So the problem might be solved.
    Regards,
    Anitha.B

  • IPod touch 32 g 4th gen video function not working properly

    So I am having 2 major problems with my iPod. 1, is that it won't let me add videos of any format tO my iPod other than .mov files and frankly since I have over 100 different videos on m iPod it would be kinda annoying to have to convert each one one at a time. This hadn't started happening till the last iPod software update whicy happened around last weekend. My 2nd problem is that my videos are not orginizing properly. For example under my TV shows section I have a show that should only have 26 episodes in it. Instead it has around 80 episodes in it which consist of other tv shows I have added but my iPod does not recognize that they do not belong there. I keep my videos very organized by episode, show, season, etc and I don't know what to do. I've tried restoring my iPod and that didn't work.
    My computer specs go as follows: thinkpad laptop, windows 7, latest iTunes and iPod touch software

    The 'wrong sorted TV episodes' bug was the first thing I noticed on 4.2.1's video player. I'd say the whole media part is buggy as never before, at least for me. I absolutely agree with you and in addition to this (as I mentioned here http://discussions.apple.com/thread.jspa?messageID=12686533#12686533) the swipe to delete function on both podcasts and videos seems to be broken, not deleting properly.
    I'm also using Windows 7 (64-bit) for syncing, if anything could be related to Windows iTunes or Windows 7.

  • Filter Function Not Working Properly on iOS App

    Spotify Community, The latest version of the desktop app features a filter (Crtl + f) function that allows a user to filter certain tracks from the playlist and "bring them to the forefront."  For example, if I filter my largest playlist (which is 3,000+ songs) for "Nirvana," Spotify presents the 68 Nirvana tracks I have in the playlist.  If I play this playlist while it is featured, it will only play the 68 Nirvana tracks that I have filterd; regardless of being on shuffle or not, the playlist will not play any songs that are not based on the filter criteria. I believe the functionality that I just described above is excellent and how the software is intended on working.  However, in the Spotify mobile app for iOS, the filter functionality does not work like this.  Using the filter function in a playlist will filter the presented songs based on the user's inputed criteria/query, however, the playlist that is being filtered will not restrict it's playback to the criteria that the user has inputted.  For example, if I searched "Nirvana" on the same playlist above on my iPhone, the same 68 Nirvana songs that I have on that playlist would be presented to me.  However, if I selected "Love Buzz" (one of the tracks), then placed the playlist on shuffle, then skipped to the next track, the playlist would then play one of the other 3,000+ tracks from the playlist; it would not restrict playback based on my inputted criteria/querry.   In summary, the filter function on the mobile app does not work propely in accordance to the way it works on the desktop app.  I think most users who have large libraries would like the filter app to work similar to the way I described above. What can we do to get the correct filter functionality implemented on the iOS app? 

    Not sure if this is the way to update my question however I have found an app - "I clear my clipboard" that has cleared the entry so I can copy and paste properly again.

  • Disk utility functions not working properly

    Most functions on my disk utility are not working FOr example the burn button is dimmed and out of function I tried erasin the com.apple.diskutility.plst but nothing happen
    Message was edited by: DDGT

    DDGT:
    Let me just post some general directions and see if you recognize them as the way you did them:
    1. Repair Disk Permissions
    While booted from your internal HDD
    Go to (Applications > Utilities > Disk Utility.
    Select your HDD (manufacturer ID) in left column and First Aid in main column.
    Click Repair Disk Permissions at bottom left.
    2. Repair Disk
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel, and report if it says anything but Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need to use a utility like Tech Tool Pro or Disk Warrior
    +A problem with the restore function also accured ( i tried to restore my Macintosh HD to an external if anything wrong happens Un fortunatly the Hd has something wrong and DU cant fix it properly+
    First tell me about the HDD to which you are trying to install.
    • Is it a firewire, firewire/USB, or USB HDD?
    • Does the HDD have anything on it currently?
    • Was the HDD formatted Mac OS Extended before you attempted installation?
    • What method did you use in trying to backup the internal HDD to the external? e.g. what software did you use? Were you using Disk Utility or another backup software?
    You responses will help me give you specific directions in terms of how to go about accomplishing what you wish to do.
    Please post back with information on the points noted above.
    Cheers
    cornelius

  • Save AS Function Not working properly

    Hi,
    I have a weird problem in Adobe Acrobat 7.1. under Windows 7 (64 bit version).
    When i open a document i often want to Save it with the SAVE AS  function as a different name. To simplify the explenation , this is what i  do :
    1) Open pdf (either from local drive or internet)
    2) Click SAVE AS
    3) Browse to the location where you want to save the file.
    3) Then i click an existing Filename and change e.g. the last digit. e.g. if TEST.pdf exists i click it, edit it and change it to TEXT2.pdf.
    Now i always get the answer : Do you want to overwrite TEST.pdf. It never shows TEST2.pdf.
    I tried this for locally stored pdf, internet downloaded pdf's.... It always wants to overwrite the original file.
    ANYBODY any clue what this problem could be and how to solve it ?
    Greetings,

    Hi,
    Yes, typing a new name works. But, not selecting first an old name and then
    retyping to a new name. That will not work.
    Greetings,

  • Edit/update function not working properly on visual basic 2012

    help, i'm working on a update function on my aplication program using visual studio ultimate 2012 VB.
    after i fixed the error on my coding, i debug the program with f5. but, when i tried to update the data on the datagridview it doesn't change even thought the messagebox "data has been updated" show up.
    how do i fix this problem?
    here is the coding for update function:
    form1:
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    ClassSiswa.ubahdata(New SqlConnection, (txt_nis.Text), (txt_nisn.Text), (txt_namasiswa.Text), (cmb_kelaminsiswa.Text), (txt_kotalahir.Text), (DTP_siswa.Text), (cmb_agamasiswa.Text), (txt_beratsiswa.Text), (txt_tinggi_badan.Text))
    datagridview()
    End Sub
    Private Sub UpdateDataSiswa()
    ClassSiswa.Nis = txt_nis.Text
    ClassSiswa.Nisn = txt_nisn.Text
    ClassSiswa.Nama_Siswa = txt_namasiswa.Text
    ClassSiswa.Tanggal_Lahir = DTP_siswa.Text
    ClassSiswa.Jenis_Kelamin = cmb_kelaminsiswa.Text
    ClassSiswa.Kota_Lahir = txt_kotalahir.Text
    ClassSiswa.Agama = cmb_agamasiswa.Text
    ClassSiswa.Tinggi_Badan = txt_tinggi_badan.Text
    ClassSiswa.Berat_Badan = txt_beratsiswa.Text
    ClassSiswa.Updatesiswa(ClassSiswa.opencon, (txt_nis.Text))
    datagridview()
    End Sub
    classSiswa:
    Public Shared Sub ubahdata(ByVal _cn As SqlClient.SqlConnection, ByVal _Nis As String, ByVal _Nisn As String, ByVal _nama_siswa As String, ByVal _jenis_kelamin As String, ByVal _kota_lahir As String, ByVal _tanggal_lahir As String, ByVal _agama As String, ByVal _berat_badan As String, ByVal tinggi_badan As String)
    Dim sql As New SqlClient.SqlCommand
    sql.Connection = _cn
    sql.CommandType = CommandType.Text
    sql.CommandText = "update siswa set nis='" & Nis & "',nisn='" & Nisn & "',nama_siswa='" & Nama_Siswa & "',jenis_kelamin='" & Jenis_Kelamin & "' ,kota_lahir='" & Kota_Lahir & "',tanggal_lahir='" & Tanggal_Lahir & "'agama='" & Agama & "'berat_badan='" & Berat_Badan & "',tinggi_badan='" & tinggi_badan & "'"
    MessageBox.Show(" Data Telah Diupdate")
    ClassSiswa.closecon()
    End Sub
    Public Shared Sub Updatesiswa(ByVal _Cn As SqlClient.SqlConnection, ByVal _nis As String)
    Dim sql As SqlClient.SqlCommand
    sql = New SqlClient.SqlCommand
    sql.Connection = _Cn
    sql.CommandType = CommandType.Text
    sql.CommandText = "Update siswa Set nis = '" & Nis & "', nisn = '" & Nisn & "' where nis = '" & _nis & "'"
    sql.ExecuteNonQuery()
    End Sub

    Hello,
    A DataGridView knows nothing about the updates done as shown above, you need to update any rows that have changed yourself. For example. lets say I loaded data from a database table into a DataTable, create a BindingSource and assign that DataTable as the
    DataSource for the BindingSource. The BindingSource becomes the DataSource of the DataGridView so now when you moved up/down rows in the DataGridView you are changing position in the BindingSource and can read this data via BindingSource.Current by casting
    Current to a DataRowView then access the Row property with Field(Of T or SetField(Of T. Couple this will logic to locate rows that may not be the current row and we still can use SetField(Of T)(Col,Value) to update data in the BindingSource which is then immediately
    reflected in the DataGridView.
    The following is for MS-Access but the same logic applies for SQL-Server database via SqlClient data provider rather than
    OleDb data provider.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my webpage under my profile
    but do not reply to forum questions.

Maybe you are looking for

  • Time machine has stopped backing up to time capsule. message is that sparse bundle is in use

    Time machine suddenly stopped backing up to time capsule returning this message: The backup disk image "/Volumes/Data-1/xxnymacbooknamexx MacBook.sparsebundle" is already in use.

  • Built in PDF reader plugin does not work in Safari 6.0

    Safai 6.0 won't open PDF screens within a web link. Instead it shows a blank screen. Any help to fix this problem would be great

  • Creating and EOF loop

    hi, newbie I am trying to read in from a text file line by line, I want to do this with a while loop to tie in with the rest of my project. I wonder if anyone would be able to tell me how to create this loop, i have tried using the code below but hav

  • Trouble with iCloud 2 factor authentication in outlook app

    I am using 2 factor authentication on my iCloud account.  I recently downloaded and setup Microsoft's new outlook app on my iPhone and iPad.  I find it very useful for what I like to do.  I added all of my email accounts as well as dropbox and other

  • ORA-06512: in SYS.SECURE_DML, line 5

    Hi all, I'm trying to create a procedure that is called by a trigger like this: CREATE OR REPLACE PROCEDURE SECURE_DML is BEGIN if (TO_CHAR(SYSDATE, 'DY') IN ('SAB','DOM')) OR (TO_CHAR(SYSDATE, 'HH24:MI') NOT BETWEEN '08:00' AND '17:00') THEN RAISE_A