sorry for my English, I need your help. I currently receive from the database this:
But I need to get this with linq, thank you very much for your help. the year column can increase
Edit: Code
var res = listaEnIndicaorList.GroupBy(x => new {x.ID_PE, x.ID_JERARQUIA,
x.ID_INDICADOR})
.Select(x => new
{
id_1 = x.Key.ID_PE,
id_2 = x.Key.ID_JERARQUIA,
id_3 = x.Key.ID_INDICADOR,
Data = x.Select(d => d.ANIO).ToList()
}).ToList();