Utilities and filter logig to ReportViewModel.