<?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 can I move items in a column into the next column as 'section headers'? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-move-items-in-a-column-into-the-next-column-as-section/m-p/617640#M50722</link>
    <description>&lt;P&gt;This kind of summarisation where you insert extra rows for summary is done using appendpipe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logic here with streamstats is to enable the sort to order the rows as needed. This one here will preserve your existing order, but if you want to sort by TestName then you add TestName to the sort.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats c 
| appendpipe [
  stats values(Application) as TestName min(c) as mc by Application 
  | eval c=mc-.5
]
| sort c
| fields - Application c mc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Using streamstats to ensure correct ordering is dependent on the initial order of the data, so this will work with your example&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 04:29:10 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2022-10-19T04:29:10Z</dc:date>
    <item>
      <title>How can I move items in a column into the next column as 'section headers'?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-move-items-in-a-column-into-the-next-column-as-section/m-p/617636#M50721</link>
      <description>&lt;P&gt;I've created a table of test results using stats list() to create a table that looks like this (the application name is only listed once against the group of tests it's related to):&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Application &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;TestName &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Outcome&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Website&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Search One&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Passed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Contact Page&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Passed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Order Form&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Passed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Internal&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Query Form&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Passed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Look Up&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Passed&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to amend the table so that the Application is shown in the 'TestName' column above the group of tests it's related to, so it looks like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;&lt;STRONG&gt;TestName &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;&lt;STRONG&gt;Outcome&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Website&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Search One&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Passed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Contact Page&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Passed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Order Form&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Passed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;Internal&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;Query Form&lt;/TD&gt;&lt;TD height="25px"&gt;Passed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Look Up&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Passed&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this breaks normal table data layout but for the purposes of my dashboard I think it will make it look more readable.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 03:39:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-move-items-in-a-column-into-the-next-column-as-section/m-p/617636#M50721</guid>
      <dc:creator>eddieddieddie</dc:creator>
      <dc:date>2022-10-19T03:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I move items in a column into the next column as 'section headers'?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-move-items-in-a-column-into-the-next-column-as-section/m-p/617640#M50722</link>
      <description>&lt;P&gt;This kind of summarisation where you insert extra rows for summary is done using appendpipe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logic here with streamstats is to enable the sort to order the rows as needed. This one here will preserve your existing order, but if you want to sort by TestName then you add TestName to the sort.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats c 
| appendpipe [
  stats values(Application) as TestName min(c) as mc by Application 
  | eval c=mc-.5
]
| sort c
| fields - Application c mc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Using streamstats to ensure correct ordering is dependent on the initial order of the data, so this will work with your example&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 04:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-move-items-in-a-column-into-the-next-column-as-section/m-p/617640#M50722</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-10-19T04:29:10Z</dc:date>
    </item>
  </channel>
</rss>

