<?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: A Case Against Case Statements in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/A-Case-Against-Case-Statements/m-p/969491#M239405</link>
    <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/300132"&gt;@TylerAV&lt;/a&gt;&amp;nbsp;Thanks for this tip !&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2022 17:47:54 GMT</pubDate>
    <dc:creator>Emmanuel_G</dc:creator>
    <dc:date>2022-07-15T17:47:54Z</dc:date>
    <item>
      <title>A Case Against Case Statements</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/A-Case-Against-Case-Statements/m-p/968708#M239194</link>
      <description>&lt;P&gt;We've all been there, you have a complicated conditional statement. Nested if statements or extremely long case statements. They aren't fun and can be quite cumbersome. Worst off, they are hard to maintain. This is where Dynamic Replace comes into play. For those of you who have never used the tool, it can be used in a variety of manners, but the best feature is it's ability to process expressions that are contained in a column. Meaning, a column can have a written out Alteryx formula that can be converted from a string that shows the formula into the formula's solution. Example time:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before - a generic case statement&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerAV_0-1657803540749.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/245860i85AD656DBD379FDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TylerAV_0-1657803540749.png" alt="TylerAV_0-1657803540749.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After - storing expressions in a text input or you can keep it in a stored excel/csv file for easy editing!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerAV_1-1657803588921.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/245861i0BA5F339F0DF7D05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TylerAV_1-1657803588921.png" alt="TylerAV_1-1657803588921.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also cut down the hard work so you can throw this macro into your own workflows without having to wrangle with the Dynamic Replace function. Now it's as easy as selecting the column that contains the expression, and this macro will return the solution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerAV_2-1657803723496.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/245862i8477C141823509FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TylerAV_2-1657803723496.png" alt="TylerAV_2-1657803723496.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Final Output&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerAV_3-1657803744506.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/245863iBE5F9F974F063804/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TylerAV_3-1657803744506.png" alt="TylerAV_3-1657803744506.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Easy and simple, no more nested logic! Hope this helps, see attached zipped workflow so you can test it out for yourself!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 13:08:02 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/A-Case-Against-Case-Statements/m-p/968708#M239194</guid>
      <dc:creator>TylerAV</dc:creator>
      <dc:date>2022-07-14T13:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: A Case Against Case Statements</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/A-Case-Against-Case-Statements/m-p/969491#M239405</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/300132"&gt;@TylerAV&lt;/a&gt;&amp;nbsp;Thanks for this tip !&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 17:47:54 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/A-Case-Against-Case-Statements/m-p/969491#M239405</guid>
      <dc:creator>Emmanuel_G</dc:creator>
      <dc:date>2022-07-15T17:47:54Z</dc:date>
    </item>
  </channel>
</rss>

