New answers tagged list
1
vote
Accepted
apex list of object
You can use a map to store the sum of the January_Volume__c and April_Volume__c fields for each year.
You can use the Year__c field as the key and the sum as the value.
You can then access the map by ...
Top 50 recent answers are included
Related Tags
list × 870apex × 533
map × 143
soql × 106
visualforce × 87
marketing-cloud × 61
trigger × 60
set × 48
sobject × 40
json × 35
class × 34
loop × 33
controller × 32
collection × 31
query × 30
lightning-aura-components × 25
unit-test × 25
array × 20
string × 19
custom-object × 18
wrapper-class × 18
sort × 18
email × 17
lightning-web-components × 14
javascript × 14