<?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: have problems when use case conditions in Alteryx Designer Cloud Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132228#M1199</link>
    <description>&lt;P&gt;and sometimes ,I can get the right result use case like this &lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 12:59:04 GMT</pubDate>
    <dc:creator>WuCong</dc:creator>
    <dc:date>2022-04-19T12:59:04Z</dc:date>
    <item>
      <title>have problems when use case conditions</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132226#M1197</link>
      <description>&lt;P&gt;I have a raw data like below then I create a flag,got the error result.&lt;/P&gt;&lt;P&gt;case([ECSTDAT2 &amp;lt; v10_RETAMT_DADAT3 &amp;amp;&amp;amp; ECENDAT2 &amp;lt; v10_RETAMT_DADAT3, DATEDIF(ECSTDAT2, ECENDAT2, day) * ECDOSE2, 0]),it confused me .&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 12:57:44 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132226#M1197</guid>
      <dc:creator>WuCong</dc:creator>
      <dc:date>2022-04-19T12:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: have problems when use case conditions</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132227#M1198</link>
      <description>&lt;P&gt;the right result should be 0,38,0,38. so why I got the wrong expected result .&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 12:58:45 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132227#M1198</guid>
      <dc:creator>WuCong</dc:creator>
      <dc:date>2022-04-19T12:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: have problems when use case conditions</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132228#M1199</link>
      <description>&lt;P&gt;and sometimes ,I can get the right result use case like this &lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 12:59:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132228#M1199</guid>
      <dc:creator>WuCong</dc:creator>
      <dc:date>2022-04-19T12:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: have problems when use case conditions</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132229#M1200</link>
      <description>&lt;P&gt;Hi Wu Cong,&lt;/P&gt;&lt;P&gt;The case condition is giving 0 means the comparison and AND condition are not true. All the columns seem to be date data type. You can explicitly try to set the date format. There are 2 ways:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Change the date datatype :  DATEFORMAT(ECSTDAT2, 'dd MMM yyyy') &lt;/LI&gt;&lt;LI&gt;case([DATEFORMAT(ECSTDAT2, 'dd MMM yyyy') &amp;lt; DATEFORMAT(v10_RETAMT_DADAT3, 'dd MMM yyyy') &amp;amp;&amp;amp; DATEFORMAT(ECENDAT2, 'dd MMM yyyy') &amp;lt; DATEFORMAT(v10_RETAMT_DADAT3, 'dd MMM yyyy'), DATEDIF(ECSTDAT2, ECENDAT2, day) * ECDOSE2, 0])&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;There are UNIXTIMEFORMAT and DATEFORMAT functions you can try to see which one leads to the correct answer.&lt;/P&gt;&lt;P&gt;Tip: disintegrate your condition into single steps to find out which AND condition is not giving the correct result. Hope this helps. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take care and stay safe,&lt;/P&gt;&lt;P&gt;Apeksha&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 06:00:33 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132229#M1200</guid>
      <dc:creator>ApekshaP</dc:creator>
      <dc:date>2022-04-21T06:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: have problems when use case conditions</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132230#M1201</link>
      <description>&lt;P&gt;is there any difference to use in case and if ??&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 06:42:52 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132230#M1201</guid>
      <dc:creator>WuCong</dc:creator>
      <dc:date>2022-04-21T06:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: have problems when use case conditions</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132231#M1202</link>
      <description>&lt;P&gt;Both are conditional statements with no difference in terms of functionality. When you have a nested condition, then the Case on custom condition (transform) or CASE function makes it easy to follow compared to Nest IF function.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 08:34:41 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Cloud-Discussions/have-problems-when-use-case-conditions/m-p/1132231#M1202</guid>
      <dc:creator>ApekshaP</dc:creator>
      <dc:date>2022-04-21T08:34:41Z</dc:date>
    </item>
  </channel>
</rss>

