<?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: VolPriceMix Calculation - how to multiply single rows by total/subtotal in the same table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VolPriceMix-Calculation-how-to-multiply-single-rows-by-total/m-p/1332376#M23621</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="204766" data-lia-user-login="jordanesqu" class="lia-mention lia-mention-user"&gt;jordanesqu&lt;/a&gt; , it can be &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;avg price per piece = calculate([price per piece], all(Table[product]))&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;avg price per piece = calculate([price per piece], all(Table))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new measure = [Delta Qty] * [avg price per piece]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also refer&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept/" target="_blank"&gt;https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/" target="_blank"&gt;https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Aug 2020 15:28:49 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-08-28T15:28:49Z</dc:date>
    <item>
      <title>VolPriceMix Calculation - how to multiply single rows by total/subtotal in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VolPriceMix-Calculation-how-to-multiply-single-rows-by-total/m-p/1332123#M23604</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to calculate price volume mix variance and having a trouble to find a way how to multiply the average value for wholeportfolio by values in a single rows.&lt;/P&gt;&lt;P&gt;I would like to multiply Delta Quantity for each product by average price per piece (yellow highlighted). I am aiming also the whole calculation work flexible as I have more dimensions like Region, Pack type, Customer etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 13:27:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VolPriceMix-Calculation-how-to-multiply-single-rows-by-total/m-p/1332123#M23604</guid>
      <dc:creator>jordanesqu</dc:creator>
      <dc:date>2020-08-28T13:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: VolPriceMix Calculation - how to multiply single rows by total/subtotal in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VolPriceMix-Calculation-how-to-multiply-single-rows-by-total/m-p/1332160#M23606</link>
      <description>What does the model look like?</description>
      <pubDate>Fri, 28 Aug 2020 13:43:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VolPriceMix-Calculation-how-to-multiply-single-rows-by-total/m-p/1332160#M23606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-28T13:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: VolPriceMix Calculation - how to multiply single rows by total/subtotal in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VolPriceMix-Calculation-how-to-multiply-single-rows-by-total/m-p/1332192#M23608</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="204766" data-lia-user-login="jordanesqu" class="lia-mention lia-mention-user"&gt;jordanesqu&lt;/a&gt;&amp;nbsp; -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try something like this:&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;VolPriceMix =
VAR __AllProdAvg =
    CALCULATE (
        DIVIDE ( SUM ( Products[Price] ), SUM ( Products[QtyCY] ) ),
        ALLSELECTED ( Products )
    )
RETURN
    CALCULATE ( SUM ( Products[DeltaQ] ) * __AllProdAvg )
&lt;/LI-CODE&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;Hope this helps&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 13:56:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VolPriceMix-Calculation-how-to-multiply-single-rows-by-total/m-p/1332192#M23608</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2020-08-28T13:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: VolPriceMix Calculation - how to multiply single rows by total/subtotal in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VolPriceMix-Calculation-how-to-multiply-single-rows-by-total/m-p/1332264#M23611</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="13353" data-lia-user-login="dedelman_clng" class="lia-mention lia-mention-user"&gt;dedelman_clng&lt;/a&gt;&amp;nbsp; You can remove the last CALCULATE as it is not doing anything there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:26:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VolPriceMix-Calculation-how-to-multiply-single-rows-by-total/m-p/1332264#M23611</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-08-28T14:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: VolPriceMix Calculation - how to multiply single rows by total/subtotal in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VolPriceMix-Calculation-how-to-multiply-single-rows-by-total/m-p/1332376#M23621</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="204766" data-lia-user-login="jordanesqu" class="lia-mention lia-mention-user"&gt;jordanesqu&lt;/a&gt; , it can be &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;avg price per piece = calculate([price per piece], all(Table[product]))&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;avg price per piece = calculate([price per piece], all(Table))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new measure = [Delta Qty] * [avg price per piece]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also refer&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept/" target="_blank"&gt;https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/" target="_blank"&gt;https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 15:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VolPriceMix-Calculation-how-to-multiply-single-rows-by-total/m-p/1332376#M23621</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-28T15:28:49Z</dc:date>
    </item>
  </channel>
</rss>

