<?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>How to get Quarters in a year.</title><link>https://community.appian.com/discussions/f/general/34559/how-to-get-quarters-in-a-year</link><description>Hi all, 
 I have a requirement of dividing 12 months in current year into 4 quarters. 
 Can anyone help me with it?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132623?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 19:48:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4d29db46-8dc3-451a-81d5-b6455cb11712</guid><dc:creator>Ing Mario</dc:creator><description>&lt;p&gt;HI, if you want to devide the &amp;quot;Year&amp;quot; In &amp;quot;Quarters&amp;quot; based on &amp;quot;Dates&amp;quot;, here is the way to do it:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(
  isnull(rv!record[&amp;#39;recordType!{4d75e90b-cfa1-4109-8430-d517fc558bbb}MMS Meeting.fields.{2e6f1ac9-328d-44df-bf3a-93cc8f6bab07}startDate&amp;#39;]),
  null,
  /* Quarter: Concatenate Q and the quarter number */
  &amp;quot;Q&amp;quot; &amp;amp; floor((month(rv!record[&amp;#39;recordType!{4d75e90b-cfa1-4109-8430-d517fc558bbb}MMS Meeting.fields.{2e6f1ac9-328d-44df-bf3a-93cc8f6bab07}startDate&amp;#39;])-1)/3) + 1
  /* Year: Concatenate year */
  &amp;amp; &amp;quot; &amp;quot; &amp;amp; year(rv!record[&amp;#39;recordType!{4d75e90b-cfa1-4109-8430-d517fc558bbb}MMS Meeting.fields.{2e6f1ac9-328d-44df-bf3a-93cc8f6bab07}startDate&amp;#39;])
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;INPUT VALUES:&amp;nbsp;&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/11/pastedimage1712260044527v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;OUTPUT:&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/11/pastedimage1712260061894v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132532?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 00:10:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:903a456c-99c0-4e1a-9a93-22d7797a1dba</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;This type of expression is a little more flexible as it will work for non-standard quarters (i.e. Jan-Mar = Q4)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!match(
  value: month(ri!date),
  whenTrue: fv!value &amp;lt;= 3,
  then: 4,
  whenTrue: fv!value &amp;lt;= 6,
  then: 1,
  whenTrue: fv!value &amp;lt;= 9,
  then: 2,
  default: 3
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can also replicate this logic in a Custom Record Field using&amp;nbsp;&lt;a id="" href="https://docs.appian.com/suite/help/24.1/fnc_crf_customfieldmatch.html"&gt;https://docs.appian.com/suite/help/24.1/fnc_crf_customfieldmatch.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132530?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 22:25:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d070133-a49c-4570-a735-a57b7fb1123a</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Use this&lt;/p&gt;
&lt;p&gt;&amp;nbsp; trunc((month(local!date) /3),0)&amp;nbsp; +1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132482?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 10:50:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fd10cc06-1e81-449c-9860-7299ad3ff8eb</guid><dc:creator>Vishal Agarwal</dc:creator><description>&lt;p&gt;Great&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132481?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 10:45:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ff649e5a-0e7b-4d32-a57e-5741c41d064e</guid><dc:creator>Divya</dc:creator><description>&lt;p&gt;Thank you It worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132480?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 10:43:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e978b5f9-32a0-4401-b326-c7a27b8c0a98</guid><dc:creator>Vishal Agarwal</dc:creator><description>&lt;p&gt;you can do like this by using custom record fields in record type&lt;/p&gt;
&lt;p&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/11/pastedimage1712140984623v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132479?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 10:34:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:160336f9-beee-4607-963c-0404abfbf80a</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Then go for a Custom record field just like i suggested&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132478?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 10:31:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c89dd154-764e-4320-9a8e-c075c0cba3cf</guid><dc:creator>Divya</dc:creator><description>&lt;p&gt;It is a recordtype&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132471?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 09:33:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cbb17018-5c4a-4eb7-b1f1-86be4a69c9bf</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1712136799109v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;For improved readability.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132470?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 09:32:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8ecd318d-02c7-4f9e-be11-0936878788f6</guid><dc:creator>Vishal Agarwal</dc:creator><description>&lt;p&gt;You can try this---&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if(&lt;br /&gt;or(&lt;br /&gt; month(todate(ri!date)) = 1,&lt;br /&gt; month(todate(ri!date)) = 2,&lt;br /&gt; month(todate(ri!date)) = 3,&lt;br /&gt;),&lt;br /&gt;&amp;quot;Jan-Mar&amp;quot;,&lt;br /&gt;if(&lt;br /&gt; or(&lt;br /&gt; month(todate(ri!date)) = 4,&lt;br /&gt; month(todate(ri!date)) = 5,&lt;br /&gt; month(todate(ri!date)) = 6,&lt;br /&gt; ),&lt;br /&gt; &amp;quot;Apr-June&amp;quot;,&lt;br /&gt; if(&lt;br /&gt; or(&lt;br /&gt; month(todate(ri!date)) = 7,&lt;br /&gt; month(todate(ri!date)) = 8,&lt;br /&gt; month(todate(ri!date)) = 9,&lt;br /&gt; ),&lt;br /&gt; &amp;quot;July-Sep&amp;quot;,&lt;br /&gt; &amp;quot;Oct-Dec&amp;quot;&lt;br /&gt; )&lt;br /&gt;)&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132469?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 09:25:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ea84e1a-4c1e-4e76-9adf-ceaa77e6e3d9</guid><dc:creator>venkatrea696188</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/11/pastedimage1712136050180v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;1.If it&amp;#39;s a recordtype go with&amp;nbsp; &lt;strong&gt;Extract a Partial Date&amp;nbsp;&lt;/strong&gt;for creating a Custom record field and use this field in Queryrecordtype.&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/24.1/custom-record-fields.html#extract-partial-dates-sync-time-evaluation"&gt;More About Extract Partial Dates&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2.If it&amp;#39;s CDT You need to Manipulate data After Coming or you need to use &lt;strong&gt;between&lt;/strong&gt; operator(Don&amp;#39;t think it gives expected outputs).&lt;/p&gt;
&lt;p&gt;3.instead of Multiple if&amp;#39;s (Which&amp;nbsp; is ton work) Go for a decision rule which somewhat looks like this&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/11/Screenshot-from-2024_2D00_04_2D00_03-14_2D00_42_2D00_23.png" /&gt;&lt;/p&gt;
&lt;p&gt;Call the rule, for month value pass it using month() function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132467?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 09:14:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b285693-8979-45cd-b499-dea868dea423</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Is it Recordtype or CDT?? .If it&amp;#39;s&amp;nbsp; recordtype i suggest you to use a custom record field.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132466?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 09:12:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:15d86935-2422-4724-9d12-8c9b4e154ab8</guid><dc:creator>Divya</dc:creator><description>&lt;p&gt;I have to query it from the database.&lt;/p&gt;
&lt;p&gt;I have tried using multiple if&amp;#39;s but it wasn&amp;#39;t working out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132465?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 09:08:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66e0bdff-72ea-4906-8867-6b467e4377de</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Write a Decision rule or Multiple If statements. Use Month Function to get the month of CloseDate.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;
month(ri!closeDate)&lt;/pre&gt;&lt;/p&gt;
[quote userid="252923" url="~/discussions/f/general/34559/how-to-get-quarters-in-a-year/132463"]The grid should show case the deals&amp;nbsp; based on the quarter in current year[/quote]
&lt;p&gt;What do you mean by this You want to Query it from Database based on quarter or You want to just manipulate Queried Data?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132463?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 08:59:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:654026f5-5418-4ba1-8d29-aa3c58019e50</guid><dc:creator>Divya</dc:creator><description>&lt;p&gt;I have a list of deals which are created and have a field known as closing date while closing the deal.&lt;/p&gt;
&lt;p&gt;When i closed a deal it should get reflected in other grid based on the quarter.&lt;/p&gt;
&lt;p&gt;The quarters are divided based on Jan to mar, apr&amp;nbsp;to jun, jul to aug, and oct to dec.&lt;/p&gt;
&lt;p&gt;The grid should show case the deals&amp;nbsp; based on the quarter in current year.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get Quarters in a year.</title><link>https://community.appian.com/thread/132462?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 08:52:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f8dc47cd-2c7d-45e3-b626-49626d82a759</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;We need more details about your expected output&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>