<?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: Team share % measure (based on variable) changes in scatterplot to total of all rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Team-share-measure-based-on-variable-changes-in-scatterplot-to/m-p/4833434#M184610</link>
    <description>&lt;P&gt;Thank you, John!&lt;BR /&gt;&lt;BR /&gt;This worked like a charm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks aswell for the two links, im gonna dive into these &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Sep 2025 13:29:40 GMT</pubDate>
    <dc:creator>FPE5</dc:creator>
    <dc:date>2025-09-23T13:29:40Z</dc:date>
    <item>
      <title>Team share % measure (based on variable) changes in scatterplot to total of all rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Team-share-measure-based-on-variable-changes-in-scatterplot-to/m-p/4833396#M184607</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have got a measure that calculates the teamshare % as in example measure and table below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Team Share % =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&amp;nbsp;P&lt;SPAN&gt;layerPoints&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&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&gt;&lt;TD&gt;&lt;P&gt;Red&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;25%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;75%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Hank&lt;/TD&gt;&lt;TD&gt;Blue&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is all fine, but when I try to get this measure in a scatterplot, with Name as Value and without the Team variable, the Team share % changes and combines all the points from all the Names. So Pete would be 16% (5/30 instead of 5/20).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant seem to get it to work within a measure. Any tips?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 12:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Team-share-measure-based-on-variable-changes-in-scatterplot-to/m-p/4833396#M184607</guid>
      <dc:creator>FPE5</dc:creator>
      <dc:date>2025-09-23T12:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Team share % measure (based on variable) changes in scatterplot to total of all rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Team-share-measure-based-on-variable-changes-in-scatterplot-to/m-p/4833429#M184608</link>
      <description>&lt;P&gt;Rather than using ALLEXCEPT you can use REMOVEFILTERS and VALUES, e.g.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Team Share % =
VAR PlayerPoints =
    CALCULATE ( SUM ( 'Table'[Points] ) )
VAR TeamPoints =
    CALCULATE (
        SUM ( 'Table'[Points] ),
        REMOVEFILTERS ( 'Table' ),
        VALUES ( 'Table'[Team] )
    )
RETURN
    DIVIDE ( PlayerPoints, TeamPoints )
&lt;/LI-CODE&gt;
&lt;P&gt;There's articles about this technique at&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/" target="_self"&gt;https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/&lt;/A&gt;&amp;nbsp; and&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/using-allexcept-vs-all-values/" target="_self"&gt;https://www.sqlbi.com/articles/using-allexcept-vs-all-values/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 13:22:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Team-share-measure-based-on-variable-changes-in-scatterplot-to/m-p/4833429#M184608</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-09-23T13:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Team share % measure (based on variable) changes in scatterplot to total of all rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Team-share-measure-based-on-variable-changes-in-scatterplot-to/m-p/4833434#M184610</link>
      <description>&lt;P&gt;Thank you, John!&lt;BR /&gt;&lt;BR /&gt;This worked like a charm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks aswell for the two links, im gonna dive into these &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 13:29:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Team-share-measure-based-on-variable-changes-in-scatterplot-to/m-p/4833434#M184610</guid>
      <dc:creator>FPE5</dc:creator>
      <dc:date>2025-09-23T13:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Team share % measure (based on variable) changes in scatterplot to total of all rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Team-share-measure-based-on-variable-changes-in-scatterplot-to/m-p/4833454#M184611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="932105" data-lia-user-login="FPE5" class="lia-mention lia-mention-user"&gt;FPE5&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You’re seeing that because your measure removes all filters except Team, and on the scatter the Team column isn’t on the visual. That means your “team total” quietly becomes the grand total (all Names), so Pete’s share turns into 5/30 instead of 5/20.&lt;/P&gt;&lt;P&gt;Here’s a robust pattern that always re-applies the player’s Team and only removes the Name filter when computing the team total (so page/report filters like Date still apply).&lt;/P&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;LI-CODE lang="markup"&gt;Team Share % :=
VAR TeamForName = SELECTEDVALUE('Table'[Team])
VAR PlayerPoints = SUM('Table'[Points])
VAR TeamPoints =
    CALCULATE(
        SUM('Table'[Points]),
        REMOVEFILTERS('Table'[Name]),                -- ignore the current Name only
        KEEPFILTERS('Table'[Team] = TeamForName)     -- force the player’s Team
    )
RETURN
IF ( NOT ISBLANK(TeamForName), DIVIDE(PlayerPoints, TeamPoints) )&lt;/LI-CODE&gt;&lt;P&gt;Use that measure on your scatter (X or Y), with Name as the category/detail. It will return 25% for Pete even if Team isn’t on the visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 13:45:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Team-share-measure-based-on-variable-changes-in-scatterplot-to/m-p/4833454#M184611</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2025-09-23T13:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Team share % measure (based on variable) changes in scatterplot to total of all rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Team-share-measure-based-on-variable-changes-in-scatterplot-to/m-p/4833496#M184614</link>
      <description>&lt;P&gt;Hi Tayloramy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've recreated it with some extra fields (which I didnt share like Date), and it works great too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still a bit puzzled on the use of&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;VAR TeamForName = SELECTEDVALUE('Table'[Team])&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and the KEEPFILTERS addition to force the team. So I will read into that as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 14:26:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Team-share-measure-based-on-variable-changes-in-scatterplot-to/m-p/4833496#M184614</guid>
      <dc:creator>FPE5</dc:creator>
      <dc:date>2025-09-23T14:26:18Z</dc:date>
    </item>
  </channel>
</rss>

