How to show votes in view results by node id?
You can use hook_query_alter() in your custom module. Your code should look like this:

function MODULENAME_query_alter(&amp;$query) {
  if(!empty($query-&gt;alterMetaData['view']-&gt;name) &amp;&amp; $query-&gt;alterMetaData['view']-&gt;name == 'VIEWNAME'){
    $query-&gt;groupBy("node.nid");
  }
}