<?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: Need help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help/m-p/1369724#M24924</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/252941"&gt;@emmanuelkamara1&lt;/a&gt;&amp;nbsp;- If this is a measure, it needs to be:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
  VAR __Product = MAX('Table'[product])
  VAR __ProductSales = SUMX(FILTER('Table',[product]=__Product),[Unlock_price])
  VAR __All = SUMX(ALL('Table'),[Unlock_price])
RETURN
  __ProductSales / __All&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 14 Sep 2020 16:53:42 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-09-14T16:53:42Z</dc:date>
    <item>
      <title>Need help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help/m-p/1369653#M24919</link>
      <description>&lt;P&gt;Hi all, please can someone help me calculate the revenue mix which is t&lt;SPAN&gt;he proportion of each product sold&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;relative to total sales. My total sales is the sum of all the unlock prices. Find below a snapshot of the data-set.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rev.PNG" style="width: 396px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/355380i72C3F02D62AA6E62/image-size/large?v=v2&amp;amp;px=999" role="button" title="rev.PNG" alt="rev.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 16:25:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help/m-p/1369653#M24919</guid>
      <dc:creator>emmanuelkamara1</dc:creator>
      <dc:date>2020-09-14T16:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help/m-p/1369656#M24921</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/252941"&gt;@emmanuelkamara1&lt;/a&gt;&amp;nbsp;If you put Unlock_price in your visual and then in the Visualizations pane you click the down arrow on the column and then choose "Show value as" and then "Percent of Grand total", will that work for you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, you could create a new column like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
  VAR __ProductSales = SUMX(FILTER('Table',[product]=EARLIER([product])),[Unlock_price])
  VAR __All = SUM('Table'[Unlock_price])
RETURN
  __ProductSales / __All&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 14 Sep 2020 16:31:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help/m-p/1369656#M24921</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-14T16:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help/m-p/1369715#M24923</link>
      <description>&lt;P&gt;Thanks for your time&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;. The formula gives me this error (find below a snapshot).&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="err.PNG" style="width: 763px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/355406iC797D59E6662222E/image-size/large?v=v2&amp;amp;px=999" role="button" title="err.PNG" alt="err.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 16:51:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help/m-p/1369715#M24923</guid>
      <dc:creator>emmanuelkamara1</dc:creator>
      <dc:date>2020-09-14T16:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help/m-p/1369724#M24924</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/252941"&gt;@emmanuelkamara1&lt;/a&gt;&amp;nbsp;- If this is a measure, it needs to be:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
  VAR __Product = MAX('Table'[product])
  VAR __ProductSales = SUMX(FILTER('Table',[product]=__Product),[Unlock_price])
  VAR __All = SUMX(ALL('Table'),[Unlock_price])
RETURN
  __ProductSales / __All&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 14 Sep 2020 16:53:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help/m-p/1369724#M24924</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-14T16:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help/m-p/1369800#M24926</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 17:14:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help/m-p/1369800#M24926</guid>
      <dc:creator>emmanuelkamara1</dc:creator>
      <dc:date>2020-09-14T17:14:48Z</dc:date>
    </item>
  </channel>
</rss>

