<?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: Summarizing two columns, Dividing them within a group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-two-columns-Dividing-them-within-a-group/m-p/2652856#M78277</link>
    <description>&lt;P&gt;It didn't work for my dataset&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 10:43:00 GMT</pubDate>
    <dc:creator>Navya_arun</dc:creator>
    <dc:date>2022-07-21T10:43:00Z</dc:date>
    <item>
      <title>Summarizing two columns, Dividing them within a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-two-columns-Dividing-them-within-a-group/m-p/723700#M1462</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm unsure of how to phrase what I need, so I'll first attach an image of the desired result below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bold = Column Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Italic = Record&lt;/EM&gt;&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;This is my &lt;STRONG&gt;Competency Requirement&lt;/STRONG&gt; table.&amp;nbsp; I want to be able to summarize the &lt;STRONG&gt;QTY Completed&lt;/STRONG&gt; column grouped by each &lt;STRONG&gt;Competency&lt;/STRONG&gt;, and then take that sum and divide it by the sum of the &lt;STRONG&gt;QTY Needed&lt;/STRONG&gt; column.&amp;nbsp; The desired result is the &lt;STRONG&gt;% Completed&lt;/STRONG&gt; column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using this image as an example, I summarized the &lt;STRONG&gt;QTY Completed&lt;/STRONG&gt; for &lt;EM&gt;Requirement A&lt;/EM&gt; and &lt;EM&gt;Requirement B&lt;/EM&gt; where the &lt;STRONG&gt;Competency&lt;/STRONG&gt; is &lt;EM&gt;Gold App Dev&lt;/EM&gt;, and then divided that number by the &lt;STRONG&gt;QTY&amp;nbsp;Needed&lt;/STRONG&gt; for &lt;EM&gt;Requirement A&lt;/EM&gt; and &lt;EM&gt;Requirement B&lt;/EM&gt; where the &lt;STRONG&gt;Competency&lt;/STRONG&gt; is &lt;EM&gt;Gold App Dev&lt;/EM&gt; as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know two summarizations with a division within a group by is not easy, and I appreciate any help that can be offered! :)&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 13:33:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-two-columns-Dividing-them-within-a-group/m-p/723700#M1462</guid>
      <dc:creator>calexander1337</dc:creator>
      <dc:date>2019-06-25T13:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing two columns, Dividing them within a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-two-columns-Dividing-them-within-a-group/m-p/723790#M1468</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created this measure:&lt;/P&gt;
&lt;PRE&gt;Measure = 
CALCULATE(
    SUMX(
        VALUES('Table1'[Competency])
        , var completed = CALCULATE(SUM(Table1[QTY Completed]))
        var needed = CALCULATE(SUM(Table1[QTY Needed]))
        return
        DIVIDE(completed , needed)
    )
    ,ALL(Table1[Requirement])
)&lt;/PRE&gt;
&lt;P&gt;Based on your sample data I can now create this table visual:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Hopefully this is what you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 14:21:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-two-columns-Dividing-them-within-a-group/m-p/723790#M1468</guid>
      <dc:creator>TomMartens</dc:creator>
      <dc:date>2019-06-25T14:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing two columns, Dividing them within a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-two-columns-Dividing-them-within-a-group/m-p/723807#M1470</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="31" data-lia-user-login="TomMartens" class="lia-mention lia-mention-user"&gt;TomMartens&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created this measure:&lt;/P&gt;&lt;PRE&gt;Measure = 
CALCULATE(
    SUMX(
        VALUES('Table1'[Competency])
        , var completed = CALCULATE(SUM(Table1[QTY Completed]))
        var needed = CALCULATE(SUM(Table1[QTY Needed]))
        return
        DIVIDE(completed , needed)
    )
    ,ALL(Table1[Requirement])
)&lt;/PRE&gt;&lt;P&gt;Based on your sample data I can now create this table visual:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hopefully this is what you are looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks a bunch!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 14:32:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-two-columns-Dividing-them-within-a-group/m-p/723807#M1470</guid>
      <dc:creator>calexander1337</dc:creator>
      <dc:date>2019-06-25T14:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing two columns, Dividing them within a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-two-columns-Dividing-them-within-a-group/m-p/2652856#M78277</link>
      <description>&lt;P&gt;It didn't work for my dataset&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 10:43:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-two-columns-Dividing-them-within-a-group/m-p/2652856#M78277</guid>
      <dc:creator>Navya_arun</dc:creator>
      <dc:date>2022-07-21T10:43:00Z</dc:date>
    </item>
  </channel>
</rss>

