<?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 percentages in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-percentages/m-p/2492492#M68677</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;According to your statement, I think there should lost [Month] column in your sample data. And I need to know the calculate logic about Revenue and Market Size. Will you determind the Market Size each month in your table? And will you need to sum the revenue each month? I think you can try &lt;A href="https://docs.microsoft.com/en-us/dax/allexcept-function-dax" target="_self"&gt;ALLEXCEPT FUNCTION&lt;/A&gt; if you want your measure can be filtered by Filter or Slicers.&lt;/P&gt;
&lt;P&gt;Please share a sample file without sensitive data with us and show me the result you want. This will make me easier to find the solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 06:58:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-04T06:58:39Z</dc:date>
    <item>
      <title>DAX percentages</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-percentages/m-p/2478780#M67785</link>
      <description>&lt;P&gt;I'm relatively new to DAX and stuck on a particular problem. I would like to build a line chart that shows the percentage of market share of all my products for each month. I have include filters on the page for Country, Divison, Product Line and Month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate the percentage of market share by dividing (revenue/market size); however I do not know how to add that to the whole formula with the filters. (The whole market are the three countries)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would need to dynamically recalculate with the context of the filter so that only data after the filter is included. And when no filter is selected then I have the total market share of our market.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried various CALCULATE, SUMX, Calculated Table functions with little success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sample data is below and any help is very much appreciated, I know tha market share column should be calculated in power bi&lt;/P&gt;&lt;P&gt;Thank YOU&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;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Division&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Product Line&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Market Size&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Revenue&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Market Share&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mexico&lt;/TD&gt;&lt;TD&gt;Dental&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;TD&gt;100.00&lt;/TD&gt;&lt;TD&gt;50.00&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mexico&lt;/TD&gt;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t;&lt;TD&gt;Cosmetics&lt;/TD&gt;&lt;TD&gt;Pink&lt;/TD&gt;&lt;TD&gt;70.00&lt;/TD&gt;&lt;TD&gt;5.00&lt;/TD&gt;&lt;TD&gt;7%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;Dental&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;TD&gt;200.00&lt;/TD&gt;&lt;TD&gt;150.00&lt;/TD&gt;&lt;TD&gt;75%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;Dental&lt;/TD&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;TD&gt;130.00&lt;/TD&gt;&lt;TD&gt;85.00&lt;/TD&gt;&lt;TD&gt;65%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;Cosmetics&lt;/TD&gt;&lt;TD&gt;Yellow&lt;/TD&gt;&lt;TD&gt;250.00&lt;/TD&gt;&lt;TD&gt;200.00&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;Cosmetics&lt;/TD&gt;&lt;TD&gt;Pink&lt;/TD&gt;&lt;TD&gt;140.00&lt;/TD&gt;&lt;TD&gt;100.00&lt;/TD&gt;&lt;TD&gt;71%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 21:51:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-percentages/m-p/2478780#M67785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-26T21:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX percentages</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-percentages/m-p/2480531#M67866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the&amp;nbsp;denominator you can use something like&lt;/P&gt;&lt;P&gt;CALCULATE ( SUM ( 'Table'[Revenue] ), REMOVEFILTERS ( ) )&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 13:00:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-percentages/m-p/2480531#M67866</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-27T13:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX percentages</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-percentages/m-p/2492492#M68677</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;According to your statement, I think there should lost [Month] column in your sample data. And I need to know the calculate logic about Revenue and Market Size. Will you determind the Market Size each month in your table? And will you need to sum the revenue each month? I think you can try &lt;A href="https://docs.microsoft.com/en-us/dax/allexcept-function-dax" target="_self"&gt;ALLEXCEPT FUNCTION&lt;/A&gt; if you want your measure can be filtered by Filter or Slicers.&lt;/P&gt;
&lt;P&gt;Please share a sample file without sensitive data with us and show me the result you want. This will make me easier to find the solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 06:58:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-percentages/m-p/2492492#M68677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-04T06:58:39Z</dc:date>
    </item>
  </channel>
</rss>

