<?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: Help with creation of a table in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635480#M52083</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval sortorder=case(evenement=="Dépôt",1,evenement=="Pré-contrôle",2)
| sort 0 sortorder
| fields - sortorder&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2023 09:24:18 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-03-22T09:24:18Z</dc:date>
    <item>
      <title>How to create a table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635344#M52068</link>
      <description>&lt;P&gt;Hello everyone, I have a question for you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this table :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anissabnk_0-1679417130483.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24423iC92BFAA65807F334/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anissabnk_0-1679417130483.png" alt="anissabnk_0-1679417130483.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But , I want to have first :&lt;/P&gt;
&lt;P&gt;- the &lt;STRONG&gt;evenement&lt;/STRONG&gt; &lt;U&gt;Dépôt&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;in the second line :&lt;/P&gt;
&lt;P&gt;the &lt;STRONG&gt;evenement&lt;/STRONG&gt; &lt;U&gt;Pré-contrôle&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anissabnk_1-1679417156988.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24424iCB092985A578E0F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anissabnk_1-1679417156988.png" alt="anissabnk_1-1679417156988.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I don't know how to do this.&lt;/P&gt;
&lt;P&gt;Can you help me please.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 20:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635344#M52068</guid>
      <dc:creator>anissabnk</dc:creator>
      <dc:date>2023-03-22T20:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creation of a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635380#M52069</link>
      <description>&lt;P&gt;You can't have "subrows" in Splunk. You can have multivalued fields but they are independent from each other (i.e. you can't sort values in one of them based on order of values in another field). So if that's what you want to do, it won't work that way. Splunk is not Excel &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 18:39:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635380#M52069</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-03-21T18:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creation of a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635474#M52080</link>
      <description>&lt;P&gt;So, how can I do, to have the order tha I mentioned ?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 09:00:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635474#M52080</guid>
      <dc:creator>anissabnk</dc:creator>
      <dc:date>2023-03-22T09:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creation of a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635476#M52081</link>
      <description>&lt;P&gt;If the order of the events in the table is important to you, you need to provide / create a field with a value that can be sorted to give the order you desire. You can remove this field after the sort if you wish.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 09:07:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635476#M52081</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-22T09:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creation of a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635478#M52082</link>
      <description>&lt;P&gt;Can you share with me an example of the spl request please&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 09:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635478#M52082</guid>
      <dc:creator>anissabnk</dc:creator>
      <dc:date>2023-03-22T09:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creation of a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635480#M52083</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval sortorder=case(evenement=="Dépôt",1,evenement=="Pré-contrôle",2)
| sort 0 sortorder
| fields - sortorder&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 09:24:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635480#M52083</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-22T09:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creation of a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635486#M52085</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;I think you're talking about other thing that I do.&lt;/P&gt;&lt;P&gt;What I meant was that while Splunk can happily deal with data in form of&lt;/P&gt;&lt;TABLE border="1" width="69.44444444444446%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col1 val1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col2 val1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col3 val1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col4 val1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col1 val1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col2 val2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col3 val2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col4 val2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col1 val1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col2 val3&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col3 val3&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Col4 val3&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&lt;P&gt;...&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have separate rows, even if the value in first column is the same but repeated in several rows, we can handle that easily since each row is separate and you can reorder the results and make sense of it. But if you have it like that:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%"&gt;Col1 val1&lt;/TD&gt;&lt;TD width="20%"&gt;&lt;P&gt;Col2 val1&lt;BR /&gt;Col2 val2&lt;BR /&gt;Col2 val3&lt;/P&gt;&lt;/TD&gt;&lt;TD width="20%"&gt;Col3 val1&lt;BR /&gt;Col3 val2&lt;BR /&gt;Col3 val3&lt;/TD&gt;&lt;TD width="20%"&gt;Col4 val1&lt;BR /&gt;Col4 val2&lt;BR /&gt;Col4 val3&lt;/TD&gt;&lt;TD width="20%"&gt;&lt;P&gt;...&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case you have separate columns which contain multivalued fields. Each column is just one aggregate result field. So sorting - for example - column 2 would not change order of column 3.&lt;/P&gt;&lt;P&gt;Splunk has no way of "partially aggregating" separate results while keeping other parts of the result rows separate.&lt;/P&gt;&lt;P&gt;That's what I was talking about. You can process the results like in the first table but then aggregate some rows into a single row to present them like in the second table but it has its caveats.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) As I said - there is no relation between values in separate rows so you might format them to look like "rows" but they are not rows internally, so you can't - for example - select a set from one "subrow" to pivot to.&lt;/P&gt;&lt;P&gt;2) If your original values contain empty spaces Splunk will be happy to compress them in your results so you might get something like that:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%"&gt;Col1 val1&lt;/TD&gt;&lt;TD width="20%"&gt;&lt;P&gt;Col2 val1&lt;BR /&gt;Col2 val3&lt;/P&gt;&lt;/TD&gt;&lt;TD width="20%"&gt;Col3 val1&lt;BR /&gt;Col3 val2&lt;BR /&gt;Col3 val3&lt;/TD&gt;&lt;TD width="20%"&gt;Col4 val3&lt;/TD&gt;&lt;TD width="20%"&gt;&lt;P&gt;...&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 11:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-table/m-p/635486#M52085</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-03-22T11:31:24Z</dc:date>
    </item>
  </channel>
</rss>

