Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sum]

The tag has no usage guidance.

-2
votes
0answers
22 views

how to sum pageblocktable columns value?

I have face sum of column value //////////////visualforce page/////// <apex:page controller="importDataFromCSVController" sidebar="false" standardStylesheets="false" cache="true" applyBodyTag="...
0
votes
1answer
28 views

How to carry forward a certain Value of Record to the next record without an APEX code

I have an instance of an Object, which has the variables type = x, number_of_exams = 2, previous_no_of_exams = 0. In the next instance of the object, of the same type = x, I want the ...
-1
votes
0answers
7 views

ANALYTICS: To get SUM behind a stacked Column

Is it possible to get a SUM behind a stacked column in Analytics?
0
votes
1answer
22 views

adding up custom field with triggar [duplicate]

trigger PaymentTrigger on Money_Received__c (after insert, after update, after delete) { Money_Received__c moneyReceived = [SELECT Reservation__c FROM Money_Received__c]; Reservation__c ...
0
votes
2answers
25 views

custom field formula

I have two custom objects. Reservation__c and MoneyReceived__c and they are lookup relationship. I want Reservation__c.totalReceived__c = sum of all MoneyReceived__c.amountReceived__c. There are one ...
0
votes
1answer
26 views

Sum up values(currency) from the list

Decimal totalReceived = 0.00; List<Money_Received__c> moneyReceived = [Select Amount_Received__c,Reservation__r.Total_Recieved__c from Money_Received__c where Id =: reservationId]; for(...
5
votes
1answer
458 views

SOQL SUM() function not calculating the correct value

I have a SOQL query that I'm trying to use the SUM function with. My issue is that the SUM function gives me a totally different result than if i just query the rows and add up the amounts Query 1 - ...
0
votes
0answers
50 views

How to Create a SUM rollup trigger [duplicate]

Is there anyway to update a SUM type rollup summary field with lookup relationship for a custom object. How does it vary from just a typical rollup trigger?
1
vote
1answer
955 views

Use SUM() and convertCurrency() together in a SOQL

I am trying to do something like this: List<object__c> testObject= [ SELECT SUM(convertCurrency(Amount__c))     FROM object__c ]; but it doesn't work. As far as I read in the Force.com ...