<?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: Multiply Sum with Average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Sum-with-Average/m-p/2241286#M53668</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="346088" data-lia-user-login="pbijess857" class="lia-mention lia-mention-user"&gt;pbijess857&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this code to add a new table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Table 2 =
VAR _A =
    ADDCOLUMNS (
        SUMMARIZE (
            'Table',
            'Table'[Group],
            'Table'[Team],
            "SUM Hours of Works", SUM ( 'Table'[Hours of Work] ),
            "AVG Hours Available", AVERAGE ( 'Table'[Team Hours Available] )
        ),
        "Sum Points / AVG Capacity", [SUM Hours of Works] / [AVG Hours Available]
    )
RETURN
    ADDCOLUMNS (
        GROUPBY (
            _A,
            [Group],
            "SUM Hours of Works", SUMX ( CURRENTGROUP (), [SUM Hours of Works] ),
            "SUM AVG Hours Available", SUMX ( CURRENTGROUP (), [AVG Hours Available] )
        ),
        "Work/Available", [SUM Hours of Works] / [SUM AVG Hours Available]
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 00:53:22 GMT</pubDate>
    <dc:creator>VahidDM</dc:creator>
    <dc:date>2021-12-16T00:53:22Z</dc:date>
    <item>
      <title>Multiply Sum with Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Sum-with-Average/m-p/2241266#M53664</link>
      <description>&lt;P&gt;Hello. I am trying to figure out how to get this to work in Power BI.&amp;nbsp; The rows on my table represent tickets with a number value (hours of work.) This table is joined with a separate table that contains some additional information about the tickets from a different database, including the hours available for each team.&amp;nbsp; I'm trying to sum up the hours of work associated with each ticket and divide by the time each team has available.&amp;nbsp; I'm able to represent the sum of hours of work and the average hours available in a table, but riding the struggle bus trying to use them in additional calculations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The underlying data would look something like this:&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;I think the next step is to get the data summarized by team which would ideally look something like this:&amp;nbsp; (this is where I'm stuck)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the end goal would be to sum up the average hours available by team (and sum of hours of work) to get a final utilization percentage.&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;Any help would be appreciated. I can't seem to find the right solution thus far.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 00:28:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Sum-with-Average/m-p/2241266#M53664</guid>
      <dc:creator>pbijess857</dc:creator>
      <dc:date>2021-12-16T00:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Sum with Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Sum-with-Average/m-p/2241286#M53668</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="346088" data-lia-user-login="pbijess857" class="lia-mention lia-mention-user"&gt;pbijess857&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this code to add a new table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Table 2 =
VAR _A =
    ADDCOLUMNS (
        SUMMARIZE (
            'Table',
            'Table'[Group],
            'Table'[Team],
            "SUM Hours of Works", SUM ( 'Table'[Hours of Work] ),
            "AVG Hours Available", AVERAGE ( 'Table'[Team Hours Available] )
        ),
        "Sum Points / AVG Capacity", [SUM Hours of Works] / [AVG Hours Available]
    )
RETURN
    ADDCOLUMNS (
        GROUPBY (
            _A,
            [Group],
            "SUM Hours of Works", SUMX ( CURRENTGROUP (), [SUM Hours of Works] ),
            "SUM AVG Hours Available", SUMX ( CURRENTGROUP (), [AVG Hours Available] )
        ),
        "Work/Available", [SUM Hours of Works] / [SUM AVG Hours Available]
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 00:53:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Sum-with-Average/m-p/2241286#M53668</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-16T00:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Sum with Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Sum-with-Average/m-p/2242974#M53762</link>
      <description>&lt;P&gt;This looks like it has me back on the right track. Thank you for the help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 17:27:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Sum-with-Average/m-p/2242974#M53762</guid>
      <dc:creator>pbijess857</dc:creator>
      <dc:date>2021-12-16T17:27:21Z</dc:date>
    </item>
  </channel>
</rss>

