<?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 Best way to create a new column/s for data matrix ( #subsearch #appendcols ) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571743#M199236</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to get data tied together into one matrix from Jira (API fed) that utilizes two source types (shown below).&lt;/P&gt;&lt;P&gt;What I need is each issue(key) to have the following attributes represented as a column:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="24px"&gt;&lt;FONT face="arial black,avant garde" color="#008000"&gt;&lt;STRONG&gt;Column Name&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD height="24px"&gt;&lt;FONT face="arial black,avant garde" color="#008000"&gt;&lt;STRONG&gt;sourcetype&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;key&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:issues:json&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;team_name&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:issues:json&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;created_weekNo&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:issues:json&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;created_yearNo&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:issues:json&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;creationDate&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:issues:json&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;slaName&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:sla:json&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The "key" is the unique identifier in this case that can marry the data sets, but I'm having trouble getting the "slaName" from my "jira:sla:json" to combine as a column with my "jira:issues:json". Side note the "key" will have multiple entries that need to be reflected as separate rows, but the column information obtained from the "jira:issues:json" will be static over the lifetime of the ticket (as this is just the created date).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ask:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If anyone has any best practices that could help me out it would be greatly appreciated. Using the subsearch and appendcols in getting confusing as I'm not looking for any stats functions right now, just getting the table together is the main goal to eventually turn this into a visualization.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 23:56:20 GMT</pubDate>
    <dc:creator>jbuddy24</dc:creator>
    <dc:date>2021-10-20T23:56:20Z</dc:date>
    <item>
      <title>Best way to create a new column/s for data matrix ( #subsearch #appendcols )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571743#M199236</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to get data tied together into one matrix from Jira (API fed) that utilizes two source types (shown below).&lt;/P&gt;&lt;P&gt;What I need is each issue(key) to have the following attributes represented as a column:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="24px"&gt;&lt;FONT face="arial black,avant garde" color="#008000"&gt;&lt;STRONG&gt;Column Name&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD height="24px"&gt;&lt;FONT face="arial black,avant garde" color="#008000"&gt;&lt;STRONG&gt;sourcetype&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;key&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:issues:json&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;team_name&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:issues:json&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;created_weekNo&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:issues:json&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;created_yearNo&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:issues:json&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;creationDate&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:issues:json&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;slaName&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;jira:sla:json&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The "key" is the unique identifier in this case that can marry the data sets, but I'm having trouble getting the "slaName" from my "jira:sla:json" to combine as a column with my "jira:issues:json". Side note the "key" will have multiple entries that need to be reflected as separate rows, but the column information obtained from the "jira:issues:json" will be static over the lifetime of the ticket (as this is just the created date).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ask:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If anyone has any best practices that could help me out it would be greatly appreciated. Using the subsearch and appendcols in getting confusing as I'm not looking for any stats functions right now, just getting the table together is the main goal to eventually turn this into a visualization.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 23:56:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571743#M199236</guid>
      <dc:creator>jbuddy24</dc:creator>
      <dc:date>2021-10-20T23:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a new column/s for data matrix ( #subsearch #appendcols )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571768#M199244</link>
      <description>&lt;P&gt;Can you share some sample events from both data sources?&lt;/P&gt;&lt;P&gt;What links events in&amp;nbsp;&lt;SPAN&gt;jira:issues:json to events in&amp;nbsp;jira:sla:json e.g. key exists in both?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are the fields already extracted?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Assuming some of these answers, you could try something like this (stats isn't just for statistics, it also can be used to "gather" data from different events)&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype="jira:sla:json" OR sourcetype="jira:issues:json"
| stats values(team_name) as team_name values(created_weekNo) as created_weekNo values(ceated_yearNo) as created_yearNo values(creationDate) as creationDate values(slaName) as slaName by key&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 08:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571768#M199244</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-21T08:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a new column/s for data matrix ( #subsearch #appendcols )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571885#M199281</link>
      <description>&lt;P&gt;Thank you for the response,&amp;nbsp; &amp;nbsp;. That's a good reminder the stats can be used for just data gathering as well, I'll definitely use that more moving forward with more organized data.&amp;nbsp;On that note, it looks as though between the two sources, the field "key" is not the same (shown below in table), although I still mention that the values rendered are the unique id's.&lt;/P&gt;&lt;P&gt;Ultimately, I need Splunk's version of a vlookup between these two source columns using the values in the following columns as the Unique Identifiers. PS I tried seeing if I could do a field extraction making the columns the same name, but I'm already using the string to generate the team_name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is query I entered, the return results, and a reference table that indicates the "key" to sourcetype:&lt;/P&gt;&lt;P&gt;index=jira sourcetype="jira:sla:json" OR sourcetype="jira:issues:json"| rex field=fields.created "(?P&amp;lt;creationDate&amp;gt;\d+-\d+-\d+)"&lt;BR /&gt;| rex field=fields.created "(?P&amp;lt;creationTime&amp;gt;\d+:\d+:\d+)"&lt;BR /&gt;| eval created_weekNo=strftime(strptime(creationDate,"%Y-%m-%d"),"%V")&lt;BR /&gt;| eval created_yearNo=strftime(strptime(creationDate,"%Y-%m-%d"),"%y")| stats values(team_name) as team_name values(created_weekNo) as created_weekNo values(created_yearNo) as created_yearNo values(creationDate) as creationDate values(slaName) as slaName by key&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;By "key":&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE width="758px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="78.8333px" height="24px"&gt;&amp;nbsp;key&lt;/TD&gt;&lt;TD width="101.104px" height="24px"&gt;team_name&amp;nbsp;&lt;/TD&gt;&lt;TD width="138.938px" height="24px"&gt;created_weekNo&amp;nbsp;&lt;/TD&gt;&lt;TD width="132.979px" height="24px"&gt;created_yearNo&amp;nbsp;&lt;/TD&gt;&lt;TD width="108.979px" height="24px"&gt;creationDate&amp;nbsp;&lt;/TD&gt;&lt;TD width="195.833px" height="24px"&gt;&lt;FONT color="#FF0000"&gt;slaName&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="78.8333px" height="46px"&gt;ADVANA-100&lt;/TD&gt;&lt;TD width="101.104px" height="46px"&gt;ADVANA&lt;/TD&gt;&lt;TD width="138.938px" height="46px"&gt;24&lt;/TD&gt;&lt;TD width="132.979px" height="46px"&gt;20&lt;/TD&gt;&lt;TD width="108.979px" height="46px"&gt;2020-06-08&lt;/TD&gt;&lt;TD width="195.833px" height="46px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;By "issueKey":&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="78.9167px" height="24px"&gt;&amp;nbsp;issueKey&lt;/TD&gt;&lt;TD width="101.104px" height="24px"&gt;&lt;FONT color="#FF0000"&gt;team_name&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="138.938px" height="24px"&gt;&lt;FONT color="#FF0000"&gt;created_weekNo&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="131.521px" height="24px"&gt;&lt;FONT color="#FF0000"&gt;created_yearNo&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="108.979px" height="24px"&gt;&lt;FONT color="#FF0000"&gt;creationDate&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="156.542px" height="24px"&gt;&lt;FONT color="#000000"&gt;slaName&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="78.9167px" height="131px"&gt;ADVANA-100&lt;/TD&gt;&lt;TD width="101.104px" height="131px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="138.938px" height="131px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="131.521px" height="131px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="108.979px" height="131px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="156.542px" height="131px"&gt;&lt;DIV class=""&gt;DSDE In Progress SLA&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;DSDE Pending Approval SLA&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;DSDE Ready to Start SLA&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Intended:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE width="712px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="78px" height="24px"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;issueKey&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="101px" height="24px"&gt;&lt;FONT color="#000000"&gt;team_name&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="138px" height="24px"&gt;&lt;FONT color="#000000"&gt;created_weekNo&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="131px" height="24px"&gt;&lt;FONT color="#000000"&gt;created_yearNo&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="108px" height="24px"&gt;&lt;FONT color="#000000"&gt;creationDate&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="156px" height="24px"&gt;&lt;FONT color="#000000"&gt;slaName&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="78px" height="46px"&gt;ADVANA-100&lt;/TD&gt;&lt;TD width="101px" height="46px"&gt;ADVANA&lt;/TD&gt;&lt;TD width="138px" height="46px"&gt;24&lt;/TD&gt;&lt;TD width="131px" height="46px"&gt;20&lt;/TD&gt;&lt;TD width="108px" height="46px"&gt;2020-06-08&lt;/TD&gt;&lt;TD width="156px"&gt;&lt;FONT color="#000000"&gt;DSDE In Progress SLA&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="78px" height="46px"&gt;ADVANA-100&lt;/TD&gt;&lt;TD width="101px" height="46px"&gt;ADVANA&lt;/TD&gt;&lt;TD width="138px" height="46px"&gt;24&lt;/TD&gt;&lt;TD width="131px" height="46px"&gt;20&lt;/TD&gt;&lt;TD width="108px" height="46px"&gt;2020-06-08&lt;/TD&gt;&lt;TD width="156px"&gt;&lt;FONT color="#000000"&gt;DSDE Pending Approval SLA&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="78px" height="46px"&gt;ADVANA-100&lt;/TD&gt;&lt;TD width="101px" height="46px"&gt;ADVANA&lt;/TD&gt;&lt;TD width="138px" height="46px"&gt;24&lt;/TD&gt;&lt;TD width="131px" height="46px"&gt;20&lt;/TD&gt;&lt;TD width="108px" height="46px"&gt;2020-06-08&lt;/TD&gt;&lt;TD width="156px"&gt;&lt;FONT color="#000000"&gt;DSDE Ready to Start SLA&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference Table:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;&lt;STRONG&gt;Sourcetype&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;&lt;STRONG&gt;Column Reference&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;jira:issues:json&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;key&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;jira:sla:json&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;issueKey&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 18:59:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571885#M199281</guid>
      <dc:creator>jbuddy24</dc:creator>
      <dc:date>2021-10-21T18:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a new column/s for data matrix ( #subsearch #appendcols )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571890#M199283</link>
      <description>&lt;P&gt;I'm also looking into this article as well that I found, I wonder if this could help with renaming a field into the same one, I just hope that this key field that I have an extraction on isn't affected:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/convert-two-values-same-name/m-p/24246" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/convert-two-values-same-name/m-p/24246&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 19:07:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571890#M199283</guid>
      <dc:creator>jbuddy24</dc:creator>
      <dc:date>2021-10-21T19:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a new column/s for data matrix ( #subsearch #appendcols )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571908#M199291</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=jira sourcetype="jira:sla:json" OR sourcetype="jira:issues:json"| rex field=fields.created "(?P&amp;lt;creationDate&amp;gt;\d+-\d+-\d+)"
| rex field=fields.created "(?P&amp;lt;creationTime&amp;gt;\d+:\d+:\d+)"
| eval created_weekNo=strftime(strptime(creationDate,"%Y-%m-%d"),"%V")
| eval created_yearNo=strftime(strptime(creationDate,"%Y-%m-%d"),"%y")
| eval key=coalesce(key,issueKey) 
| stats values(team_name) as team_name values(created_weekNo) as created_weekNo values(created_yearNo) as created_yearNo values(creationDate) as creationDate values(slaName) as slaName by key&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Oct 2021 20:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571908#M199291</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2021-10-21T20:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a new column/s for data matrix ( #subsearch #appendcols )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571911#M199293</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is funny, I just found this similar solution with SPL:&lt;/P&gt;&lt;P&gt;index=jira sourcetype="jira:sla:json" OR sourcetype="jira:issues:json"&lt;BR /&gt;| rex field=fields.created "(?P&amp;lt;creationDate&amp;gt;\d+-\d+-\d+)"&lt;BR /&gt;| rex field=fields.created "(?P&amp;lt;creationTime&amp;gt;\d+:\d+:\d+)"&lt;BR /&gt;| eval created_weekNo=strftime(strptime(creationDate,"%Y-%m-%d"),"%V")&lt;BR /&gt;| eval created_yearNo=strftime(strptime(creationDate,"%Y-%m-%d"),"%y")&lt;BR /&gt;| eval key_edited = coalesce(key, issueKey)&lt;BR /&gt;| stats values(team_name) as team_name values(created_weekNo) as created_weekNo values(created_yearNo) as created_yearNo values(creationDate) as creationDate values(slaName) as slaName by key_edited&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only problem now is that the slaName needs to be on a difference row. It's combined to one cell looking like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbuddy24_0-1634850712777.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16536i6724D4B871CF54EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jbuddy24_0-1634850712777.png" alt="jbuddy24_0-1634850712777.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Trying to explore looking into the mvexpand to see if that might help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 21:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571911#M199293</guid>
      <dc:creator>jbuddy24</dc:creator>
      <dc:date>2021-10-21T21:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a new column/s for data matrix ( #subsearch #appendcols )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571915#M199294</link>
      <description>&lt;P&gt;So, you're getting more than 1 events with different&amp;nbsp;&lt;SPAN&gt;slaName for same key/issueKey. Do you want to just keep the latest one? If yes, then change values(slaName) to latest(slaName).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 21:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571915#M199294</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2021-10-21T21:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a new column/s for data matrix ( #subsearch #appendcols )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571919#M199295</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I figured it out, it looks like mvexpand did the trick getting the slaName data on different rows (I included in the picture below- highlighted):&lt;/P&gt;&lt;P&gt;index=jira sourcetype="jira:sla:json" OR sourcetype="jira:issues:json"&lt;BR /&gt;| rex field=fields.created "(?P&amp;lt;creationDate&amp;gt;\d+-\d+-\d+)"&lt;BR /&gt;| rex field=fields.created "(?P&amp;lt;creationTime&amp;gt;\d+:\d+:\d+)"&lt;BR /&gt;| eval created_weekNo=strftime(strptime(creationDate,"%Y-%m-%d"),"%V")&lt;BR /&gt;| eval created_yearNo=strftime(strptime(creationDate,"%Y-%m-%d"),"%y")&lt;BR /&gt;| eval key=coalesce(key,issueKey)&lt;BR /&gt;| stats values(team_name) as team_name values(created_weekNo) as created_weekNo values(created_yearNo) as created_yearNo values(creationDate) as creationDate values(slaName) as slaName values(fields.status.name) as fields.status.name by key&lt;BR /&gt;| mvexpand slaName&lt;BR /&gt;| sort key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbuddy24_0-1634852066836.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16537i97ABB47E20C80A2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jbuddy24_0-1634852066836.png" alt="jbuddy24_0-1634852066836.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 21:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571919#M199295</guid>
      <dc:creator>jbuddy24</dc:creator>
      <dc:date>2021-10-21T21:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a new column/s for data matrix ( #subsearch #appendcols )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571930#M199298</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp; &amp;amp; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Closing the book on this one, the last query got the results I was looking for on this topic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both for your quick and knowledgeable help, much appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 22:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-create-a-new-column-s-for-data-matrix-subsearch/m-p/571930#M199298</guid>
      <dc:creator>jbuddy24</dc:creator>
      <dc:date>2021-10-21T22:34:16Z</dc:date>
    </item>
  </channel>
</rss>

