<?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 make Pivot-Like Transposed Table? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-make-Pivot-Like-Transposed-Table/m-p/339430#M6027</link>
    <description>&lt;P&gt;You can use the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transpose"&gt;transpose&lt;/A&gt; command. However, you would need to convert epoch time to string time first.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt; 
| timechart span=1h count as Access_Count by Account_Name
| eval _time=strftime(_time,"%Y/%m/%d %H:%M:%S")
| transpose 0 header_field=_time column_name="Account_Name"
| search Account_Name!="_*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 30 Jan 2018 14:39:24 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-01-30T14:39:24Z</dc:date>
    <item>
      <title>How to make Pivot-Like Transposed Table?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-make-Pivot-Like-Transposed-Table/m-p/339429#M6026</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have the following search and table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xxxx 
| bucket _time span=1h
| stats count as Access_Count by Account_Name, _time


Account_Name     _time                    Access_Count
abc              2018-01-30 08:00             10
def              2018-01-30 08:00              20
def              2018-01-30 09:00              40
ghi              2018-01-30 08:00              30


Is there a way to transpose this table to fit the following format?

Account_Name    2018-01-30 08:00   2018-01-30 09:00
abc                     10                   0
def                     20                  40
ghi                     0                    30
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried the transpose command but it only shows one header.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;BR /&gt;
R&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 14:29:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-make-Pivot-Like-Transposed-Table/m-p/339429#M6026</guid>
      <dc:creator>robettinger</dc:creator>
      <dc:date>2018-01-30T14:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Pivot-Like Transposed Table?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-make-Pivot-Like-Transposed-Table/m-p/339430#M6027</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transpose"&gt;transpose&lt;/A&gt; command. However, you would need to convert epoch time to string time first.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt; 
| timechart span=1h count as Access_Count by Account_Name
| eval _time=strftime(_time,"%Y/%m/%d %H:%M:%S")
| transpose 0 header_field=_time column_name="Account_Name"
| search Account_Name!="_*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jan 2018 14:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-make-Pivot-Like-Transposed-Table/m-p/339430#M6027</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-30T14:39:24Z</dc:date>
    </item>
  </channel>
</rss>

