<?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 Profit Margin calc in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Profit-Margin-calc/m-p/2095088#M47747</link>
    <description>&lt;P&gt;Hello -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble with the profit margin calculation. Here are my measures:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;Total Revenue = SUMX( Sales, Sales[Order qty] * Sales[unit price] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Total Cost = SUMX( Sales, Sales[Order qty] * Sales[unit cost] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Total Profit = [Total Revenue]-[Total Cost]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Profit Margin = DIVIDE( [Total Profit], [Total Revenue], 0 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, when I show profit margin in a visual, all of the items in the category have the same profit margin. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 16:51:06 GMT</pubDate>
    <dc:creator>CMajka8</dc:creator>
    <dc:date>2021-09-23T16:51:06Z</dc:date>
    <item>
      <title>Profit Margin calc</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Profit-Margin-calc/m-p/2095088#M47747</link>
      <description>&lt;P&gt;Hello -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble with the profit margin calculation. Here are my measures:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;Total Revenue = SUMX( Sales, Sales[Order qty] * Sales[unit price] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Total Cost = SUMX( Sales, Sales[Order qty] * Sales[unit cost] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Total Profit = [Total Revenue]-[Total Cost]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Profit Margin = DIVIDE( [Total Profit], [Total Revenue], 0 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, when I show profit margin in a visual, all of the items in the category have the same profit margin. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 16:51:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Profit-Margin-calc/m-p/2095088#M47747</guid>
      <dc:creator>CMajka8</dc:creator>
      <dc:date>2021-09-23T16:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Profit Margin calc</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Profit-Margin-calc/m-p/2095112#M47748</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="292277" data-lia-user-login="CMajka8" class="lia-mention lia-mention-user"&gt;CMajka8&lt;/a&gt;&amp;nbsp;This generally indicates a missing relationship somewhere but if the Total Revenue and Total Cost columns in your visual are the measures you indicate that's rather strange.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 17:06:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Profit-Margin-calc/m-p/2095112#M47748</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-09-23T17:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Profit Margin calc</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Profit-Margin-calc/m-p/2105547#M48088</link>
      <description>&lt;P&gt;It turns out the dataset was manually generated and the profit margin calc was indeed accurate. Sorry for the confusion.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 11:47:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Profit-Margin-calc/m-p/2105547#M48088</guid>
      <dc:creator>CMajka8</dc:creator>
      <dc:date>2021-09-29T11:47:38Z</dc:date>
    </item>
  </channel>
</rss>

