<?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: Creating table by same unique id in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-table-by-same-unique-id/m-p/343773#M40499</link>
    <description>&lt;P&gt;| chart limit=0 latest(price) over uuid by market&lt;/P&gt;

&lt;P&gt;solve my problem thx, but it show only uuid and price i cannot see date, time etc&lt;/P&gt;</description>
    <pubDate>Sun, 05 Nov 2017 13:26:06 GMT</pubDate>
    <dc:creator>abdulvehhaba</dc:creator>
    <dc:date>2017-11-05T13:26:06Z</dc:date>
    <item>
      <title>Creating table by same unique id</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-table-by-same-unique-id/m-p/343771#M40497</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I have data like this&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3772iE2BEAF572BF262B3/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I want to dedup (group) uuid and create a price table in same row&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 23:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-table-by-same-unique-id/m-p/343771#M40497</guid>
      <dc:creator>abdulvehhaba</dc:creator>
      <dc:date>2017-11-04T23:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating table by same unique id</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-table-by-same-unique-id/m-p/343772#M40498</link>
      <description>&lt;P&gt;Depending on what exactly you are expecting, there are at least a couple of different ways you could accomplish this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt; | stats list(price) as price list(market) as market by uuid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This one uses &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/Multivaluefunctions"&gt;Multivalue functions&lt;/A&gt; to give you the pairs of price and market&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt; | chart limit=0 latest(price) over uuid by market
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This one would have a row per uuid, with the price for each market in different columns by using the &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/chart"&gt;chart&lt;/A&gt; function.&lt;/P&gt;

&lt;P&gt;I used the following as a base search to simulate your data: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=6 | streamstats count | eval uuid=if(count&amp;lt;=3,"A","B"), market=case(count%3=1,"MarketA",count%3=2,"MarketB",1=1,"MarketC"), price=random()  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 Nov 2017 04:16:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-table-by-same-unique-id/m-p/343772#M40498</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2017-11-05T04:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating table by same unique id</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-table-by-same-unique-id/m-p/343773#M40499</link>
      <description>&lt;P&gt;| chart limit=0 latest(price) over uuid by market&lt;/P&gt;

&lt;P&gt;solve my problem thx, but it show only uuid and price i cannot see date, time etc&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2017 13:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-table-by-same-unique-id/m-p/343773#M40499</guid>
      <dc:creator>abdulvehhaba</dc:creator>
      <dc:date>2017-11-05T13:26:06Z</dc:date>
    </item>
  </channel>
</rss>

