<?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: Transposing a column into rows with an If condition. in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/462367#M90802</link>
    <description>&lt;P&gt;Hi LordNeilLord&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;for such a quick response, the solution was simple and easy to implement in my worksheet.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2019 10:13:42 GMT</pubDate>
    <dc:creator>Jigarpanchal</dc:creator>
    <dc:date>2019-09-11T10:13:42Z</dc:date>
    <item>
      <title>Transposing a column into rows with an If condition.</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/461605#M90520</link>
      <description>&lt;P&gt;I have data of Car with their In and Out dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Car&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Date&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Access&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;M1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2-2-2018&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;In&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;M2&lt;/P&gt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gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want it to be in such a manner with In and Out date for each Car in a single row, the arrangement of the Cars doesn’t matter just the In and Out should match the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Car&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;In&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Out&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;M1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2-2-2018&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2-3-2018&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;M2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2-2-2018&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2-3-2018&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;M2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2-4-2018&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2-5-2018&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;M1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2-4-2018&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2-5-2018&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 06:33:39 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/461605#M90520</guid>
      <dc:creator>Jigarpanchal</dc:creator>
      <dc:date>2019-09-10T06:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing a column into rows with an If condition.</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/461607#M90521</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/103504"&gt;@Jigarpanchal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could approach it by sorting the dates and access so they are in order, then adding a multirow formula to "group" the access together. Then a simple crosstab to get the final result&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="Capture.PNG" style="width: 658px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/77282i5F9C12266ECD863E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 06:44:42 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/461607#M90521</guid>
      <dc:creator>LordNeilLord</dc:creator>
      <dc:date>2019-09-10T06:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing a column into rows with an If condition.</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/461801#M90607</link>
      <description>&lt;P&gt;Hi Jigarpanchal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first thought was to approach this in a similar way to how LordNeilLord did, but then I thought of another way that also works while demonstrating how some of the other Alteryx tools work.&amp;nbsp; Simpler is always good, particularly if it is efficient which LordNeilLord's method is, but having other ways to achieve a problem can help in other circumstances.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jigarpanchal_query.jpg" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/77351i8B91A49825E2D656/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jigarpanchal_query.jpg" alt="Jigarpanchal_query.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this helps, but in any case you now have two ways to solve the problem!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 13:54:08 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/461801#M90607</guid>
      <dc:creator>Dazzerman</dc:creator>
      <dc:date>2019-09-10T13:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing a column into rows with an If condition.</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/462367#M90802</link>
      <description>&lt;P&gt;Hi LordNeilLord&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;for such a quick response, the solution was simple and easy to implement in my worksheet.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 10:13:42 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/462367#M90802</guid>
      <dc:creator>Jigarpanchal</dc:creator>
      <dc:date>2019-09-11T10:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing a column into rows with an If condition.</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/462369#M90803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Dazzerman,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution you provided was quite interesting and helpful, I tried implementing both the solution, both work like a charm.&lt;/P&gt;&lt;P&gt;Thank you again for your help and quick response really appreciate it.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 10:16:07 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/462369#M90803</guid>
      <dc:creator>Jigarpanchal</dc:creator>
      <dc:date>2019-09-11T10:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing a column into rows with an If condition.</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/462371#M90804</link>
      <description>&lt;P&gt;You're very welcome!&amp;nbsp; Happy to help.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 10:19:07 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Transposing-a-column-into-rows-with-an-If-condition/m-p/462371#M90804</guid>
      <dc:creator>Dazzerman</dc:creator>
      <dc:date>2019-09-11T10:19:07Z</dc:date>
    </item>
  </channel>
</rss>

