<?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>I have a group of items that&amp;#39;s being created in a rule and its format is lik</title><link>https://community.appian.com/discussions/f/general/2516/i-have-a-group-of-items-that-s-being-created-in-a-rule-and-its-format-is-lik</link><description>I have a group of items that&amp;#39;s being created in a rule and its format is like this: [month = 3, year = 2013, number = 1], [month = 3, year = 2013, number = 1], [month = 3, year = 2013, number = 1], [month = 3, year = 2014, number = 1], [month = 3, year</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I have a group of items that's being created in a rule and its format is lik</title><link>https://community.appian.com/thread/8847?ContentTypeID=1</link><pubDate>Sat, 12 Apr 2014 14:55:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27819a3f-1d78-498e-98e7-be438ab40318</guid><dc:creator>Michael Tan</dc:creator><description>For whatever data set you have returned, you can get the unique combination of month and year by merging the month and year arrays and taking the union of that array with itself. See rule below:&lt;br /&gt;&lt;br /&gt;union(merge(a,b),merge(a,b))&lt;br /&gt;&lt;br /&gt;For your example data set this would yield three combinations to check for (3-2013, 3-2014, and 4-2014).&lt;br /&gt;You can use this with the expression Jesse mentioned to dynamically iterate over the original data set.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a group of items that's being created in a rule and its format is lik</title><link>https://community.appian.com/thread/8803?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 22:45:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b7c0b7f-8f4f-496e-a591-ce0f52d2c8a0</guid><dc:creator>aswinb</dc:creator><description>Yes Jesse, I am trying to do this dynamically for each month in different years and so a monthOfInterest and yearOfInterest can&amp;#39;t be provided. There will be two given sets of dates and between those I have to count the number of items that were created each month and in each year that happens between the time intervals that the user selects.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a group of items that's being created in a rule and its format is lik</title><link>https://community.appian.com/thread/8801?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 22:23:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:38b7ed2b-5919-413c-a02f-ccca92aa5446</guid><dc:creator>jesse.triplett</dc:creator><description>If you&amp;#39;re looking for a specific month and year you can use wherecontains. &lt;br /&gt;EG You could return the indices that match the year of interest, the indices that match the month of interest and intersect them, and count the result. Alternatively you could do it one line like below.&lt;br /&gt;&lt;br /&gt;count(wherecontains(monthOfInterest,touniformstring(index(items,wherecontains(yearOfInterest,touniformstring(items.year))).month)))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you&amp;#39;re looking to do this dynamically for all combinations of unique month/year, you&amp;#39;ll have to make some expression rules and apply over them, but the same principles apply.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a group of items that's being created in a rule and its format is lik</title><link>https://community.appian.com/thread/8800?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 21:46:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:906c65c9-e68d-48a4-8bac-f67aaea25562</guid><dc:creator>larson.thune</dc:creator><description>Wrap your CDT in todatasubset().totalCount&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>