<?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: Conditional Statement in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/999669#M246739</link>
    <description>&lt;P&gt;attached&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 17:40:55 GMT</pubDate>
    <dc:creator>VeronicaElse</dc:creator>
    <dc:date>2022-09-12T17:40:55Z</dc:date>
    <item>
      <title>Conditional Statement</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998499#M246516</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this conditional statement but the output is not correct for the ones that are on time...what could cause this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the Below is data with that cond statement in my workflow&amp;nbsp; that all have output showing as not met but they are MET?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF [Deadline Date] &amp;gt; [Completed Date] THEN "not met" ELSE "MET" ENDIF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Submitted Date&lt;/TD&gt;&lt;TD&gt;Deadline Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/31/2022 3:20 PM&lt;/TD&gt;&lt;TD&gt;9/1/2022 2:00 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/31/2022 12:16 PM&lt;/TD&gt;&lt;TD&gt;9/1/2022 8:30 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/24/2022 10:38 AM&lt;/TD&gt;&lt;TD&gt;8/25/2022 2:00 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/23/2022 11:42 AM&lt;/TD&gt;&lt;TD&gt;8/24/2022 1:00 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/23/2022 2:29 PM&lt;/TD&gt;&lt;TD&gt;8/24/2022 11:00 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/22/2022 12:07 PM&lt;/TD&gt;&lt;TD&gt;8/22/2022 3:30 PM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Veronica&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 16:37:02 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998499#M246516</guid>
      <dc:creator>VeronicaElse</dc:creator>
      <dc:date>2022-09-09T16:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Statement</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998500#M246517</link>
      <description>&lt;P&gt;Is Completed Date in your formula the same as Submitted Date?&amp;nbsp; And are you wanting to compare the full timestamp (date and time) or just the date?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 16:42:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998500#M246517</guid>
      <dc:creator>Robin_McIntosh</dc:creator>
      <dc:date>2022-09-09T16:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Statement</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998503#M246518</link>
      <description>&lt;P&gt;On the workflow they both are Vstring and Yes I Want the full time stamp (Date &amp;amp; Time)&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 16:44:53 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998503#M246518</guid>
      <dc:creator>VeronicaElse</dc:creator>
      <dc:date>2022-09-09T16:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Statement</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998512#M246520</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/218652"&gt;@VeronicaElse&lt;/a&gt;&amp;nbsp;why should they all be met? According to your logic, they should only be 'Not met' if the Deadline comes after Completed date (which I'm guessing is the Submitted Date column in the example data you've given), which isn't the case for any of the rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed a couple of the Submitted Dates to come later than the Deadline and it works as expected. though you should first parse the two fields into their correct formats for comparison as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DataNath_0-1662742916913.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/256320i294F3FB69C70AC6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DataNath_0-1662742916913.png" alt="DataNath_0-1662742916913.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My guess, without knowing your exact requirement, is that you ought to switch your outcomes so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF [Deadline Date] &amp;gt; [Completed Date] THEN "MET" ELSE "Not met" ENDIF&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 17:02:45 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998512#M246520</guid>
      <dc:creator>DataNath</dc:creator>
      <dc:date>2022-09-09T17:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Statement</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998517#M246523</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/218652"&gt;@VeronicaElse&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;To compare these text dates you will need to convert them to a datetime data type. You can find some good quick videos on how data types work here on the community &lt;A href="https://community.alteryx.com/t5/Interactive-Lessons/Understanding-Data-Types/ta-p/73958" target="_blank" rel="noopener"&gt;https://community.alteryx.com/t5/Interactive-Lessons/Understanding-Data-Types/ta-p/73958&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IraWatt_0-1662742344354.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/256316iFBAE223E340A0BE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IraWatt_0-1662742344354.png" alt="IraWatt_0-1662742344354.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I used the datetimeparse function to convert them. there is a great cheat sheet Blog here to learn more: &lt;A href="https://community.alteryx.com/t5/Engine-Works/DateTime-Functions-Cheat-Sheet/ba-p/844353" target="_blank"&gt;https://community.alteryx.com/t5/Engine-Works/DateTime-Functions-Cheat-Sheet/ba-p/844353&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any questions or issues please ask&lt;BR /&gt;&lt;BR /&gt;Ira Watt&lt;BR /&gt;Technical Consultant&lt;BR /&gt;Watt@Bulien.com&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 16:55:10 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998517#M246523</guid>
      <dc:creator>IraWatt</dc:creator>
      <dc:date>2022-09-09T16:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Statement</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998522#M246525</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/247642"&gt;@IraWatt&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great example!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 16:58:24 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998522#M246525</guid>
      <dc:creator>MarqueeCrew</dc:creator>
      <dc:date>2022-09-09T16:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Statement</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998531#M246527</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/218652"&gt;@VeronicaElse&lt;/a&gt;&amp;nbsp;, Here is the workflow you need to first convert the values from AM/PM to 24-Hr format and then check the condition. Please accept my solution if it give you desired result.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 17:08:01 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/998531#M246527</guid>
      <dc:creator>grazitti_sapna</dc:creator>
      <dc:date>2022-09-09T17:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Statement</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/999668#M246738</link>
      <description>&lt;P&gt;Thanks! It worked to transfer to the data to 24hr format but they all show MET but there are a few that should not be met? I have attached the data dates/times. Also, what should I add to it to also show up as NOT MET for if the deadline column is blank?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 17:39:50 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/999668#M246738</guid>
      <dc:creator>VeronicaElse</dc:creator>
      <dc:date>2022-09-12T17:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Statement</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/999669#M246739</link>
      <description>&lt;P&gt;attached&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 17:40:55 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/999669#M246739</guid>
      <dc:creator>VeronicaElse</dc:creator>
      <dc:date>2022-09-12T17:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Statement</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/999729#M246765</link>
      <description>&lt;P&gt;Also, why did you se the regrex replace?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still learning and just curious on why it was needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 18:53:36 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Conditional-Statement/m-p/999729#M246765</guid>
      <dc:creator>VeronicaElse</dc:creator>
      <dc:date>2022-09-12T18:53:36Z</dc:date>
    </item>
  </channel>
</rss>

