<?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>topic Count multi value field in Data Model in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Count-multi-value-field-in-Data-Model/m-p/376350#M3209</link>
    <description>&lt;P&gt;Hello Splunkers.&lt;/P&gt;

&lt;P&gt;I have a data model that contains a multi value field, called &lt;STRONG&gt;acao&lt;/STRONG&gt;.&lt;BR /&gt;
Looking at the data model, I have the following:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5179i2E67E077F3F0511F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;When I run the following query: &lt;CODE&gt;| tstats count(DM.acao) from datamodel="My_DataModel"&lt;/CODE&gt;, the result is 2.&lt;BR /&gt;
However, I want it to count all occurrences, resulting in 8 (1 P and 7 X's).&lt;/P&gt;

&lt;P&gt;How can I do this?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
GMA&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 15:14:02 GMT</pubDate>
    <dc:creator>guimilare</dc:creator>
    <dc:date>2018-06-07T15:14:02Z</dc:date>
    <item>
      <title>Count multi value field in Data Model</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Count-multi-value-field-in-Data-Model/m-p/376350#M3209</link>
      <description>&lt;P&gt;Hello Splunkers.&lt;/P&gt;

&lt;P&gt;I have a data model that contains a multi value field, called &lt;STRONG&gt;acao&lt;/STRONG&gt;.&lt;BR /&gt;
Looking at the data model, I have the following:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5179i2E67E077F3F0511F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;When I run the following query: &lt;CODE&gt;| tstats count(DM.acao) from datamodel="My_DataModel"&lt;/CODE&gt;, the result is 2.&lt;BR /&gt;
However, I want it to count all occurrences, resulting in 8 (1 P and 7 X's).&lt;/P&gt;

&lt;P&gt;How can I do this?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
GMA&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 15:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Count-multi-value-field-in-Data-Model/m-p/376350#M3209</guid>
      <dc:creator>guimilare</dc:creator>
      <dc:date>2018-06-07T15:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count multi value field in Data Model</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Count-multi-value-field-in-Data-Model/m-p/376351#M3210</link>
      <description>&lt;P&gt;&lt;CODE&gt;| tstats dc(DM.acao)&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 15:36:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Count-multi-value-field-in-Data-Model/m-p/376351#M3210</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2018-06-07T15:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count multi value field in Data Model</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Count-multi-value-field-in-Data-Model/m-p/376352#M3211</link>
      <description>&lt;P&gt;HI @guimilare, &lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count from datamodel="My_DataModel" by DM.acao | stats sum(count) as count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 16:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Count-multi-value-field-in-Data-Model/m-p/376352#M3211</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-06-07T16:15:33Z</dc:date>
    </item>
  </channel>
</rss>

