Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7038659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:41:45+00:00 2026-05-28T01:41:45+00:00

How to sum each column value and to display the total sum value in

  • 0

How to sum each column value and to display the total sum value in Total Column for the below data using LINQ. SUM should not round the resultant.

Location    FY_Quarter  .NET    java     SAP    Total
Bangalore    Q3          40      60      40     140
Bangalore    Q4          50      80      30     
Bangalore    Q1          70      50      40     
Bangalore    Q2          30      90      50     
Chennai      Q3          80      40      60     
Chennai      Q4          45      50      35     
Chennai      Q1          60      75      65     
Chennai      Q2          55      35      90     

Example for

Bangalore  Q4   50   80   30    160

Under Total it should show the value as 160

How to get??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:41:45+00:00Added an answer on May 28, 2026 at 1:41 am

    Use a calculated column:

    table.Columns.Add("Total", typeof(int), "[.NET] + java + SAP");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this function to total the sum of all values in a column.
I have a loop that runs through each column and sets the value to
I need to sum the column data of rows after grouping by another column.
Let's create a TestParent table which caches the total value of the num column
Am trying to return the sum of each day of a week in mysql
SELECT sum(TotalHoursM) + (TotalHoursT) + (TotalHoursW) + (TotalHoursTH) + (TotalHoursF) AS TOTAL FROM LeaveRequest
I am trying to group row data from a 3-dimensional array by a column
I need an aggregate sum for a table column (grouped by other columns), but
I'm using jQuery, and I want to sum up the values in my table
I am currently using cast on a melted table to calculate the total of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.