<?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>Getting distinct values from an entity</title><link>https://community.appian.com/discussions/f/rules/22023/getting-distinct-values-from-an-entity</link><description>Hi Everyone, 
 I have a query which will receive a text input based on that it will query data.(The data is like the reviews received for books under one particular genre, say I give my input as romance that will give all those reviews under all books</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Getting distinct values from an entity</title><link>https://community.appian.com/thread/86224?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 14:23:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11c42a14-ef2c-4f85-b31d-717ac4741012</guid><dc:creator>KavyaNatrajan</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/3286.Snap1.png" /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/6811.pastedimage1632752567955v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting distinct values from an entity</title><link>https://community.appian.com/thread/86222?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 14:21:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8ac4853d-a190-4d11-879f-59738987a84c</guid><dc:creator>KavyaNatrajan</dc:creator><description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the reply, I grouped it based on the book_name and I got the avg of the reviews.But I am facing issue in retrieving the rating as icons. The input rating throws error&amp;nbsp; &amp;quot;&lt;span&gt;Cannot index property &amp;#39;rating&amp;#39; of type String into type List of Variant&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting distinct values from an entity</title><link>https://community.appian.com/thread/86220?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 14:12:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:58449d38-abaa-4330-851d-f47db07a24fc</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;It looks like you&amp;#39;re querying from the wrong side. Instead of querying reviews, try querying books and then the reviews for each book. If you use Appian Records, you can easily group data by related fields&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>