<?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: Hi All ,How to get the percentage calculated for each heading in a matrix visual. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-All-How-to-get-the-percentage-calculated-for-each-heading-in/m-p/2420426#M64089</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="371493" data-lia-user-login="remyacholayil" class="lia-mention lia-mention-user"&gt;remyacholayil&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please paste the data in the correct format to let us know your scene better&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_self"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&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;</description>
    <pubDate>Mon, 28 Mar 2022 05:54:09 GMT</pubDate>
    <dc:creator>V-lianl-msft</dc:creator>
    <dc:date>2022-03-28T05:54:09Z</dc:date>
    <item>
      <title>Hi All ,How to get the percentage calculated for each heading in a matrix visual.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-All-How-to-get-the-percentage-calculated-for-each-heading-in/m-p/2417540#M63880</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366121" data-lia-user-login="PiEye" class="lia-mention lia-mention-user"&gt;PiEye&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182446" data-lia-user-login="V-lianl-msft" class="lia-mention lia-mention-user"&gt;V-lianl-msft&lt;/a&gt; &amp;nbsp;@amitchandak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;We have a model build in power bi like this.Using this model i have to built a matric visual in power bi which has unit in the column and liquidity name,expense heading and expense header sub categories in the rows.The values should be sum of amount and GTN%.The challenging part is to create the Gross to Net percentage creation.The customer has asked us to show the GTN percentage for different expense heading as shown below. For example ,if the value for expense heading one is 2 and the total value for the liquidity type="income" is 900.The percentage has to calculated like 2/900 for each expense heading.Iam struggling to get this done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the expense heading come from one dimension table called dim expense heading,liquidity comes from another table which has both income and expense liquidity, the unit comes from different dimensions.The fact has all the surrogate key for these dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a DAX =calculate(sum(amount),dimliquidity="expense")/calculate(sum(amount),dimliquidity="INCOME").But this is not showing the percentage across all the expense heading rows.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Unit1(dim unit)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;TD&gt;GTN%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;liquidity(income)(dim-liquidity)&lt;/TD&gt;&lt;TD&gt;968&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&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;&lt;TD&gt;-4%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;expense10&lt;/TD&gt;&lt;TD&gt;-40&lt;/TD&gt;&lt;TD&gt;-4%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;expense11&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total Expenditure&lt;/TD&gt;&lt;TD&gt;-364&lt;/TD&gt;&lt;TD&gt;-35%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is showing only at the higher level.not at athe expense heading levels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to populate percentage in all the rows aganist the&amp;nbsp; expense heading name corresponding to that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone help meplease&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 09:53:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-All-How-to-get-the-percentage-calculated-for-each-heading-in/m-p/2417540#M63880</guid>
      <dc:creator>remyacholayil</dc:creator>
      <dc:date>2022-04-05T09:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hi All ,How to get the percentage calculated for each heading in a matrix visual.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-All-How-to-get-the-percentage-calculated-for-each-heading-in/m-p/2420426#M64089</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="371493" data-lia-user-login="remyacholayil" class="lia-mention lia-mention-user"&gt;remyacholayil&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please paste the data in the correct format to let us know your scene better&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_self"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&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;</description>
      <pubDate>Mon, 28 Mar 2022 05:54:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-All-How-to-get-the-percentage-calculated-for-each-heading-in/m-p/2420426#M64089</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2022-03-28T05:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hi All ,How to get the percentage calculated for each heading in a matrix visual.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-All-How-to-get-the-percentage-calculated-for-each-heading-in/m-p/2420988#M64132</link>
      <description>&lt;P&gt;Hi Remy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to achieve this, you first need to calculate the totals per category / sub category&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Then Divide by the category / subcat total to get the percent.&lt;/P&gt;&lt;P&gt;Subtotals can be worked out by using Calculate with an ALLEXCEPT() function. This will work out the totals &amp;amp; subtotals for the fields&amp;nbsp; listed within.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IncOrExp Total = CALCULATE ( Sheet1[Total Amt], ALLEXCEPT(Sheet1,Sheet1[Inc or Exp]))
Inc or Exp % = Sheet1[Total Amt]/[IncOrExp Total] 

Cat Total = CALCULATE ( Sheet1[Total Amt], ALLEXCEPT(Sheet1,Sheet1[Inc or Exp],Sheet1[Cat]))
Cat % = Sheet1[Total Amt]/[Cat Total]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pi Eye&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 09:11:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-All-How-to-get-the-percentage-calculated-for-each-heading-in/m-p/2420988#M64132</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2022-03-28T09:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hi All ,How to get the percentage calculated for each heading in a matrix visual.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-All-How-to-get-the-percentage-calculated-for-each-heading-in/m-p/2435482#M64982</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366121" data-lia-user-login="PiEye" class="lia-mention lia-mention-user"&gt;PiEye&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182446" data-lia-user-login="V-lianl-msft" class="lia-mention lia-mention-user"&gt;V-lianl-msft&lt;/a&gt; &amp;nbsp;@amitchandak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that didnt help me could you please suggest a solution.I have updated the description.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 14:14:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-All-How-to-get-the-percentage-calculated-for-each-heading-in/m-p/2435482#M64982</guid>
      <dc:creator>remyacholayil</dc:creator>
      <dc:date>2022-04-05T14:14:52Z</dc:date>
    </item>
  </channel>
</rss>

