title: Dynamic Linq GroupBy
body: <p>I followed the bellow steps to solve a similar problem as described however i dont seem to be able to get the solution to work
  <a href="https://stackoverflow.com/questions/1465700/system-linq-dynamic-select-new-into-a-listt-or-any-other-enumerable">System.LINQ.Dynamic: Select(&quot; new (...)&quot;) into a List&lt;T&gt; (or any other enumerable collection of &lt;T&gt;)</a></p>
  
  <p>I have even created a project so that it is the exact same as shown.</p>
  
  <p>I get an error saying that "No property or field 'Fund' exists in type 'DataRow'" </p>
  
  <p>I tried to get around this problem with:</p>
  
  <pre><code>IQueryable&lt;Result&gt; res = table1.AsEnumerable().AsQueryable()
                                .GroupBy("it[\"Fund\"]", "it")
                                .Select&lt;Result&gt;("new (Key as Group, Sum(Convert.ToDouble(it[\"Value\"].ToString())) as  TotalValue)");
  </code></pre>
  
  <p>but while this gets me past the above error i now have a problem getting the sum as the error states </p>
  
  <blockquote>
    <p>Argument types do not match</p>
  </blockquote>
  
  <p>Not sure where to go from here
  Thanks</p>