<?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 get the percentage of a value out of the column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/get-the-percentage-of-a-value-out-of-the-column/m-p/2761228#M85597</link>
    <description>&lt;P&gt;hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a matrix with several groups, and i have a measure that calculates for each row the average of the last 6 months.&lt;/P&gt;&lt;P&gt;now i am looking for a way to get for each row the percentage of it out of its group.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&lt;P&gt;for example the first row's percentage should be 23.9% &amp;gt;&amp;gt; 151049/SUM(all other values)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 08:10:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-12T08:10:38Z</dc:date>
    <item>
      <title>get the percentage of a value out of the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/get-the-percentage-of-a-value-out-of-the-column/m-p/2761228#M85597</link>
      <description>&lt;P&gt;hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a matrix with several groups, and i have a measure that calculates for each row the average of the last 6 months.&lt;/P&gt;&lt;P&gt;now i am looking for a way to get for each row the percentage of it out of its group.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&lt;P&gt;for example the first row's percentage should be 23.9% &amp;gt;&amp;gt; 151049/SUM(all other values)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 08:10:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/get-the-percentage-of-a-value-out-of-the-column/m-p/2761228#M85597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-12T08:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: get the percentage of a value out of the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/get-the-percentage-of-a-value-out-of-the-column/m-p/2762207#M85651</link>
      <description>&lt;P&gt;You can use&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sub cat % =
VAR currentValue = [NNS Avg 6 Months]
VAR totalValue =
    CALCULATE ( [NNS Avg 6 Months], ALLSELECTED ( 'Table'[Sub-category] ) )
RETURN
    DIVIDE ( currentValue, totalValue )
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Sep 2022 14:35:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/get-the-percentage-of-a-value-out-of-the-column/m-p/2762207#M85651</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-12T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: get the percentage of a value out of the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/get-the-percentage-of-a-value-out-of-the-column/m-p/2762963#M85698</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF(
ISINSCOPE('Table'[Group]) &amp;amp;&amp;amp; NOT(ISINSCOPE('Table'[Group1])),
DIVIDE(
    [NNS Avg 6 Months],
     SUMX(
     FILTER(ALLSELECTED('Table'),
     'Table'[Sub-Category]=MAX('Table'[Sub-Category])),[Amount]))
,[NNS Avg 6 Months])&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 02:17:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/get-the-percentage-of-a-value-out-of-the-column/m-p/2762963#M85698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T02:17:19Z</dc:date>
    </item>
  </channel>
</rss>

