<?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 Re: Treating comma separated values as numbers in Pivot data model attribute definition in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Treating-comma-separated-values-as-numbers-in-Pivot-data-model/m-p/106577#M2453</link>
    <description>&lt;P&gt;You are correct in a very general way. &lt;BR /&gt;
Following: &lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/36792/how-to-sum-numbers-with-commas" target="_blank"&gt;http://answers.splunk.com/answers/36792/how-to-sum-numbers-with-commas&lt;/A&gt;&lt;BR /&gt;
Using rex: "(?&lt;STRIPPWS_NOTIONAL&gt;.&lt;EM&gt;)" | convert rmcomma(stripped_notional)&lt;BR /&gt;
The result was empty. &lt;BR /&gt;
Using rex: setting field to notional&lt;BR /&gt;
"(?&lt;STRIPPED_NOTIONAL&gt;.&lt;/STRIPPED_NOTIONAL&gt;&lt;/EM&gt;)"| rex field=stripped_notional mode=sed "s/,//g"&lt;BR /&gt;
Caused a parse error in "//g"&lt;/STRIPPWS_NOTIONAL&gt;&lt;/P&gt;

&lt;P&gt;Using eval: setting field to stripped_notional and then the eval expression: replace(notional, ",", "")&lt;BR /&gt;
finally worked.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:01:12 GMT</pubDate>
    <dc:creator>gregbujak</dc:creator>
    <dc:date>2020-09-28T15:01:12Z</dc:date>
    <item>
      <title>Treating comma separated values as numbers in Pivot data model attribute definition</title>
      <link>https://community.splunk.com/t5/Reporting/Treating-comma-separated-values-as-numbers-in-Pivot-data-model/m-p/106575#M2451</link>
      <description>&lt;P&gt;This question is specific to the new Pivot functionality in Splunk 6.&lt;/P&gt;

&lt;P&gt;I have built up my data model, defined all the attributes and am ready to crunch my data. &lt;BR /&gt;
However, I have a field/attribute (notional) that is a numeric field with comma formatting (ex. 1,000,000).&lt;/P&gt;

&lt;P&gt;What is the process for eliminating the comma so that I can properly define it as a number?&lt;/P&gt;

&lt;P&gt;I understand how to do this in regular search but cant figure out the secret sauce for pivot.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 19:49:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Treating-comma-separated-values-as-numbers-in-Pivot-data-model/m-p/106575#M2451</guid>
      <dc:creator>gregbujak</dc:creator>
      <dc:date>2013-10-18T19:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Treating comma separated values as numbers in Pivot data model attribute definition</title>
      <link>https://community.splunk.com/t5/Reporting/Treating-comma-separated-values-as-numbers-in-Pivot-data-model/m-p/106576#M2452</link>
      <description>&lt;P&gt;In the data model editor, you should be able to define an Eval attribute and do whatever you would do in regular search.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 23:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Treating-comma-separated-values-as-numbers-in-Pivot-data-model/m-p/106576#M2452</guid>
      <dc:creator>Simon_Fishel</dc:creator>
      <dc:date>2013-10-18T23:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Treating comma separated values as numbers in Pivot data model attribute definition</title>
      <link>https://community.splunk.com/t5/Reporting/Treating-comma-separated-values-as-numbers-in-Pivot-data-model/m-p/106577#M2453</link>
      <description>&lt;P&gt;You are correct in a very general way. &lt;BR /&gt;
Following: &lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/36792/how-to-sum-numbers-with-commas" target="_blank"&gt;http://answers.splunk.com/answers/36792/how-to-sum-numbers-with-commas&lt;/A&gt;&lt;BR /&gt;
Using rex: "(?&lt;STRIPPWS_NOTIONAL&gt;.&lt;EM&gt;)" | convert rmcomma(stripped_notional)&lt;BR /&gt;
The result was empty. &lt;BR /&gt;
Using rex: setting field to notional&lt;BR /&gt;
"(?&lt;STRIPPED_NOTIONAL&gt;.&lt;/STRIPPED_NOTIONAL&gt;&lt;/EM&gt;)"| rex field=stripped_notional mode=sed "s/,//g"&lt;BR /&gt;
Caused a parse error in "//g"&lt;/STRIPPWS_NOTIONAL&gt;&lt;/P&gt;

&lt;P&gt;Using eval: setting field to stripped_notional and then the eval expression: replace(notional, ",", "")&lt;BR /&gt;
finally worked.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:01:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Treating-comma-separated-values-as-numbers-in-Pivot-data-model/m-p/106577#M2453</guid>
      <dc:creator>gregbujak</dc:creator>
      <dc:date>2020-09-28T15:01:12Z</dc:date>
    </item>
  </channel>
</rss>

