<?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>Using filter in the record, count the days from date range</title><link>https://community.appian.com/discussions/f/data/34772/using-filter-in-the-record-count-the-days-from-date-range</link><description>HI, I have a question regarding the Filters. Like I have table of name Employee and it has column -ID,Name,JoiningDate and LastDate. So Is there any way to count the number of working days of the emplyoee and show on the Interface in the records. Using</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Using filter in the record, count the days from date range</title><link>https://community.appian.com/thread/134170?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 15:24:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:59d360fd-cd81-40db-93af-ddd31baa7056</guid><dc:creator>romav295036</dc:creator><description>&lt;p&gt;Thanks ,&lt;br /&gt;I will try to use it .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using filter in the record, count the days from date range</title><link>https://community.appian.com/thread/134169?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 15:04:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9b1701f-5cdc-4bb8-b58a-73e6f594c6ae</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1713970652762v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1713970685076v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1713970700194v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;Something like above. Calculate the date difference using a custom record field and create a user filter.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Example code for User filter-Update accordingly

a!localVariables(
  local!days: a!forEach(
    items: enumerate(10) + 1,
    expression: fv!item * 100
  ),
  a!recordFilterList(
    name: &amp;quot;Number of Days&amp;quot;,
    options: a!forEach(
      items: local!days,
      expression: a!recordFilterListOption(
        id: fv!index,
        name: concat(&amp;quot;&amp;lt;&amp;quot;, fv!item, &amp;quot; Days&amp;quot;),
        filter: a!queryFilter(
          field: &amp;#39;recordType!KS Sample.fields.Days&amp;#39;,
          operator: &amp;quot;&amp;lt;&amp;quot;,
          value: fv!item
        )
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Custom field using sync-time evaluation. just a normal date difference by subtraction your last date and joining date and format using toInteger()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using filter in the record, count the days from date range</title><link>https://community.appian.com/thread/134162?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 13:24:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4ca9fdb-b824-4c60-9921-b52517892c77</guid><dc:creator>romav295036</dc:creator><description>&lt;p&gt;Can you please brifly explain how I can pass date from the Interface if range is created?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using filter in the record, count the days from date range</title><link>https://community.appian.com/thread/134160?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 12:40:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e21e1cc-6f08-44f4-83da-bcd51ddb9306</guid><dc:creator>romav295036</dc:creator><description>&lt;p&gt;yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using filter in the record, count the days from date range</title><link>https://community.appian.com/thread/134144?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 11:28:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18c59aee-4e35-4b71-8441-dc85a28edb89</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;You can use the calworkdays function in a sync time Record field&amp;nbsp;&lt;a id="" href="https://docs.appian.com/suite/help/24.1/fnc_date_and_time_calworkdays.html"&gt;https://docs.appian.com/suite/help/24.1/fnc_date_and_time_calworkdays.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1713958078616v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using filter in the record, count the days from date range</title><link>https://community.appian.com/thread/134143?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 11:25:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a4acc143-61aa-4f49-ad7b-2db63383d1eb</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, you can do that. use custom record fields to calculate this. And for the filters you would need to have a range where the days should fall in between.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using filter in the record, count the days from date range</title><link>https://community.appian.com/thread/134141?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 11:25:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27133d66-9659-4175-8b51-1917c559a8e4</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;&amp;nbsp;hi &amp;nbsp; Are you try to show the number of working days using the Joining date and last date columns?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>