This is my simple query:
<table class="table-bordered">
        @foreach (var data in Model.TableEE.Select(x => new { Month = x.Month, Year = x.EmpIn, Amount = x.EmpOut }))
        {
            <tr>
                <td>@data.Month</td>
                <td>@data.Year</td>
                <td>@data.Amount</td>
            </tr>
        }
</table>
The result from above query:
I need to transform into this format:
         |Jan|Feb|Mar|Apr|May|Jun|Jul   |Aug   |Sep|Oct|Nov|Dec|
CY2015   | 0 | 0 | 0 | 0 | 0 | 0 | 0    | 0    | 0 | 0 | 0 | 0 |
CY2016   | 0 | 0 | 0 | 0 | 0 | 0 |165947|165947| 0 | 0 | 0 | 0 |
Can anyone help me to achieve this? Thanks!

 
    