<?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 to group repeated values ​​in a table</title><link>https://community.appian.com/discussions/f/user-interface/27087/how-to-group-repeated-values-in-a-table</link><description>Hello everyone 
 We have a requirement where we must group repeated values ​​in a table, that is, as seen in the image, the name of a user appears 3 times, how to make it only appear once</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to group repeated values ​​in a table</title><link>https://community.appian.com/thread/106325?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 20:19:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce3894e7-28d4-4da3-8241-7c6c0091c2d9</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="92092" url="~/discussions/f/user-interface/27087/how-to-group-repeated-values-in-a-table/106324#106324"]Yes, the data is related by&amp;nbsp; the DB[/quote]
&lt;p&gt;What is the relationship / how is it stored in the DB?&amp;nbsp; What&amp;#39;s the data structure?&lt;/p&gt;
&lt;p&gt;Based on the output in your initial sceenshot my concern is that it&amp;#39;s either not being stored correctly in the DB, or not being queried correctly for use on the form.&amp;nbsp; But I can only make guesses as to the data structure based on that screenshot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to group repeated values ​​in a table</title><link>https://community.appian.com/thread/106324?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 20:17:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2f746b42-e742-4037-a951-ef62a2631a94</guid><dc:creator>schavez</dc:creator><description>&lt;p&gt;Yes, the data is related by&amp;nbsp; the DB&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to group repeated values ​​in a table</title><link>https://community.appian.com/thread/106323?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 20:15:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a4feb21-000c-442f-8c0e-90a1f2593900</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="92092" url="~/discussions/f/user-interface/27087/how-to-group-repeated-values-in-a-table/106322#106322"]assign the values of the &amp;quot;Importes&amp;quot; column to the &amp;quot;Directores&amp;quot; &lt;br /&gt;column [/quote]
&lt;p&gt;I guess what i&amp;#39;m unclear on here is what the basis of the &amp;quot;assignment&amp;quot; is supposed to be?&amp;nbsp; Do the items have some sort of inherent relationship due to the DB, or are you just hoping to evenly split up the &amp;quot;importes&amp;quot; evenly between the different &amp;quot;directores&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to group repeated values ​​in a table</title><link>https://community.appian.com/thread/106322?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 20:07:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ac14d22-4e0f-45e9-b35e-203f4a4ed93e</guid><dc:creator>schavez</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/2870.MicrosoftTeams_2D00_image.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hi Mike, apparently the image did not upload correctly. The data is consulted through record types and displayed in a grid&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;The question is how could I assign the values of the &amp;quot;Importes&amp;quot; column to the &amp;quot;Directores&amp;quot; &lt;br /&gt;column as appropriate
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Currently the values come out like this:&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;James: 1,2,3,4,5,6,7,8,9&lt;/p&gt;
&lt;p&gt;Jeff: 1,2,3,4,5,6,7,8,9&lt;/p&gt;
&lt;p&gt;Mike: 1,2,3,4,5,6,7,8,9&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;and i need something like that &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;James: 4,5,6 &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jeff: 1,2,3 &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mike: 7,8,9&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to group repeated values ​​in a table</title><link>https://community.appian.com/thread/106321?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 19:56:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b1533bdd-de5c-472a-91e2-f9d8ff35ef3b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;ol&gt;
&lt;li&gt;i don&amp;#39;t see any image, you might want to check that your post worked correctly&lt;/li&gt;
&lt;li&gt;what&amp;#39;s your use case? some more detail about the shape of your data, where you&amp;#39;re accessing it from, and what you hope to do with it / how / why, would be helpful in helping formulate some sort of answer or suggestion - as it stands, i can&amp;#39;t even tell whether you&amp;#39;re after some sort of DB solution, view, interface technique/trick, or something completely different.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to group repeated values ​​in a table</title><link>https://community.appian.com/thread/106320?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 19:45:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a2006b7-80d4-4bbf-9ddd-37102584c7de</guid><dc:creator>schavez</dc:creator><description>&lt;pre&gt;Thank you very much for your answer, how could I relate each user with its corresponding value? &lt;br /&gt;For example I need to assign the corresponding user:
James: 4,5,6
Jeff: 1,2,3
Mike: 7,8,9&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Currently the values come out like this: &lt;br /&gt;&lt;br /&gt;Santiago: 1,2,3,4,5,6,7,8,9 &lt;br /&gt;Jeff: 1,2,3,4,5,6,7,8,9 &lt;br /&gt;Mike: 1,2,3,4,5,6,7,8,9&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to group repeated values ​​in a table</title><link>https://community.appian.com/thread/106319?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 19:24:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b300f063-27a8-4805-b150-eee95f62a3a4</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;For other operations, such as counting the number of times duplicated, that might take quite a bit more effort.&amp;nbsp; Only one kind of solution is below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!forEach(
    items: union(local!list, local!list),
    expression: concat(
        fv!item,
        &amp;quot;:  &amp;quot;,
        length( wherecontains(fv!item, local!list) )
    )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Wherecontains spits out an index number for every time specified value appears in specified array, so if it&amp;#39;s at position 5, 10, and 12, output is {5,10,12}.&amp;nbsp; So the length of that output is the number of times that value appears in the array.&amp;nbsp; You remove duplicates in the items definition so you don&amp;#39;t have &amp;quot;Steve:5, Steve:5, Steve:5, Jeff: 1, Steve:5, Steve:5&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to group repeated values ​​in a table</title><link>https://community.appian.com/thread/106318?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 19:13:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d3b8add-ce83-402a-9d36-4c6545077001</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;The absolute simplest way there is to remove duplicates:&amp;nbsp; union(local!list, local!list)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>