<?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: Dax measure- sum of percent of total by group with condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262448#M21054</link>
    <description>&lt;P&gt;This worked wonderfully, I can't thank you enough. Dax is proving challenging to learn, coming from other languages..&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 14:41:23 GMT</pubDate>
    <dc:creator>mjsteele12</dc:creator>
    <dc:date>2020-07-30T14:41:23Z</dc:date>
    <item>
      <title>Dax measure- sum of percent of total by group with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262254#M21042</link>
      <description>&lt;P&gt;For simplicity sake, I have the following dummy data:&lt;/P&gt;&lt;PRE&gt;id  val
1   5
1   30
1   50
1   15
2   120
2   60
2   10
2   10&lt;/PRE&gt;&lt;P&gt;My desired output is the following:&lt;/P&gt;&lt;PRE&gt;id  SUM_GT_10%
1   95%
2   90%&lt;/PRE&gt;&lt;P&gt;SUM_GT_10% can be obtained by the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Calculate the sum of val for each id&lt;/LI&gt;&lt;LI&gt;Divide val by 1&lt;/LI&gt;&lt;LI&gt;sum of 2 if 2 &amp;gt; 10%&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;using the example data, the sum of val is 100 for id 1 and 200 for id 2, so we would obtain the following additional columns:&lt;/P&gt;&lt;PRE&gt;id  val   1      2   
1   5     100    5%
1   30    100    30%
1   50    100    50% 
1   15    100    15%
2   120   200    60%
2   60    200    30%
2   10    200    5%
2   10    200    5%&lt;/PRE&gt;&lt;P&gt;And our final output (step 3) would be sum of 2 where 2&amp;gt; 10%:&lt;/P&gt;&lt;PRE&gt;id   SUM_GT_10%
1    95%
2    90%&lt;/PRE&gt;&lt;P&gt;I don't care about the intermediate columns, just the final output, of course.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 13:27:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262254#M21042</guid>
      <dc:creator>mjsteele12</dc:creator>
      <dc:date>2020-07-30T13:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure- sum of percent of total by group with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262344#M21048</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="249788" data-lia-user-login="mjsteele12" class="lia-mention lia-mention-user"&gt;mjsteele12&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can try this measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUM 10% = 

VAR _TOT = 
    CALCULATE(
        SUM('Table'[VAL]),
        ALLEXCEPT('Table','Table'[ID])
)

VAR _VAL = 

SUMX(
FILTER(
ADDCOLUMNS(
    'Table',
    "VAL%", 
    DIVIDE(
        ('Table'[VAL]),
        _TOT
    )
),
[VAL%] &amp;gt; 0.1), 'Table'[VAL])
RETURN
DIVIDE(
    _VAL,
    _TOT
 )
&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark this post as a solution, this will help others!.&lt;/P&gt;&lt;P&gt;Click on the Thumbs-Up icon on the right if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;YouTube, &lt;/A&gt;&lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 14:03:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262344#M21048</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-07-30T14:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure- sum of percent of total by group with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262448#M21054</link>
      <description>&lt;P&gt;This worked wonderfully, I can't thank you enough. Dax is proving challenging to learn, coming from other languages..&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 14:41:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262448#M21054</guid>
      <dc:creator>mjsteele12</dc:creator>
      <dc:date>2020-07-30T14:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure- sum of percent of total by group with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262470#M21056</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="249788" data-lia-user-login="mjsteele12" class="lia-mention lia-mention-user"&gt;mjsteele12&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Appreciate it!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark this post as a solution, this will help others!.&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon on the right&lt;/STRONG&gt; if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;YouTube, &lt;/A&gt;&lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/I&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 14:45:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262470#M21056</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-07-30T14:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure- sum of percent of total by group with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262488#M21057</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;Not sure if you are on s/o but if you want to get the reputation, you can add your answer here:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://stackoverflow.com/questions/63173853/dax-measure-sum-of-percent-of-total-by-group-with-condition" target="_blank"&gt;https://stackoverflow.com/questions/63173853/dax-measure-sum-of-percent-of-total-by-group-with-condition&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 14:48:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262488#M21057</guid>
      <dc:creator>mjsteele12</dc:creator>
      <dc:date>2020-07-30T14:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure- sum of percent of total by group with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262539#M21062</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="249788" data-lia-user-login="mjsteele12" class="lia-mention lia-mention-user"&gt;mjsteele12&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark this post as a solution, this will help others!.&lt;/P&gt;&lt;P&gt;Click on the Thumbs-Up icon on the right if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;YouTube, &lt;/A&gt;&lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 15:08:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-sum-of-percent-of-total-by-group-with-condition/m-p/1262539#M21062</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-07-30T15:08:59Z</dc:date>
    </item>
  </channel>
</rss>

