<?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: Row level calculation, with variable elements, can't get total right.  HELP! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-calculation-with-variable-elements-can-t-get-total/m-p/1081840#M15300</link>
    <description>&lt;P&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2020 18:33:21 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-05-08T18:33:21Z</dc:date>
    <item>
      <title>Row level calculation, with variable elements, can't get total right.  HELP!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-calculation-with-variable-elements-can-t-get-total/m-p/1081834#M15299</link>
      <description>&lt;P&gt;I've been working in DAX for a while, but am still a neophite.&amp;nbsp; I'm sure this is a no brainer for you guys, but I am STUCK!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a measure to calculate a Cost by Customer.&amp;nbsp; The basic calculation is Revenue * Margin = Cost.&amp;nbsp; The challenge is, each customer may have their own Margin, or not, and each division (customer is part of division) has a slightly different calculation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rules are:&lt;/P&gt;&lt;P&gt;Division A:&amp;nbsp; Cost = Revenue&lt;/P&gt;&lt;P&gt;Division B:&amp;nbsp; Cost = Revenue * Customer Specific Margin; if cust doesn't have own margin, use division margin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So table looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Customer&lt;/TD&gt;&lt;TD&gt;Division&lt;/TD&gt;&lt;TD&gt;Margin&lt;/TD&gt;&lt;TD&gt;Revenue&lt;/TD&gt;&lt;TD&gt;Cost (Desired outcome)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sue&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;* Division B Margin = 30&lt;BR /&gt;&lt;BR /&gt;I've been able to get the row level calculations done several different ways, but I haven't been able to get a total of all the cost (column total) to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the help guys.&amp;nbsp; I use this forum CONSTANTLY!&amp;nbsp; HUGE HELP.&amp;nbsp; I just couldn't figure out how to find this problem in one of the previous threads.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 18:27:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-calculation-with-variable-elements-can-t-get-total/m-p/1081834#M15299</guid>
      <dc:creator>twilbour</dc:creator>
      <dc:date>2020-05-08T18:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Row level calculation, with variable elements, can't get total right.  HELP!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-calculation-with-variable-elements-can-t-get-total/m-p/1081840#M15300</link>
      <description>&lt;P&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 18:33:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-calculation-with-variable-elements-can-t-get-total/m-p/1081840#M15300</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-08T18:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Row level calculation, with variable elements, can't get total right.  HELP!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-calculation-with-variable-elements-can-t-get-total/m-p/1081919#M15301</link>
      <description>&lt;P&gt;Thank You...The Summarize in your second post solved my problem!&amp;nbsp; Y'all are awesome.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 20:25:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-calculation-with-variable-elements-can-t-get-total/m-p/1081919#M15301</guid>
      <dc:creator>twilbour</dc:creator>
      <dc:date>2020-05-08T20:25:06Z</dc:date>
    </item>
  </channel>
</rss>

