<?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>Hello, I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/discussions/f/rules/6982/hello-i-am-trying-to-do-a-filter-the-data-of-an-entity-and-to-then-aggrega</link><description>Hello, I am trying to do a filter the data of an entity and to then aggregate that data in a report. Below is the code and its result, please advise: a!queryEntity( entity: cons!cons_HRES_EmployeeSatisSurvery_DSE, query: a!query( logicalExpression: a</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/28074?ContentTypeID=1</link><pubDate>Fri, 19 Feb 2016 10:20:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7ab9f60-1880-4234-a8dd-ac384a8a0883</guid><dc:creator>Sidhant Behura</dc:creator><description>@narasimhaadityac - No problem...happens to all...cheers...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/28033?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 21:27:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:38e136ed-14ff-4a15-b742-67dfb57e6f73</guid><dc:creator>narasimhaadityac</dc:creator><description>Hi Adela, sorry I did not realize that the ri! Translated as I was tying that message in mobile.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/28023?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 18:53:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d104333-c2a0-48b4-ba6f-321e651bea04</guid><dc:creator>sikhivahans</dc:creator><description>@adela/@sidhantb It isn't times! but it's ri!. And it's a typo. @narasimhaadityac is trying to say with his example that you can define query filter(s) based on the availability of input. That is, if the value of the input is null, the filter won't be applied.&lt;br /&gt;&lt;br /&gt;Also just to let you know, there isn't any context such as times!.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/28021?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 17:23:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:81798d0a-4670-4515-b68c-6fc126f963af</guid><dc:creator>Sidhant Behura</dc:creator><description>@adela - I also had that doubt ... But I guess its a typo or auto-correct may be ..&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/28020?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 17:19:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d422c7c7-a8c6-4d0f-95e5-4f8b84662dc2</guid><dc:creator>Adel Ammari</dc:creator><description>Guys, what does this translate to in English?&lt;br /&gt;&lt;br /&gt;if(rule!APN_isBlank(times!input),{},a!queryFilter()) its my 1st time to see the type times!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/28012?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 16:09:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a3980e69-0694-4676-ad35-3f37081bc6ef</guid><dc:creator>sikhivahans</dc:creator><description>@adela Not a problem.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/28010?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 16:02:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8917a9fa-8327-4dfb-a801-60a526e9da24</guid><dc:creator>Adel Ammari</dc:creator><description>@narasimhaadityac, i didn't quite understand what you mean, please elaborate. &lt;br /&gt;@sikhivahans, i think its just 'my bad', the result "Could not display interface. Please check definition and inputs." is normal as i have not defined any sail components, that explains why i got the answers above. Thanks for your help guys, but i think there is no issue to discuss here.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/27999?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 15:46:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61eb0ef2-6287-44b7-9f54-2e25bf85a976</guid><dc:creator>narasimhaadityac</dc:creator><description>Hi Adela, can we use multiple a!queryFilter based on the input availability. For example define a rule input which is present as part of search criteria and use if(rule!APN_isBlank(times!input),{},a!queryFilter()). Can you please give a try using this.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/27993?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 15:46:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3191620d-11dd-420a-81ef-0764751c4285</guid><dc:creator>sikhivahans</dc:creator><description>@adela Ah I see, would you please be able to let us know the problem you have been experiencing currently with respect to usage of filters along with grouping?&lt;br /&gt;&lt;br /&gt;You are asking for a sample but whatever code you have presented in the post is correct as per my knowledge and there isn't a problem with the way you are applying filters or grouping.&lt;br /&gt;&lt;br /&gt;Just in case, if you aren't aware of this already - Filters are applied prior to grouping and aggregation operations.&lt;br /&gt;&lt;br /&gt;If you are expecting a different functionality out of this implementation, please feel free to elaborate and discuss, and the community will provide you with elegant suggestions.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/27992?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 15:31:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:364d9bc9-8cf4-406d-b06d-06c7c2a9150e</guid><dc:creator>Adel Ammari</dc:creator><description>I know, this expression needs to be saved in a rule, I am using the interface designer for testing purposes only. And as indicated above, my problem is only with using both filter and aggregation together!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/27991?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 15:29:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a20d16d5-a98f-4b71-b76b-1c8378eca507</guid><dc:creator>Sidhant Behura</dc:creator><description>@adela - Consume the datasubset returned from the queryEntity in a local variable and show the data in a SAIL component (like pie chart or grid).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/27990?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 15:29:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bf07a429-e8b5-43b3-a2d9-524edba26112</guid><dc:creator>Adel Ammari</dc:creator><description>My problem basically is using a filter with aggregation. If any of you have a sample  that would be great.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/27989?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 15:28:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:395a424e-f52f-4d82-b6e2-8048d85db7e5</guid><dc:creator>sikhivahans</dc:creator><description>Alternatively, in the same interface, the output of the query entity can be associated with a local variable and the output can be displayed by making use of a SAIL component.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/27986?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 15:24:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af57e117-c736-43d4-8285-2885d371c225</guid><dc:creator>Stefan Helzle</dc:creator><description>The result looks good when you would have and expression. This seems to be a SAIL interface definition.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/27985?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 15:23:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:edf0819a-b840-421e-b142-01afeeceec5b</guid><dc:creator>Rahul Gundu</dc:creator><description>Hi Adela, Based on my understanding, you are created this rule in interface. Rather create a expression rule using option &amp;quot;Create an Expression Rule&amp;quot;. After, by making use of this rule create a report using option &amp;quot;Create an interface&amp;quot;. The below link gives you an idea, how to write a queryEntity() &lt;a href="https://forum.appian.com/suite/help/16.1/Query_Recipes.html"&gt;forum.appian.com/.../Query_Recipes.html&lt;/a&gt; &lt;br /&gt;After this create a report using interface &lt;a href="https://forum.appian.com/suite/help/16.1/SAIL_Recipes.html#Configure_a_Chart_Drilldown_to_a_Grid"&gt;forum.appian.com/.../SAIL_Recipes.html&lt;/a&gt;   Hope it helps.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am trying to do a filter the data of an entity and to then aggrega</title><link>https://community.appian.com/thread/27984?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 15:01:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:928b4585-37e7-4d0c-8027-9979462b375f</guid><dc:creator>Adel Ammari</dc:creator><description>...Interface Definition: Not a valid component. Received: [startIndex=1, batchSize=-1, sort=[field=PID, ascending=false], totalCount=3, data=[EMP_LOCATION:Riyadh,PID:24]; [EMP_LOCATION:Jeddah,PID:1]; [EMP_LOCATION:Dahran,PID:1], identifiers=]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>