<?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 Additional column with values based on existing column values in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Additional-column-with-values-based-on-existing-column-values/m-p/711099#M58178</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am displaying a table as a result from the Search, however I would like to add an additional column with static values based on the existing column. For example,&lt;BR /&gt;&lt;BR /&gt;S.No&amp;nbsp; &amp;nbsp; Name&amp;nbsp; &amp;nbsp; Dept&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Andy&amp;nbsp; &amp;nbsp; &amp;nbsp; IT&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Chris&amp;nbsp; &amp;nbsp; &amp;nbsp; Bus&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nike&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the above table, I would like to add another column called Company and map value based on Dept column as below&lt;BR /&gt;If Dept is IT, then the value for Company as XXXX&lt;/P&gt;&lt;P&gt;If Dept is Bus, then the value for Company is YYYY&lt;/P&gt;&lt;P&gt;If Dept is Pay, then the value for Company is ZZZZ and the final table should look like&lt;/P&gt;&lt;P&gt;S.No&amp;nbsp; &amp;nbsp; Name&amp;nbsp; &amp;nbsp; Dept&amp;nbsp; &amp;nbsp; Comp&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Andy&amp;nbsp; &amp;nbsp; &amp;nbsp; IT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XXXX&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Chris&amp;nbsp; &amp;nbsp; &amp;nbsp; Bus&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YYYY&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nike&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pay&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ZZZZ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;LI-PRODUCT title="Dashboard" id="6972"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2025 09:08:38 GMT</pubDate>
    <dc:creator>anmohan0</dc:creator>
    <dc:date>2025-02-10T09:08:38Z</dc:date>
    <item>
      <title>Additional column with values based on existing column values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Additional-column-with-values-based-on-existing-column-values/m-p/711099#M58178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am displaying a table as a result from the Search, however I would like to add an additional column with static values based on the existing column. For example,&lt;BR /&gt;&lt;BR /&gt;S.No&amp;nbsp; &amp;nbsp; Name&amp;nbsp; &amp;nbsp; Dept&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Andy&amp;nbsp; &amp;nbsp; &amp;nbsp; IT&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Chris&amp;nbsp; &amp;nbsp; &amp;nbsp; Bus&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nike&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the above table, I would like to add another column called Company and map value based on Dept column as below&lt;BR /&gt;If Dept is IT, then the value for Company as XXXX&lt;/P&gt;&lt;P&gt;If Dept is Bus, then the value for Company is YYYY&lt;/P&gt;&lt;P&gt;If Dept is Pay, then the value for Company is ZZZZ and the final table should look like&lt;/P&gt;&lt;P&gt;S.No&amp;nbsp; &amp;nbsp; Name&amp;nbsp; &amp;nbsp; Dept&amp;nbsp; &amp;nbsp; Comp&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Andy&amp;nbsp; &amp;nbsp; &amp;nbsp; IT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XXXX&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Chris&amp;nbsp; &amp;nbsp; &amp;nbsp; Bus&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YYYY&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nike&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pay&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ZZZZ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;LI-PRODUCT title="Dashboard" id="6972"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 09:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Additional-column-with-values-based-on-existing-column-values/m-p/711099#M58178</guid>
      <dc:creator>anmohan0</dc:creator>
      <dc:date>2025-02-10T09:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Additional column with values based on existing column values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Additional-column-with-values-based-on-existing-column-values/m-p/711102#M58179</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval Comp=case(Dept=="IT","XXXX",Dept=="Bus","YYYY",Dept=="Pay","ZZZZ")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 Feb 2025 09:28:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Additional-column-with-values-based-on-existing-column-values/m-p/711102#M58179</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-02-10T09:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Additional column with values based on existing column values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Additional-column-with-values-based-on-existing-column-values/m-p/711147#M58182</link>
      <description>&lt;P&gt;Thanks for the quick help and it did save my day!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 12:19:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Additional-column-with-values-based-on-existing-column-values/m-p/711147#M58182</guid>
      <dc:creator>anmohan0</dc:creator>
      <dc:date>2025-02-10T12:19:27Z</dc:date>
    </item>
  </channel>
</rss>

