<?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: Counting a field by each of the other fields in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Counting-a-field-by-each-of-the-other-fields/m-p/480169#M96609</link>
    <description>Thanks Dan. Yup, this works.</description>
    <pubDate>Thu, 24 Oct 2019 11:24:51 GMT</pubDate>
    <dc:creator>aman_goswami</dc:creator>
    <dc:date>2019-10-24T11:24:51Z</dc:date>
    <item>
      <title>Counting a field by each of the other fields</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Counting-a-field-by-each-of-the-other-fields/m-p/480112#M96591</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New to the community here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a file with few character fields. I'm trying to get a count distinct of 'Key' variable grouped by every individual field. So count of key by customer number, count of key by sport type code and so on. Post that, I'd like to collapse categories from customer number / sport type code by a logic - if count is &amp;lt; 5, replace the level with "Other". For instance, ARCH within sport type code should change to other. How would i do this for all fields and re-create the same file. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 09:19:26 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Counting-a-field-by-each-of-the-other-fields/m-p/480112#M96591</guid>
      <dc:creator>aman_goswami</dc:creator>
      <dc:date>2019-10-24T09:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Counting a field by each of the other fields</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Counting-a-field-by-each-of-the-other-fields/m-p/480124#M96596</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/119732"&gt;@aman_goswami&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can count the number of records for each customer/sports_type using the Summarize tool, join the count to your original data and then replace, if count &amp;lt; 5. You can do this for selected character fields individually, but also for a combination of fields. Does this help? I've attached a sample workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 09:49:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Counting-a-field-by-each-of-the-other-fields/m-p/480124#M96596</guid>
      <dc:creator>RolandSchubert</dc:creator>
      <dc:date>2019-10-24T09:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Counting a field by each of the other fields</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Counting-a-field-by-each-of-the-other-fields/m-p/480130#M96597</link>
      <description>&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick response. I was able to do it in the similar manner for a single field. I'm looking for a way to automate this. Ideally, for any dataset I'd like a count of one field via others and then manipulate each one of them with a logic. Basically, use count of key via all others individually (without manual selection) and then use the same logic to manipulate the individual field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would this be possible ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 09:58:35 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Counting-a-field-by-each-of-the-other-fields/m-p/480130#M96597</guid>
      <dc:creator>aman_goswami</dc:creator>
      <dc:date>2019-10-24T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Counting a field by each of the other fields</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Counting-a-field-by-each-of-the-other-fields/m-p/480159#M96603</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/119732"&gt;@aman_goswami&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is what you're looking for, a count of Key grouped by every other field with "other" applied if the count &amp;lt;5&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="w.png" style="width: 652px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/83287iCF24F989EADABFD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="w.png" alt="w.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The key here is to transpose the data so that the columns/values end up in one pair of name/value fields.&amp;nbsp; From there, you count all the keys grouped by Name(original column name) and value.&amp;nbsp; Use a formula to replace the value with Other in the count is less than 5 and then Sum the "Other" values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results look like this, showing that BS is the dominant Value for Catalog_code with 22 BN values and 3 that fall into the other category.&amp;nbsp; These results are repeated for each of the original field/value combinations which now show up as rows&amp;nbsp;&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="r.png" style="width: 378px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/83288iD3B730B1D16FB881/image-size/large?v=v2&amp;amp;px=999" role="button" title="r.png" alt="r.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 11:02:25 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Counting-a-field-by-each-of-the-other-fields/m-p/480159#M96603</guid>
      <dc:creator>danilang</dc:creator>
      <dc:date>2019-10-24T11:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Counting a field by each of the other fields</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Counting-a-field-by-each-of-the-other-fields/m-p/480169#M96609</link>
      <description>Thanks Dan. Yup, this works.</description>
      <pubDate>Thu, 24 Oct 2019 11:24:51 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Counting-a-field-by-each-of-the-other-fields/m-p/480169#M96609</guid>
      <dc:creator>aman_goswami</dc:creator>
      <dc:date>2019-10-24T11:24:51Z</dc:date>
    </item>
  </channel>
</rss>

