<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How get one specific column from array of local variable data</title><link>https://community.appian.com/discussions/f/user-interface/35180/how-get-one-specific-column-from-array-of-local-variable-data</link><description>Hi 
 I have one local variable and it has array of data in that i want one specific column data from each index and need to add those column data 
 for example: 
 local!test: 
 1. testid=1,testname=&amp;quot;qwerty&amp;quot;,testtime=9,testcomments=&amp;quot;testtest&amp;quot; 
 2. testid</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How get one specific column from array of local variable data</title><link>https://community.appian.com/thread/136550?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 09:37:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b98e09a-bc9e-414c-b564-74d63ed68bd5</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Good to know, Verify the answer so question is marked as closed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How get one specific column from array of local variable data</title><link>https://community.appian.com/thread/136549?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 09:35:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af086635-896e-4e32-9c00-b35af56f5b59</guid><dc:creator>dharanik2600</dc:creator><description>&lt;p&gt;Thank you every one it worked ,i tried in correct way only using sum(index(local!test,&amp;quot;columnname&amp;quot;,{}) but i missed to refer the column with recordtype instead i directly called with columnname double quotes&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How get one specific column from array of local variable data</title><link>https://community.appian.com/thread/136545?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 09:06:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7f0b5e1-6d65-4e34-a7b8-9d5e0f558a45</guid><dc:creator>venkatrea696188</dc:creator><description>[quote userid="161662" url="~/discussions/f/user-interface/35180/how-get-one-specific-column-from-array-of-local-variable-data/136542"]but the array of values was not limited to 3 it can be more also and also in a!map do i need to pass all columns data for all items(example 3 here) cant we pass index like that could you please suggest[/quote]
&lt;p&gt;I just copied your data that&amp;#39;s it. I don&amp;#39;t get what you are exactly saying , but as longs as your data (how many rows it may be) has that field that you want to add, sum is going to work fine .And no need for columns ,If you are not using it anywhere&amp;nbsp; just get the required fields.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How get one specific column from array of local variable data</title><link>https://community.appian.com/thread/136544?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 09:01:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ba3ca3a-0e0c-49fa-876e-cde37d1dee14</guid><dc:creator>lokeshk0623</dc:creator><description>&lt;p&gt;directly use sum function with a parameters&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How get one specific column from array of local variable data</title><link>https://community.appian.com/thread/136542?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 08:44:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5cf709d0-4156-4177-93af-7dea8fddb35c</guid><dc:creator>dharanik2600</dc:creator><description>&lt;p&gt;Thank you for this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but the array of values was not limited to 3 it can be more also and also in a!map do i need to pass all columns data for all items(example 3 here) cant we pass index like that could you please suggest&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How get one specific column from array of local variable data</title><link>https://community.appian.com/thread/136541?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 08:39:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5a253cf7-5c0d-4abf-8eb9-31c88435236c</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;You can use Sum() function to achieve this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How get one specific column from array of local variable data</title><link>https://community.appian.com/thread/136540?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 08:26:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:875ffcc6-6e33-4567-aa3e-1f7f41c5183a</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!test:{a!map(testid:1,testname:&amp;quot;qwerty&amp;quot;,testtime:9,testcomments:&amp;quot;testtest&amp;quot;),
 a!map( testid:1,testname:&amp;quot;qwerty&amp;quot;,testtime:6,testcomments:&amp;quot;testtest&amp;quot;),
  a!map(
    testid:1,testname:&amp;quot;rest&amp;quot;,testtime:1,testcomments:&amp;quot;testtest&amp;quot;
  )},
  sum(local!test.testtime)
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t have to use foreach just go with sum and index the field . Refer above code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>