I have the current situation, first of all a simplified class of my model:
public class Visits {
public string Status { get; set; }
public string ProductLine { get; set; }
public string VisitType { get; set; }
public int Customer { get; set; }
public DateTime Date { get; set; }
}
Ok. To create a pivot table i added a new value that holds a number, so the values of the table could be generated with those (just to get the Grand Total and stuff like that).
The rows of my table is the ProductLine property, ok. A ReportFilter is VisitType, ok. But now is my problem. I need to fill the pivot's table (pt.Values.Add(xxx)) with the COUNT of Visits by every Product Line (rows) by Months (columns), that because my Date property is the full date. How can i achieve that? Any ideas?
↧