<?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 Calculating Total of a column inside virtual table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-of-a-column-inside-virtual-table/m-p/3623592#M140105</link>
    <description>&lt;P&gt;Greetings everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have virtual table that looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Each row is a product that belong to same product family (data is only partially visible here). "&lt;STRONG&gt;Revenue"&lt;/STRONG&gt; and "&lt;STRONG&gt;Total Regional List" Price&lt;/STRONG&gt; exist in the main Data Table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next calculateions are virtual, used as measures.&lt;/P&gt;&lt;P&gt;1) I have first calculated total Revenue for this family, which is 858.317,55.&lt;/P&gt;&lt;P&gt;2) Next i have calculated "&lt;STRONG&gt;Level Factor Weight"&lt;/STRONG&gt; for each item, which is "&lt;STRONG&gt;Revenue" / "Sales Revenue per Year by Family"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;3) And finally i have calculated "&lt;STRONG&gt;Weighted Target List Price"&lt;/STRONG&gt;, which is "&lt;STRONG&gt;Total Regional List Price" * "Level Factor Weight"&lt;/STRONG&gt;. So far so good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i would like to calculated total or sum of "&lt;STRONG&gt;Weighted Target List Price"&lt;/STRONG&gt;, basically 0,06 + 0,03 + 0,00 + 0,65... (just as one see the numbers inside this table) and that is where i have problems.&lt;/P&gt;&lt;P&gt;When i put &lt;STRONG&gt;"Total Regional List Price"&lt;/STRONG&gt; and &lt;STRONG&gt;"Weighted Target List Price"&amp;nbsp;&lt;/STRONG&gt;in one virtual table without product numbers, they show the same result. Any hint would be very appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pavlo&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2024 17:35:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-08T17:35:41Z</dc:date>
    <item>
      <title>Calculating Total of a column inside virtual table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-of-a-column-inside-virtual-table/m-p/3623592#M140105</link>
      <description>&lt;P&gt;Greetings everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have virtual table that looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Each row is a product that belong to same product family (data is only partially visible here). "&lt;STRONG&gt;Revenue"&lt;/STRONG&gt; and "&lt;STRONG&gt;Total Regional List" Price&lt;/STRONG&gt; exist in the main Data Table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next calculateions are virtual, used as measures.&lt;/P&gt;&lt;P&gt;1) I have first calculated total Revenue for this family, which is 858.317,55.&lt;/P&gt;&lt;P&gt;2) Next i have calculated "&lt;STRONG&gt;Level Factor Weight"&lt;/STRONG&gt; for each item, which is "&lt;STRONG&gt;Revenue" / "Sales Revenue per Year by Family"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;3) And finally i have calculated "&lt;STRONG&gt;Weighted Target List Price"&lt;/STRONG&gt;, which is "&lt;STRONG&gt;Total Regional List Price" * "Level Factor Weight"&lt;/STRONG&gt;. So far so good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i would like to calculated total or sum of "&lt;STRONG&gt;Weighted Target List Price"&lt;/STRONG&gt;, basically 0,06 + 0,03 + 0,00 + 0,65... (just as one see the numbers inside this table) and that is where i have problems.&lt;/P&gt;&lt;P&gt;When i put &lt;STRONG&gt;"Total Regional List Price"&lt;/STRONG&gt; and &lt;STRONG&gt;"Weighted Target List Price"&amp;nbsp;&lt;/STRONG&gt;in one virtual table without product numbers, they show the same result. Any hint would be very appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pavlo&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 17:35:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-of-a-column-inside-virtual-table/m-p/3623592#M140105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-08T17:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Total of a column inside virtual table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-of-a-column-inside-virtual-table/m-p/3628047#M140295</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the information you provided, I did a simple test to reproduce your problem.&lt;BR /&gt;You can try right clicking on the field and changing the aggregation to Don't summarize and see if that helps.&lt;BR /&gt;For details you may check the screenshot below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the ProductNumber column is not added, the situation occurs in the following figure. Does this affect your desired result?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;For further details, please check the attachment.&lt;BR /&gt;Please correct me if I misunderstood your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yulia Yan&lt;BR /&gt;&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 02:25:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-of-a-column-inside-virtual-table/m-p/3628047#M140295</guid>
      <dc:creator>v-weiyan1-msft</dc:creator>
      <dc:date>2024-01-10T02:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Total of a column inside virtual table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-of-a-column-inside-virtual-table/m-p/3630693#M140421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="652678" data-lia-user-login="v-weiyan1-msft" class="lia-mention lia-mention-user"&gt;v-weiyan1-msft&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks, your solution works for the dataset you have created.&lt;/P&gt;&lt;P&gt;I have it a little more complicated with additional tables that filter item number and pricing category.&lt;/P&gt;&lt;P&gt;I have included both into your dataset, and the results are different now.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Sales Revenue per Year by Family"&lt;/STRONG&gt; is calculated using whole dataset, instead of chosen pricing family. And of course "&lt;STRONG&gt;Sum of Weighted Price List"&lt;/STRONG&gt; is different now. In the previous dataset it was around 95.&lt;/P&gt;&lt;P&gt;I have tried to modify&lt;STRONG&gt; Sales Revenue per Year by Family&lt;/STRONG&gt; measure by changing &lt;EM&gt;ALL('Table')&lt;/EM&gt; to &lt;EM&gt;ALL('Table (2)')&lt;/EM&gt;, which fixes issue with&amp;nbsp;&lt;STRONG&gt;Sales Revenue per Year by Family&lt;/STRONG&gt;, however&amp;nbsp;"&lt;STRONG&gt;Sum of Weighted Price List"&lt;/STRONG&gt; is completely wrong then.&lt;/P&gt;&lt;P&gt;I would be very glad if you could take another look at the file. I provided the modified dataset below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://buschvacuum-my.sharepoint.com/:u:/g/personal/pavlo_shlapa_busch_de/EYSxVMpbBxRNpMtsLkz3vckBjcH7SUGT8hSqpjhXU7TVaQ?e=UsPmtv" target="_self"&gt;Dataset.pbix&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pavlo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 14:13:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-of-a-column-inside-virtual-table/m-p/3630693#M140421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-10T14:13:08Z</dc:date>
    </item>
  </channel>
</rss>

