<?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 Why does my set union command result in two datasets and not just one? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-set-union-command-result-in-two-datasets-and-not/m-p/576828#M201027</link>
    <description>&lt;LI-CODE lang="markup"&gt;| set union [ search index=my_index | eval nums="1,2,3,4,5" | fields - _* | makemv delim="," nums | stats values(nums) as num ] [ search index=my_index | eval nums="2,3,4,5,6" | fields - _* | makemv delim="," nums | stats values(nums) as num ]&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I would expect the result to be a single table with the values 1,2,3,4,5,6, but instead I just get the two datasets on top of each other:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-11-30 at 3.48.32 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17065i03E2529D93DB0B65/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-11-30 at 3.48.32 PM.png" alt="Screen Shot 2021-11-30 at 3.48.32 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 23:50:56 GMT</pubDate>
    <dc:creator>onelasttime</dc:creator>
    <dc:date>2021-11-30T23:50:56Z</dc:date>
    <item>
      <title>Why does my set union command result in two datasets and not just one?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-set-union-command-result-in-two-datasets-and-not/m-p/576828#M201027</link>
      <description>&lt;LI-CODE lang="markup"&gt;| set union [ search index=my_index | eval nums="1,2,3,4,5" | fields - _* | makemv delim="," nums | stats values(nums) as num ] [ search index=my_index | eval nums="2,3,4,5,6" | fields - _* | makemv delim="," nums | stats values(nums) as num ]&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I would expect the result to be a single table with the values 1,2,3,4,5,6, but instead I just get the two datasets on top of each other:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-11-30 at 3.48.32 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17065i03E2529D93DB0B65/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-11-30 at 3.48.32 PM.png" alt="Screen Shot 2021-11-30 at 3.48.32 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 23:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-set-union-command-result-in-two-datasets-and-not/m-p/576828#M201027</guid>
      <dc:creator>onelasttime</dc:creator>
      <dc:date>2021-11-30T23:50:56Z</dc:date>
    </item>
  </channel>
</rss>

