title: To Sum Value using linq
body: <p>In the below code i have a list i am trying to get values from list using linq query and sum the values.But i don't know how to sum the values.So please help me to resolve the issue.</p>
  
  <pre><code>list contains:
  Desc Month level value
  M1  Jan     L1    2
  M1  Jan     L2    6
  M2  Feb     L1    4
  M2  Feb     L2    1
  
  My Expected Result:
  M1 Jan 8
  M2 Feb 5
  
  
  
  var sums1 = objList
  
                .GroupBy(y =&gt; new { y.Desc, y.Month, y.value })
                 .Select(group =&gt; new { KeyValue = group.Key, Count = group.Count() });
  </code></pre>