<?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: DAX - How can I divide each sale with total revenue? See model in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-can-I-divide-each-sale-with-total-revenue-See-model/m-p/3449790#M131371</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601805" data-lia-user-login="JoeBarry" class="lia-mention lia-mention-user"&gt;JoeBarry&lt;/a&gt;&amp;nbsp;- I got it to work! Thanks for a great explanation and suggestion on the model setup! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 12:55:02 GMT</pubDate>
    <dc:creator>carlenb</dc:creator>
    <dc:date>2023-09-27T12:55:02Z</dc:date>
    <item>
      <title>DAX - How can I divide each sale with total revenue? See model</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-can-I-divide-each-sale-with-total-revenue-See-model/m-p/3449016#M131322</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a measure that will calculate divide sales by tota supplier revenue. This will give me a market share we have on that supplier for each here. See my schema below.&amp;nbsp;&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;&lt;P&gt;I also have the following graph where I've highlighted the end resultat to add a second line for % market share for eachsupplier. I seems like such an easy measure but I'm still a learner in this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on this would be amazing!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 06:12:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-can-I-divide-each-sale-with-total-revenue-See-model/m-p/3449016#M131322</guid>
      <dc:creator>carlenb</dc:creator>
      <dc:date>2023-09-27T06:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - How can I divide each sale with total revenue? See model</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-can-I-divide-each-sale-with-total-revenue-See-model/m-p/3449477#M131355</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="617109" data-lia-user-login="carlenb" class="lia-mention lia-mention-user"&gt;carlenb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data model is set up incorrectly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 3 tables for supplier revenue, do they contain dates and have the same column names and format? In Power Query, I would append all these tables together into one table. I would append as new and untick the enable load on the 3 tables and load the new table into the report. Re create the relationship, but this time instead of having both directions,create a one to many from the Supplier Table to the New Table and Sales 20-22 table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same for the Calendar one to many to both other tables on the date columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can then create this measure to get the % Marketshare&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% Marketshare =

VAR _SupRev = SUM(SupplierRevenue[Revenue])
VAR _SalesRev = SUM('Sales 2020-2022'[Total Value])

RETURN
DIVIDE(_SupRev, _SalesRev)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Convert to %&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the Columns from the Date and Supplier tables in any visual or slicer and then the measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post helps, then please Accept it as the solution&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 10:05:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-can-I-divide-each-sale-with-total-revenue-See-model/m-p/3449477#M131355</guid>
      <dc:creator>JoeBarry</dc:creator>
      <dc:date>2023-09-27T10:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - How can I divide each sale with total revenue? See model</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-can-I-divide-each-sale-with-total-revenue-See-model/m-p/3449790#M131371</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601805" data-lia-user-login="JoeBarry" class="lia-mention lia-mention-user"&gt;JoeBarry&lt;/a&gt;&amp;nbsp;- I got it to work! Thanks for a great explanation and suggestion on the model setup! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 12:55:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-can-I-divide-each-sale-with-total-revenue-See-model/m-p/3449790#M131371</guid>
      <dc:creator>carlenb</dc:creator>
      <dc:date>2023-09-27T12:55:02Z</dc:date>
    </item>
  </channel>
</rss>

