<?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 Is there  a way to create a chart where each date has multiple columns beneath it? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-create-a-chart-where-each-date-has-multiple/m-p/526539#M35733</link>
    <description>&lt;P&gt;I am trying to create a "monitoring" dashboard that compares the data count in a clients database to the count in our corporate database.&amp;nbsp; For each Event Name (sourcetype) I have the following metrics: nVerifyEvents, nPropertyEvents, nReceivedEvents.&amp;nbsp; I want to display all 3 metrics per Event Name per date for the last 7 days.&amp;nbsp; Here is a screenshot of what I have so far.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhavlik_0-1603745060042.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11505i12BB44282AB2CA80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhavlik_0-1603745060042.png" alt="bhavlik_0-1603745060042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to create a chart so it displays like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhavlik_2-1603745544730.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11507i89423DA601CEFC8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhavlik_2-1603745544730.png" alt="bhavlik_2-1603745544730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If this isn't possible, do any of you have some suggestions on a way to display this information on a dashboard?&amp;nbsp; Should I do each date as a separate chart and put them on the same row in the dashboard?&amp;nbsp; In my opinion it would be overkill to have the Event Name listed for each date but if that's the only way to go then it will have to work.&amp;nbsp; I will also need to set up notifications if nReceivedEvents &amp;lt; nPropertyEvents so that we can address any missing data right away.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help or suggestions you send my way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2020 21:00:30 GMT</pubDate>
    <dc:creator>bhavlik</dc:creator>
    <dc:date>2020-10-26T21:00:30Z</dc:date>
    <item>
      <title>Is there  a way to create a chart where each date has multiple columns beneath it?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-create-a-chart-where-each-date-has-multiple/m-p/526539#M35733</link>
      <description>&lt;P&gt;I am trying to create a "monitoring" dashboard that compares the data count in a clients database to the count in our corporate database.&amp;nbsp; For each Event Name (sourcetype) I have the following metrics: nVerifyEvents, nPropertyEvents, nReceivedEvents.&amp;nbsp; I want to display all 3 metrics per Event Name per date for the last 7 days.&amp;nbsp; Here is a screenshot of what I have so far.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhavlik_0-1603745060042.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11505i12BB44282AB2CA80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhavlik_0-1603745060042.png" alt="bhavlik_0-1603745060042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to create a chart so it displays like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhavlik_2-1603745544730.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11507i89423DA601CEFC8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhavlik_2-1603745544730.png" alt="bhavlik_2-1603745544730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If this isn't possible, do any of you have some suggestions on a way to display this information on a dashboard?&amp;nbsp; Should I do each date as a separate chart and put them on the same row in the dashboard?&amp;nbsp; In my opinion it would be overkill to have the Event Name listed for each date but if that's the only way to go then it will have to work.&amp;nbsp; I will also need to set up notifications if nReceivedEvents &amp;lt; nPropertyEvents so that we can address any missing data right away.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help or suggestions you send my way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 21:00:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-create-a-chart-where-each-date-has-multiple/m-p/526539#M35733</guid>
      <dc:creator>bhavlik</dc:creator>
      <dc:date>2020-10-26T21:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there  a way to create a chart where each date has multiple columns beneath it?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-create-a-chart-where-each-date-has-multiple/m-p/526958#M35771</link>
      <description>&lt;P&gt;I ended up using an eval statement to combine the columns that would be under each date into a single column and then using other commands to get only one row each of the Event Names.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the part of my query that I used to change the table to my desired look:&lt;/P&gt;&lt;P&gt;| eval ValidationData="nVerify="+nVerifyEvents+", "+"nProperty="+nPropertyEvents+", "+"nReceived="+nReceivedEvents+", "+"Missing="+Missing&lt;BR /&gt;| table date eventName ValidationData&lt;BR /&gt;| eval {date}=ValidationData&lt;BR /&gt;| fields - date ValidationData&lt;BR /&gt;| stats values(*) as * by eventName&lt;BR /&gt;| fillnull value="Events Not Received"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here's a screenshot of the final result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhavlik_0-1603913595215.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11557iECFF17A2DE540569/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhavlik_0-1603913595215.png" alt="bhavlik_0-1603913595215.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is the best way to do this but it works.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 19:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-create-a-chart-where-each-date-has-multiple/m-p/526958#M35771</guid>
      <dc:creator>bhavlik</dc:creator>
      <dc:date>2020-10-28T19:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there  a way to create a chart where each date has multiple columns beneath it?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-create-a-chart-where-each-date-has-multiple/m-p/526967#M35773</link>
      <description>&lt;P&gt;Well done finding a solution. A couple of variants you could do would be&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) Make the validate field a multivalue field, so it renders a value per line rather than wrapping the values based on column width&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval ValidationData=mvappend("nVerify=".nVerifyEvents,
                               "nProperty=".nPropertyEvents,
                               "nReceived=".nReceivedEvents,
                               "Missing=".Missing)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;b) Make a labels column, so that the values are just under the dates, something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval n=mvrange(1,31)
| mvexpand n
| eval _time=now() - ((random() % 3 + 1) * 86400) 
| fields - n
| eval eventName=mvindex(split("CustCkIn,CustCkOut,EduAssigned,EduView,FTGChannelOff",","),random() % 5)
| eval nVerifyEvents=random() % 20, nPropertyEvents=random() % 20, nReceivedEvents=random() % 20, nMissing=random() % 20
| bin _time span=1d
| stats sum(n*) as n* by _time eventName
| eval ValidationData=mvappend(nVerifyEvents,nPropertyEvents,nReceivedEvents,nMissing)
| eval date=strftime(_time, "%F") 
| table date eventName ValidationData
| eval {date}=ValidationData
| fields - date ValidationData
| stats list(2*) as 2* by eventName
| eval Labels=mvappend("nVerify","nProperty","nReceived","Missing")
| fillnull value="Events Not Received"
| table eventName Labels 2*&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 22:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-create-a-chart-where-each-date-has-multiple/m-p/526967#M35773</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-10-28T22:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there  a way to create a chart where each date has multiple columns beneath it?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-create-a-chart-where-each-date-has-multiple/m-p/527805#M35815</link>
      <description>&lt;P&gt;Sorry for the delay in response, I had to focus on another project for a couple days.&amp;nbsp; LOL.&amp;nbsp; But I did incorporate part a) and I really like the way the output looks.&amp;nbsp; This will allow me to display a larger time range.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't had time to go through your suggestion in part b) but have saved in for future exploration.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 20:06:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-create-a-chart-where-each-date-has-multiple/m-p/527805#M35815</guid>
      <dc:creator>bhavlik</dc:creator>
      <dc:date>2020-11-03T20:06:37Z</dc:date>
    </item>
  </channel>
</rss>

