<?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: Calculate completion% for a specific field in a table and display it under the same field in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Calculate-completion-for-a-specific-field-in-a-table-and-display/m-p/670965#M54919</link>
    <description>&lt;LI-CODE lang="markup"&gt;| appendpipe
    [| eval Completed=if(Name="Grand Total:",100*Completed/(Completed + Remaining), null())
    | eval Remaining=null()
    | eval Name=if(Name="Grand Total:","Completion%",null())
    | where isnotnull(Name)]&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 06 Dec 2023 08:58:06 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-12-06T08:58:06Z</dc:date>
    <item>
      <title>Calculate completion% for a specific field in a table and display it under the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Calculate-completion-for-a-specific-field-in-a-table-and-display/m-p/670957#M54916</link>
      <description>&lt;P&gt;Hi Splunk Gurus,&amp;nbsp;&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;I need your expertise in solving a rather simple issue which is taking lot more hours for me to solve. I'm trying to create a table in Splunk which should display Grand Total under each row and also display Compleion% under "Completed" field. I'm able to achieve the grand total using addcoltotals. However, I'm unable to display the completion% under "Completed" field.&lt;/P&gt;&lt;P&gt;Here is how the table should look like:&lt;/P&gt;&lt;TABLE width="253"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="92"&gt;&amp;nbsp;Name&amp;nbsp;&lt;/TD&gt;&lt;TD width="79"&gt;&amp;nbsp;Remaining&amp;nbsp;&lt;/TD&gt;&lt;TD width="82"&gt;&amp;nbsp;Completed&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;Alice&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;Bob&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;63&lt;/TD&gt;&lt;TD&gt;42&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;Claire&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;David&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;Emma&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Grand Total:&lt;/TD&gt;&lt;TD&gt;223&lt;/TD&gt;&lt;TD&gt;162&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Completion%&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;42.07%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;percetnage calculation = 162/(223+162)*100&lt;/P&gt;&lt;P&gt;I tried using eval function to calculate the percentage but it calculates for each row in a new field. Can you please help me out? Many thanks. Much appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 08:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Calculate-completion-for-a-specific-field-in-a-table-and-display/m-p/670957#M54916</guid>
      <dc:creator>maverick27</dc:creator>
      <dc:date>2023-12-06T08:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate completion% for a specific field in a table and display it under the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Calculate-completion-for-a-specific-field-in-a-table-and-display/m-p/670965#M54919</link>
      <description>&lt;LI-CODE lang="markup"&gt;| appendpipe
    [| eval Completed=if(Name="Grand Total:",100*Completed/(Completed + Remaining), null())
    | eval Remaining=null()
    | eval Name=if(Name="Grand Total:","Completion%",null())
    | where isnotnull(Name)]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Dec 2023 08:58:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Calculate-completion-for-a-specific-field-in-a-table-and-display/m-p/670965#M54919</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-06T08:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate completion% for a specific field in a table and display it under the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Calculate-completion-for-a-specific-field-in-a-table-and-display/m-p/670983#M54923</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;Thank you for the quick revert. It worked! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 09:49:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Calculate-completion-for-a-specific-field-in-a-table-and-display/m-p/670983#M54923</guid>
      <dc:creator>maverick27</dc:creator>
      <dc:date>2023-12-06T09:49:04Z</dc:date>
    </item>
  </channel>
</rss>

