Add method for getting group by data ref