your first dimension is the name of the medicinesand you can already use this to filter your data set and show the filtered data using our createtable(function var datafilteredmednamedim filter('grazax sq- 'var filteredtable $('#filteredtable')filteredtable empty(append(createtable(datafiltered top( ),variablesintable,'our first filtered table'))you show only the top five observations (figure )you have because you have the results from single medicine for an entire year figure data filtered on medicine name grazax sq- this table doesn' look sorted but it is the top(function sorted it on medicine name because you only have single medicine selected it doesn' matter sorting on date is easy enough using your new day variable let' register another dimensionthe date dimensionvar datedim crossfilterinstance dimensionfunction( {return day;})now we can sort on date instead of medicine namefilteredtable empty(append(createtable(datedim bottom( ),variablesintable,'our first filtered table'))the result is bit more appealingas shown in figure this table gives you window view of your data but it doesn' summarize it for you yet this is where the crossfilter mapreduce capabilities come in let' say you would like to know how many observations you have per medicine logic dictates that you