<?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 Grouping products together by count less than 5 = other in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-products-together-by-count-less-than-5-other/m-p/4174289#M165786</link>
    <description>&lt;P&gt;I'm trying to build a bar chart of products showing all and then grouping all those where teh count is less than 5 into a category called other. Any idea how i can do this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 12:28:00 GMT</pubDate>
    <dc:creator>Jay2022</dc:creator>
    <dc:date>2024-09-25T12:28:00Z</dc:date>
    <item>
      <title>Grouping products together by count less than 5 = other</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-products-together-by-count-less-than-5-other/m-p/4174289#M165786</link>
      <description>&lt;P&gt;I'm trying to build a bar chart of products showing all and then grouping all those where teh count is less than 5 into a category called other. Any idea how i can do this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 12:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-products-together-by-count-less-than-5-other/m-p/4174289#M165786</guid>
      <dc:creator>Jay2022</dc:creator>
      <dc:date>2024-09-25T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping products together by count less than 5 = other</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-products-together-by-count-less-than-5-other/m-p/4174308#M165787</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is older post on this topic in this forum, have you tried the solution provided here:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424393" target="_blank"&gt;Solved: Create miscellaneous/other group using count below... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;BR /&gt;&lt;BR /&gt;If this post helps then please consider &lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 12:37:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-products-together-by-count-less-than-5-other/m-p/4174308#M165787</guid>
      <dc:creator>moncx</dc:creator>
      <dc:date>2024-09-25T12:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping products together by count less than 5 = other</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-products-together-by-count-less-than-5-other/m-p/4175636#M165824</link>
      <description>&lt;P&gt;Hi, I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;count measure with other category: = 
VAR _allcount =
    CALCULATE ( [count measure:], REMOVEFILTERS ( product_dimension ) )
VAR _lessthanfiveall =
    SUMX (
        FILTER (
            ADDCOLUMNS (
                ALL ( product_dimension[product], product_dimension[Index] ),
                "@count", [count measure:]
            ),
            [@count] &amp;lt; 5
        ),
        [@count]
    )
VAR _moreorequaltofivelist =
    SUMMARIZE (
        FILTER ( VALUES ( product_dimension[product] ), [count measure:] &amp;gt;= 5 ),
        product_dimension[product]
    )
RETURN
    SWITCH (
        TRUE (),
        SELECTEDVALUE ( product_dimension[product] ) = "other", _lessthanfiveall,
        SELECTEDVALUE ( product_dimension[product] ) IN _moreorequaltofivelist, [count measure:],
        NOT HASONEVALUE ( product_dimension[product] ), [count measure:]
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 19:59:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-products-together-by-count-less-than-5-other/m-p/4175636#M165824</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-09-25T19:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping products together by count less than 5 = other</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-products-together-by-count-less-than-5-other/m-p/4182458#M166134</link>
      <description>&lt;P&gt;Thank you both&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 09:30:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-products-together-by-count-less-than-5-other/m-p/4182458#M166134</guid>
      <dc:creator>Jay2022</dc:creator>
      <dc:date>2024-09-27T09:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping products together by count less than 5 = other</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-products-together-by-count-less-than-5-other/m-p/4182594#M166138</link>
      <description>&lt;P&gt;Thank you JIhwan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only I think your solution is perhaps more complex than I need. For example my table as a list of products and that is all) I can group by in the transform data section when i upload the data, therefore i am left with 2 columns Product and Count.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From here i just want to group any of those counted as less than 5 into 'Other' not sure i needed the table with product index etc&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping there may be a simpler solution&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 10:03:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-products-together-by-count-less-than-5-other/m-p/4182594#M166138</guid>
      <dc:creator>Jay2022</dc:creator>
      <dc:date>2024-09-27T10:03:26Z</dc:date>
    </item>
  </channel>
</rss>

