<?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: Issue with sum of a DAX measure in PowerBI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-sum-of-a-DAX-measure-in-PowerBI/m-p/2154887#M49739</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks, the last 2 tables are related through the 1st one (star schema) - definition of product (product code/name/trade).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2 has a many to many relationship with table one (TP are multiple in each table because even in the dimension table 1 TP code corresponds to multiple products); table 3 has a many to one relationship with table 1 at product code level (product codes are unique on table 1).&lt;/P&gt;&lt;P&gt;I have a measure that is somehow working by multiplying the [Second Table]Split * [Third Table]Units. This gives me the correct split by year/month by product line and trade product.&lt;/P&gt;&lt;P&gt;However, as soon as I want to summarize and get rid of the product line and just a total result by month, the measure does not work any longer. I am guessing that I am not at the right row context level.... but this is where I need help as&amp;nbsp; I am not an expert with DAX row context level.&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Valeria&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 05:38:53 GMT</pubDate>
    <dc:creator>ValeriaBreve</dc:creator>
    <dc:date>2021-10-26T05:38:53Z</dc:date>
    <item>
      <title>Issue with sum of a DAX measure in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-sum-of-a-DAX-measure-in-PowerBI/m-p/2151068#M49575</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;I am seeking help as DAX is not my specialty. I have 3 tables related through the fist one below (Product Code/TP Code).&lt;/P&gt;&lt;P&gt;I am trying to get a measure that allows me to do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TP Code&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;line1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;line2&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;TD&gt;36&lt;/TD&gt;&lt;TD&gt;81&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;line5&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;340&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so practically split the units sold of the last table by the product lines of the second table. I was able to do so , only to find that when I remove the product lines and product codes from the table the sum of the measure by month/year is totally wrong vs. the total units as per last table.&lt;/P&gt;&lt;P&gt;What's the right way here to create a measure that will give me the units sold of each product by line with the right behaviour when a high level sum is required?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your help here.&amp;nbsp;&lt;/P&g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t;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;340&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 22 Oct 2021 19:46:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-sum-of-a-DAX-measure-in-PowerBI/m-p/2151068#M49575</guid>
      <dc:creator>ValeriaBreve</dc:creator>
      <dc:date>2021-10-22T19:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sum of a DAX measure in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-sum-of-a-DAX-measure-in-PowerBI/m-p/2154769#M49728</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="287408" data-lia-user-login="ValeriaBreve" class="lia-mention lia-mention-user"&gt;ValeriaBreve&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Based on what you have now, it is not possible to builder a proper model with valid relationship.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot put the Line column together with Month column in one visual since no relationship can be build between table 2 and table 3. Usually, we would have a main table include key columns and relationships with other dimension tables. In your case, all three tables are fact tables, please take a look at Star schema to help dealing&amp;nbsp;with multiple tables.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/star-schema" target="_blank"&gt;Understand star schema and the importance for Power BI - Power BI | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Paul Zheng _ Community Support Team&lt;BR /&gt;If this post helps, please Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 03:10:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-sum-of-a-DAX-measure-in-PowerBI/m-p/2154769#M49728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-26T03:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sum of a DAX measure in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-sum-of-a-DAX-measure-in-PowerBI/m-p/2154887#M49739</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks, the last 2 tables are related through the 1st one (star schema) - definition of product (product code/name/trade).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2 has a many to many relationship with table one (TP are multiple in each table because even in the dimension table 1 TP code corresponds to multiple products); table 3 has a many to one relationship with table 1 at product code level (product codes are unique on table 1).&lt;/P&gt;&lt;P&gt;I have a measure that is somehow working by multiplying the [Second Table]Split * [Third Table]Units. This gives me the correct split by year/month by product line and trade product.&lt;/P&gt;&lt;P&gt;However, as soon as I want to summarize and get rid of the product line and just a total result by month, the measure does not work any longer. I am guessing that I am not at the right row context level.... but this is where I need help as&amp;nbsp; I am not an expert with DAX row context level.&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Valeria&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 05:38:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-sum-of-a-DAX-measure-in-PowerBI/m-p/2154887#M49739</guid>
      <dc:creator>ValeriaBreve</dc:creator>
      <dc:date>2021-10-26T05:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sum of a DAX measure in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-sum-of-a-DAX-measure-in-PowerBI/m-p/2155031#M49742</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="287408" data-lia-user-login="ValeriaBreve" class="lia-mention lia-mention-user"&gt;ValeriaBreve&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You can actually&amp;nbsp;create the matrix If you are using a &lt;STRONG&gt;measure&lt;/STRONG&gt; as the value Please check the&amp;nbsp;pbix&amp;nbsp;for detail.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some settings:&lt;/P&gt;
&lt;P&gt;1. turn off the subtotals in the format panel&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. turn off the stepped layout&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. expand the column headers.&lt;/P&gt;
&lt;P&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;Paul&amp;nbsp;Zheng_ Community Support Team&lt;BR /&gt;If this post helps, please Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 07:04:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-sum-of-a-DAX-measure-in-PowerBI/m-p/2155031#M49742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-26T07:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sum of a DAX measure in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-sum-of-a-DAX-measure-in-PowerBI/m-p/2155807#M49788</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks, that works if you go down to the product line - what does not work is if you want the summary just by month, so the total units using this measure.&lt;/P&gt;&lt;P&gt;So to the lowest level of detail (line) it works, but the successive aggregations don't work I believe because the measure is not going to the row detail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below the result of the cards - aggregation of the measure vs. sum of the number of units&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Kind regards&lt;/P&gt;&lt;P&gt;Valeria&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;</description>
      <pubDate>Tue, 26 Oct 2021 12:26:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-sum-of-a-DAX-measure-in-PowerBI/m-p/2155807#M49788</guid>
      <dc:creator>ValeriaBreve</dc:creator>
      <dc:date>2021-10-26T12:26:32Z</dc:date>
    </item>
  </channel>
</rss>

