<?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: how to create table for multiple data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-table-for-multiple-data/m-p/171236#M49033</link>
    <description>&lt;P&gt;thank you yannK,&lt;BR /&gt;
but i still cant get the things that i want =(&lt;/P&gt;

&lt;P&gt;my data should display something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;             subArea1 subArea2 subArea3...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;workweek1         12        32          88&lt;BR /&gt;
workweek2         96        45          12&lt;BR /&gt;
workweek3         23        78          43&lt;BR /&gt;
workweek4         37        79          98&lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2014 02:59:26 GMT</pubDate>
    <dc:creator>jasklee</dc:creator>
    <dc:date>2014-03-05T02:59:26Z</dc:date>
    <item>
      <title>how to create table for multiple data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-table-for-multiple-data/m-p/171234#M49031</link>
      <description>&lt;P&gt;I need to create a table which will display&lt;/P&gt;

&lt;P&gt;workweek as rows&lt;/P&gt;

&lt;P&gt;and subarea as column, meanwhile the data inside will display the passing percentage for each subarea for every workweek.&lt;/P&gt;

&lt;P&gt;i tried&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*|stats count(eval(status="Failed")) AS fail,count(eval(status="Passed")) AS pass by workweek|eval passPercentage=if(pass+fail== 0, "-",round(pass/(pass+fail)*100,2))|fields workweek,passPercentage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will only calculate for overall passPercentage for each workweek, but i want  it to be done with each subarea of each workweek...&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2014 07:03:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-table-for-multiple-data/m-p/171234#M49031</guid>
      <dc:creator>jasklee</dc:creator>
      <dc:date>2014-03-03T07:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to create table for multiple data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-table-for-multiple-data/m-p/171235#M49032</link>
      <description>&lt;P&gt;what about creating a field for your subarea and use it as a new by condition ?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;*&lt;BR /&gt;
| eval subarea=case(status="Passed","pass",status="Failed","fail",1=1,"other")&lt;BR /&gt;
|chart count over workweek by subarea&lt;BR /&gt;
| eval total=pass+fail&lt;BR /&gt;
|eval passPercentage=if(total== 0, "-",round(pass/(total)*100,2))&lt;BR /&gt;
|fields workweek,passPercentage&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 00:36:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-table-for-multiple-data/m-p/171235#M49032</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-03-05T00:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to create table for multiple data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-table-for-multiple-data/m-p/171236#M49033</link>
      <description>&lt;P&gt;thank you yannK,&lt;BR /&gt;
but i still cant get the things that i want =(&lt;/P&gt;

&lt;P&gt;my data should display something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;             subArea1 subArea2 subArea3...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;workweek1         12        32          88&lt;BR /&gt;
workweek2         96        45          12&lt;BR /&gt;
workweek3         23        78          43&lt;BR /&gt;
workweek4         37        79          98&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 02:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-table-for-multiple-data/m-p/171236#M49033</guid>
      <dc:creator>jasklee</dc:creator>
      <dc:date>2014-03-05T02:59:26Z</dc:date>
    </item>
  </channel>
</rss>

