<?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: Subtotal of single items instead of calculated formula in a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtotal-of-single-items-instead-of-calculated-formula-in-a/m-p/1377745#M25152</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the Total to be calculated as a sum of single items not as a formula. For example Price is calculated as:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Price = IF(AND([Qty CY]&amp;lt;&amp;gt;0;[Qty LY]=0);0;[Qty CY]*[Delta Rev/Qty]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;which calculate for the total as 3.034,62(Qty CY)*9,94(Delta Rev/Qty) = 30.166,42&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;I would like however the total for Price to be the sum of Price effects of single Products:&lt;/P&gt;&lt;P&gt;0,00+(-348,25)+10.801,66+7.125,11+39,66+15.914,08+4.823,49+(-1.560,46)+27.357,17+26.444,96 = 90.597,42&lt;/P&gt;&lt;P&gt;Below the screen shots&amp;nbsp; (I do not see the option to attach PBIx if you know how to do this please let me lnow and I share)&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 13:01:07 GMT</pubDate>
    <dc:creator>jordanesqu</dc:creator>
    <dc:date>2020-09-17T13:01:07Z</dc:date>
    <item>
      <title>Subtotal of single items instead of calculated formula in a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtotal-of-single-items-instead-of-calculated-formula-in-a/m-p/1372637#M25029</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I calculated VolPriceMix which work on a single item but then subtotal display also a calculated result instead of sum of particular items.&lt;/P&gt;&lt;P&gt;I calculated Volume as a Delta Quantity * Avg Price Previous year&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Vol_&lt;/STRONG&gt; = [∆ HL Ist]*[AVG Price VJ]&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then I tried to sum those single items using HASONEVALUE but I noticed that in case of no Quantity in current year(THL Ist) formula does not return a value in some cases. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Vol&lt;/STRONG&gt; = IF(HASONEVALUE(PBI_JC[Product.]); [Vol_]; SUMX(VALUES(PBI_JC[Product.]); [Vol_]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Could you advise how to solve this problem or another way how to get to the subtotal?&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 16:01:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtotal-of-single-items-instead-of-calculated-formula-in-a/m-p/1372637#M25029</guid>
      <dc:creator>jordanesqu</dc:creator>
      <dc:date>2020-09-15T16:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal of single items instead of calculated formula in a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtotal-of-single-items-instead-of-calculated-formula-in-a/m-p/1372815#M25032</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;&amp;nbsp;Maybe try ISINSCOPE instead?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 17:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtotal-of-single-items-instead-of-calculated-formula-in-a/m-p/1372815#M25032</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-15T17:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal of single items instead of calculated formula in a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtotal-of-single-items-instead-of-calculated-formula-in-a/m-p/1373864#M25057</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; , what is issue this alone is giving &lt;/P&gt;
&lt;P&gt;SUMX(VALUES(PBI_JC[Product.]); [Vol_])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 03:31:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtotal-of-single-items-instead-of-calculated-formula-in-a/m-p/1373864#M25057</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-16T03:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal of single items instead of calculated formula in a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtotal-of-single-items-instead-of-calculated-formula-in-a/m-p/1377745#M25152</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the Total to be calculated as a sum of single items not as a formula. For example Price is calculated as:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Price = IF(AND([Qty CY]&amp;lt;&amp;gt;0;[Qty LY]=0);0;[Qty CY]*[Delta Rev/Qty]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;which calculate for the total as 3.034,62(Qty CY)*9,94(Delta Rev/Qty) = 30.166,42&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;I would like however the total for Price to be the sum of Price effects of single Products:&lt;/P&gt;&lt;P&gt;0,00+(-348,25)+10.801,66+7.125,11+39,66+15.914,08+4.823,49+(-1.560,46)+27.357,17+26.444,96 = 90.597,42&lt;/P&gt;&lt;P&gt;Below the screen shots&amp;nbsp; (I do not see the option to attach PBIx if you know how to do this please let me lnow and I share)&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 13:01:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtotal-of-single-items-instead-of-calculated-formula-in-a/m-p/1377745#M25152</guid>
      <dc:creator>jordanesqu</dc:creator>
      <dc:date>2020-09-17T13:01:07Z</dc:date>
    </item>
  </channel>
</rss>

