<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: sum / avg functions on solr data with banana dashboard issue ''stats can only run on single valued&amp;quot; in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sum-avg-functions-on-solr-data-with-banana-dashboard-issue/m-p/157372#M57118</link>
    <description>&lt;P&gt;solved. defined a single valued field and do term on that.. use schema.xml to define fields explicitly. &lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2017 19:10:41 GMT</pubDate>
    <dc:creator>omeralvi</dc:creator>
    <dc:date>2017-03-20T19:10:41Z</dc:date>
    <item>
      <title>sum / avg functions on solr data with banana dashboard issue ''stats can only run on single valued"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sum-avg-functions-on-solr-data-with-banana-dashboard-issue/m-p/157371#M57117</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13650-stats-error.png" style="width: 508px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20863i569985257F50E0FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13650-stats-error.png" alt="13650-stats-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am trying to do aggregation on top of Solr data using banana dashboard but getting error on the panel "stats can only run on single valued column not multivalued".&lt;/P&gt;&lt;P&gt;In fact, data I am trying to aggregate is about facebook posts about certain company  (I have three different companies)and number of likes, shares etc. available on  post / status    level (almost 2000 posts per company). &lt;/P&gt;&lt;P&gt;I want to compute and show a graph for total likes / shares per company like  in SQL i&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select  company_name , sum (num_likes)  from solrdata&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group by company_name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; I followed the documentation of banana dashboard and as per that, I need facets and stats and TERMS panel.&lt;/P&gt;&lt;P&gt; I created "TERMS"  panel on the dashboard and provided coompany_name column from the data as facet and in the stats field I provided 'num_of_likes' --&amp;gt; total likes per post. Still same error. Below are snapshots&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13648-terms-conf.png" style="width: 768px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20864i321F47CD230CEA23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13648-terms-conf.png" alt="13648-terms-conf.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13649-terms-query.png" style="width: 775px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20865iADFCC0274E9B57B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13649-terms-query.png" alt="13649-terms-query.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and of course the error!!!!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:16:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/sum-avg-functions-on-solr-data-with-banana-dashboard-issue/m-p/157371#M57117</guid>
      <dc:creator>omeralvi</dc:creator>
      <dc:date>2019-08-18T12:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: sum / avg functions on solr data with banana dashboard issue ''stats can only run on single valued"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sum-avg-functions-on-solr-data-with-banana-dashboard-issue/m-p/157372#M57118</link>
      <description>&lt;P&gt;solved. defined a single valued field and do term on that.. use schema.xml to define fields explicitly. &lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 19:10:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/sum-avg-functions-on-solr-data-with-banana-dashboard-issue/m-p/157372#M57118</guid>
      <dc:creator>omeralvi</dc:creator>
      <dc:date>2017-03-20T19:10:41Z</dc:date>
    </item>
  </channel>
</rss>

