<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Alteryx Date  filter in General Discussions</title>
    <link>https://community.alteryx.com/t5/General-Discussions/Alteryx-Date-filter/m-p/1158403#M9385</link>
    <description>&lt;P&gt;I tried applying below code but it is not converting for example month 5 day 27 year 2023 to month 4 day 1 2023.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF IsNull([AsOfDateText]) THEN&lt;BR /&gt;DateTimeParse(ToString(DateTimeYear(DateTimeNow())) + "-" +&lt;BR /&gt;ToString(IF DateTimeMonth(DateTimeNow()) &amp;gt;=1&amp;lt;= 3 THEN "01"&lt;BR /&gt;ELSEIF DateTimeMonth(DateTimeNow()) &amp;gt;=4&amp;lt;= 6 THEN "04"&lt;BR /&gt;ELSEIF DateTimeMonth(DateTimeNow()) &amp;gt;=7&amp;lt;= 9 THEN "07"&lt;BR /&gt;ELSE "10"&lt;BR /&gt;ENDIF) + "-01", "%Y-%m-%d")&lt;BR /&gt;ELSE&lt;BR /&gt;DateTimeParse(ToString([AsOfDateText]), "%Y%m%d")&lt;BR /&gt;ENDIF&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 20:49:47 GMT</pubDate>
    <dc:creator>rbanola1</dc:creator>
    <dc:date>2023-07-05T20:49:47Z</dc:date>
    <item>
      <title>Alteryx Date  filter</title>
      <link>https://community.alteryx.com/t5/General-Discussions/Alteryx-Date-filter/m-p/1158394#M9384</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a date filter for my Alteryx Practice.&lt;/P&gt;&lt;P&gt;I have a row named AsOfDate&amp;nbsp; which contains a random date (filled by me of year 2023) in yyyymmdd in string format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my question is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Condition1: if&amp;nbsp;AsOfDate column's field is blank then i want Alteryx to select the date itself and fetch data from current date quarter wise- for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if blank the convert year to today's year&lt;/P&gt;&lt;P&gt;convert month to "1" if month is between 1-3 (Q3)&lt;/P&gt;&lt;P&gt;convert month to "4" if month is between 4-6 (Q4)&lt;/P&gt;&lt;P&gt;convert month to "7" if month is between 7-9 (Q1)&lt;/P&gt;&lt;P&gt;convert month to "10" if month is between 10-12 (Q2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and convert day to always "01" of above converted month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Condition 2: if&amp;nbsp;AsOfDate date is not blank then:&lt;/P&gt;&lt;P&gt;calculate AsofYear, AsofMonth and AsofDay from&amp;nbsp;AsOfDate column fields and convert/parse it into Date in YYYMMDD format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide me on this, i know its a long question but I have tried my best to explain it. Even slight help would really help me a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;RB&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 20:17:20 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/General-Discussions/Alteryx-Date-filter/m-p/1158394#M9384</guid>
      <dc:creator>rbanola1</dc:creator>
      <dc:date>2023-07-05T20:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx Date  filter</title>
      <link>https://community.alteryx.com/t5/General-Discussions/Alteryx-Date-filter/m-p/1158403#M9385</link>
      <description>&lt;P&gt;I tried applying below code but it is not converting for example month 5 day 27 year 2023 to month 4 day 1 2023.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF IsNull([AsOfDateText]) THEN&lt;BR /&gt;DateTimeParse(ToString(DateTimeYear(DateTimeNow())) + "-" +&lt;BR /&gt;ToString(IF DateTimeMonth(DateTimeNow()) &amp;gt;=1&amp;lt;= 3 THEN "01"&lt;BR /&gt;ELSEIF DateTimeMonth(DateTimeNow()) &amp;gt;=4&amp;lt;= 6 THEN "04"&lt;BR /&gt;ELSEIF DateTimeMonth(DateTimeNow()) &amp;gt;=7&amp;lt;= 9 THEN "07"&lt;BR /&gt;ELSE "10"&lt;BR /&gt;ENDIF) + "-01", "%Y-%m-%d")&lt;BR /&gt;ELSE&lt;BR /&gt;DateTimeParse(ToString([AsOfDateText]), "%Y%m%d")&lt;BR /&gt;ENDIF&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 20:49:47 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/General-Discussions/Alteryx-Date-filter/m-p/1158403#M9385</guid>
      <dc:creator>rbanola1</dc:creator>
      <dc:date>2023-07-05T20:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx Date  filter</title>
      <link>https://community.alteryx.com/t5/General-Discussions/Alteryx-Date-filter/m-p/1158426#M9386</link>
      <description>&lt;P&gt;For clarification, can you please include a few example rows of AsOfDate values (both populated in yyyyMMdd format and at least one null) and what your expected output is?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 21:36:35 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/General-Discussions/Alteryx-Date-filter/m-p/1158426#M9386</guid>
      <dc:creator>Miles_Waller</dc:creator>
      <dc:date>2023-07-05T21:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx Date  filter</title>
      <link>https://community.alteryx.com/t5/General-Discussions/Alteryx-Date-filter/m-p/1158819#M9392</link>
      <description>&lt;P&gt;ok sure, I will provide some examples. and please ignore previous question I will share revised question here.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 14:39:14 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/General-Discussions/Alteryx-Date-filter/m-p/1158819#M9392</guid>
      <dc:creator>rbanola1</dc:creator>
      <dc:date>2023-07-06T14:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx Date  filter</title>
      <link>https://community.alteryx.com/t5/General-Discussions/Alteryx-Date-filter/m-p/1158832#M9393</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;based on above question some minor changes:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a date filter for my Alteryx Practice.&lt;/P&gt;&lt;P&gt;I have a row named AsOfDate&amp;nbsp; which contains a random date (filled by me of year 2023) in yyyymmdd in string format (dummy join PNG file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my question is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Condition1: if&amp;nbsp;AsOfDate column's field is blank (consider 20220527 is blank in dummy join file) then i want Alteryx to calculate year based on today's date, calculate month based on today's date then put day as first day of that month. (Dates png file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now I want alteryx to calculate data from this AsOfDate to CutOff date (which is 2 years back from AsOfDate - example If AsOfDate calculated by alteryx is 03/31/2023 then cutoff date is 03/31/2021&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Condition 2: if&amp;nbsp;AsOfDate date is not blank/is given for example in dummyjoin png file date is given in string format 20220527 then:&lt;/P&gt;&lt;P&gt;calculate AsofYear, AsofMonth and AsofDay from&amp;nbsp;AsOfDate column fields and convert/parse it into Date in YYYMMDD format and gives me data from AsofDate to cutoff date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example is AsofDate in string is 20220527 (yyyymmdd) then I should be able to get data from 20220527 to 20200527 and date converted in any standard format like yyyy-mm-dd.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 14:56:38 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/General-Discussions/Alteryx-Date-filter/m-p/1158832#M9393</guid>
      <dc:creator>rbanola1</dc:creator>
      <dc:date>2023-07-06T14:56:38Z</dc:date>
    </item>
  </channel>
</rss>

