<?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 makemv and mvexpand empty results not showing in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/makemv-and-mvexpand-empty-results-not-showing/m-p/281625#M84991</link>
    <description>&lt;P&gt;I need to see which questions a user answered. It is a multiple value field. Possible values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;question="1" or question="1,3" or question="" ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to create a chart. My search is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;makemv delim="," question| mvexpand question| eval question= case(question==1, "Question-1", question==2,"Question-2", question==3,"Question-3",question=="","Not Filled") | chart  count by question
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it doesn't show the results for empty string &lt;CODE&gt;""&lt;/CODE&gt; value. Does anybody know a way to do that?&lt;/P&gt;

&lt;P&gt;Cheers!&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2015 14:24:21 GMT</pubDate>
    <dc:creator>yasaracar</dc:creator>
    <dc:date>2015-10-16T14:24:21Z</dc:date>
    <item>
      <title>makemv and mvexpand empty results not showing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/makemv-and-mvexpand-empty-results-not-showing/m-p/281625#M84991</link>
      <description>&lt;P&gt;I need to see which questions a user answered. It is a multiple value field. Possible values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;question="1" or question="1,3" or question="" ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to create a chart. My search is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;makemv delim="," question| mvexpand question| eval question= case(question==1, "Question-1", question==2,"Question-2", question==3,"Question-3",question=="","Not Filled") | chart  count by question
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it doesn't show the results for empty string &lt;CODE&gt;""&lt;/CODE&gt; value. Does anybody know a way to do that?&lt;/P&gt;

&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 14:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/makemv-and-mvexpand-empty-results-not-showing/m-p/281625#M84991</guid>
      <dc:creator>yasaracar</dc:creator>
      <dc:date>2015-10-16T14:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: makemv and mvexpand empty results not showing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/makemv-and-mvexpand-empty-results-not-showing/m-p/281626#M84992</link>
      <description>&lt;P&gt;I think that where the value is gone.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makemv delim="," question| mvexpand question
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval question=if(question=="",",",question)|makemv allowempty=true delim="," question| mvexpand question|
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Oct 2015 18:58:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/makemv-and-mvexpand-empty-results-not-showing/m-p/281626#M84992</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2015-10-16T18:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: makemv and mvexpand empty results not showing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/makemv-and-mvexpand-empty-results-not-showing/m-p/281627#M84993</link>
      <description>&lt;P&gt;Thanks!  "eval if" was the key point to solve the problem.&lt;/P&gt;

&lt;P&gt;The final query that works:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval question=if(question=="","Not Filled",question) |makemv allowempty=true delim="," question| mvexpand question | eval question= case(question==1, "Question-1", question==2,"Question-2", question==3,"Question-3",question=="Not Filled","Not Filled") | chart  count by question
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Oct 2015 11:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/makemv-and-mvexpand-empty-results-not-showing/m-p/281627#M84993</guid>
      <dc:creator>yasaracar</dc:creator>
      <dc:date>2015-10-19T11:44:49Z</dc:date>
    </item>
  </channel>
</rss>

