<?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 implement it in interface using grid?</title><link>https://community.appian.com/discussions/f/new-to-appian/22613/how-to-implement-it-in-interface-using-grid</link><description>Hi Team, 
 Can anyone please help me how can I implement the case given below in interface using grid: 
 
 
 
 Col A 
 Count 
 Col B 
 
 
 a 
 1 
 
 
 
 a 
 2 
 
 
 
 a 
 1 
 
 
 
 Total a 
 4 
 
 
 
 b 
 1 
 
 
 
 b 
 2 
 
 
 
 Total b 
 3 
 
 
 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to implement it in interface using grid?</title><link>https://community.appian.com/thread/88462?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 09:09:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d9d69fb-a543-430a-bf30-6e41b25b81a8</guid><dc:creator>Farnaz</dc:creator><description>&lt;p&gt;Hi Shubham,&lt;/p&gt;
&lt;p&gt;I agree with others, you can create an internal CDT (not mapped to any table) with the required fields.&lt;/p&gt;
&lt;p&gt;Create an expression rule and map you required data using&amp;nbsp;two variables - one retrieving the data (a and b) and the other retrieving the aggregate data (Total a, Total b).&lt;/p&gt;
&lt;p&gt;Then map your required data in the internal CDT with a!forEach()&lt;/p&gt;
&lt;p&gt;In the interface map a local variable with the Expression Rule and use this local variable as data in grid.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Farnaz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement it in interface using grid?</title><link>https://community.appian.com/thread/88422?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 10:17:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56adf988-e9e1-472a-82a7-1897fe423419</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;puh, this goes deep and needs a lot of explaination.&lt;br /&gt;you need a query rule regarding aggregation:&lt;br /&gt;see here:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/Appian_Data_Types.html#query"&gt;https://docs.appian.com/suite/help/21.4/Appian_Data_Types.html#query&lt;/a&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/fnc_system_a_query.html"&gt;https://docs.appian.com/suite/help/21.4/fnc_system_a_query.html&lt;/a&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/Appian_Data_Types.html#aggregation"&gt;https://docs.appian.com/suite/help/21.4/Appian_Data_Types.html#aggregation&lt;/a&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/fnc_system_a_queryaggregationcolumn.html"&gt;https://docs.appian.com/suite/help/21.4/fnc_system_a_queryaggregationcolumn.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;second: you need to fill your grid with the suitable query result.&lt;br /&gt;Informations about gridfields.&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/Paging_Grid_Component.html"&gt;docs.appian.com/.../Paging_Grid_Component.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement it in interface using grid?</title><link>https://community.appian.com/thread/88400?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 17:25:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c34553b-b79f-4318-9be4-d0d815b73c36</guid><dc:creator>shubhamy0001</dc:creator><description>&lt;p&gt;Okay, But how to insert Total after each set of rows. If possible could you please explain more and share the code snippet, it would be really helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement it in interface using grid?</title><link>https://community.appian.com/thread/88388?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 12:53:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:73474cc3-592f-4db8-9869-0e2eb426805d</guid><dc:creator>Tanvir Sarkar</dc:creator><description>&lt;p&gt;Create a rule using Query Aggregation to get the count of each column. Then use the rule as data source for readonly grid&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>