<?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: Create miscellaneous/other group using count below a threshold in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424436#M64343</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Without seeing your data and tables I can guess if you want to group your measure for points under three, you could try"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; = CALCULATE([Count], FILTER(Projects, Projects[points] &amp;lt;= 3))&lt;/STRONG&gt;&amp;nbsp; **where [Count is your existing measure)&lt;BR /&gt;You might need to subtract this value from your Count measure if you are trying to separate &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; and &amp;gt;3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 13:55:55 GMT</pubDate>
    <dc:creator>Whitewater100</dc:creator>
    <dc:date>2022-03-29T13:55:55Z</dc:date>
    <item>
      <title>Create miscellaneous/other group using count below a threshold</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424393#M64341</link>
      <description>&lt;P&gt;I've got a Line and Stacked Column Chart (using this because of Pareto line).&amp;nbsp; I used to create a measure "Count".&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;Count =&lt;/STRONG&gt;
CALCULATE (
    COUNTROWS ( Projects ),
    ALLSELECTED ( Projects ),
    VALUES ( Projects[Points] )
)&lt;/PRE&gt;&lt;P&gt;"Project[Points]" is the Shared axis and "Count" is the Column values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to use this measure and combine any calculated values below 3 into a miscellaneous/other group. So it would be removing "M" thru "g", and creating an "other", stacking them all together.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I've been using power bi for about 2 months now. So the more steps explained the better.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 13:41:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424393#M64341</guid>
      <dc:creator>Geilisa</dc:creator>
      <dc:date>2022-03-29T13:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create miscellaneous/other group using count below a threshold</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424436#M64343</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Without seeing your data and tables I can guess if you want to group your measure for points under three, you could try"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; = CALCULATE([Count], FILTER(Projects, Projects[points] &amp;lt;= 3))&lt;/STRONG&gt;&amp;nbsp; **where [Count is your existing measure)&lt;BR /&gt;You might need to subtract this value from your Count measure if you are trying to separate &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; and &amp;gt;3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 13:55:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424436#M64343</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-03-29T13:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create miscellaneous/other group using count below a threshold</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424438#M64344</link>
      <description>&lt;P&gt;I don't know how hearts appeared, I try to bold measure...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 13:56:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424438#M64344</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-03-29T13:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create miscellaneous/other group using count below a threshold</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424469#M64347</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;The other way is to Rclick the field on the right (columns with the values you want to consolidate) and choose New Group.&lt;/P&gt;&lt;P&gt;Here's an image you can bucket values or other fields this way.&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;</description>
      <pubDate>Tue, 29 Mar 2022 14:05:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424469#M64347</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-03-29T14:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create miscellaneous/other group using count below a threshold</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424656#M64356</link>
      <description>&lt;P&gt;Thank you for your reply. I ended up doing a string of if statments to just rename the project names to "other" manually, unfortunetly this wont auto update based on if its lessthan or equal to 3. But it works for now...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 15:10:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424656#M64356</guid>
      <dc:creator>Geilisa</dc:creator>
      <dc:date>2022-03-29T15:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create miscellaneous/other group using count below a threshold</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424679#M64359</link>
      <description>&lt;P&gt;I see this does work, but it isnt exactly what I'm looking for. Hoping to make it automatic. But yes it does work for grouping. Took me a little experimenting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 15:20:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2424679#M64359</guid>
      <dc:creator>Geilisa</dc:creator>
      <dc:date>2022-03-29T15:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create miscellaneous/other group using count below a threshold</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2431240#M64710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369763" data-lia-user-login="Geilisa" class="lia-mention lia-mention-user"&gt;Geilisa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a table used for shared axis and DO NOT create relationships between this table and your fact table.&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;PointGroup =
UNION ( DISTINCT ( Projects[Points] ), ROW ( "Others", "Others" ) )
&lt;/LI-CODE&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;2. Create a What-if parameter for threshold.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Create measures.&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;ModifiedCount = 
VAR CurPoint_ =
    MAX ( PointGroup[Points] )
RETURN
    CALCULATE ( COUNTROWS ( Projects ), Projects[Points] = CurPoint_ )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;ModifiedCount 2 = 
VAR threshold_ = [threshold Value]
VAR CurPoint_ =
    MAX ( PointGroup[Points] )
RETURN
    IF (
        [ModifiedCount] &amp;gt; threshold_,
        [ModifiedCount],
        IF (
            CurPoint_ = "Others",
            SUMX (
                FILTER ( ALLSELECTED ( PointGroup ), [ModifiedCount] &amp;lt;= threshold_ ),
                [ModifiedCount]
            )
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Create a visual.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 07:28:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-miscellaneous-other-group-using-count-below-a-threshold/m-p/2431240#M64710</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2022-04-01T07:28:44Z</dc:date>
    </item>
  </channel>
</rss>

