<?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>Calculate rolling sum by userId</title><link>https://community.appian.com/discussions/f/rules/29030/calculate-rolling-sum-by-userid</link><description>I&amp;#39;m trying to figure out how I would configure an expression rule to perform a rolling sum by userId. 
 For a given person, calculate how many hours they worked for a rolling 7 days, and if they have exceeded 10 hours then return true. Otherwise, false</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Calculate rolling sum by userId</title><link>https://community.appian.com/thread/114600?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 19:12:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee5bbc76-74bb-4fd2-85db-0cd0a1d8ddff</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Well, this is something you could do in Appian, in theory, but Appian is not meant to do any sort of larger data processing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calculate rolling sum by userId</title><link>https://community.appian.com/thread/114599?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 17:55:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab3ec11e-b62f-4bbb-a9ce-5677812f65ba</guid><dc:creator>Mike S</dc:creator><description>&lt;p&gt;That was the way I was immediately leaning, but i come from a db / backend development background. So I was trying to see if there was an Appian way before I turned that direction.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calculate rolling sum by userId</title><link>https://community.appian.com/thread/114595?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 16:41:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a191f834-2398-49dd-91a6-d138ad0f7b17</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;IMHO, this sounds like a stored procedure might be a good option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calculate rolling sum by userId</title><link>https://community.appian.com/thread/114594?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 16:32:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4623d928-1f34-4823-9c5d-998ddbb223e6</guid><dc:creator>Mike S</dc:creator><description>&lt;p&gt;The process would run daily to process the entire set of records and calculate for the given date. More succinctly if I go back to my example above. It would run once at the end of the day for the 8th and determine that the current&amp;nbsp;result is false. Then on the 9th it would run at the end of the day and determine result is true.&lt;/p&gt;
&lt;p&gt;Record query time -&amp;gt; No&lt;/p&gt;
&lt;p&gt;Record update time -&amp;gt; Maybe&lt;/p&gt;
&lt;p&gt;in a process -&amp;gt; Yes&lt;/p&gt;
&lt;p&gt;UI -&amp;gt; No&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The purpose is to have a&amp;nbsp;points accumulation system. When they break this threshold they achieve a point. The following day if they break the threshold they earn a point.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The user would only ever see their points they have accumulated by month.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This process should run daily and process the total calculation for all users that exist in the table.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calculate rolling sum by userId</title><link>https://community.appian.com/thread/114593?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 15:01:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3ddef9b-9607-4376-b30d-afd21851ffd6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;At what time do you want to do this? At record query time, at record update time, in a process, at UI level?&lt;/p&gt;
&lt;p&gt;For which purpose? A validation?&lt;/p&gt;
&lt;p&gt;Do you need to do this for many users at the same time or only one?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>