<?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: Use the total from a measure to divide another measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-the-total-from-a-measure-to-divide-another-measure/m-p/945116#M10259</link>
    <description>&lt;P&gt;Having a bit of a hard time following this.&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 13:11:52 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-02-24T13:11:52Z</dc:date>
    <item>
      <title>Use the total from a measure to divide another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-the-total-from-a-measure-to-divide-another-measure/m-p/945109#M10257</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to figure out how to use a measures total to then use the measurere to get a percentage of that to tal.&amp;nbsp; For exaple a have a measure of:&amp;nbsp; &amp;nbsp; Reason = count(returned[sku])&amp;nbsp; &amp;nbsp;This gives me the correct number for the returnmed skus and their respective reasons.&amp;nbsp; Now i need to get a percentage of the measure for the total.&amp;nbsp; Ignore the overall% Refund.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now is it possible to use the measure to either create a column with the values of 382 (this is an auto update when more enteries are added).&amp;nbsp; I could then divide the column by the measure.&amp;nbsp; I need to get a persentage of the refund reason count for each so working out on a clculator 382/155 = 40.57% then 48/382 = 12.56% and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 13:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-the-total-from-a-measure-to-divide-another-measure/m-p/945109#M10257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T13:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use the total from a measure to divide another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-the-total-from-a-measure-to-divide-another-measure/m-p/945116#M10259</link>
      <description>&lt;P&gt;Having a bit of a hard time following this.&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 13:11:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-the-total-from-a-measure-to-divide-another-measure/m-p/945116#M10259</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-02-24T13:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use the total from a measure to divide another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-the-total-from-a-measure-to-divide-another-measure/m-p/945281#M10274</link>
      <description>&lt;P&gt;Sorry if it wasnt clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a measure to sum the amount of returns i have for each reason.&amp;nbsp; This has a total at the bottom.&amp;nbsp; I then want to use the grand total of 382 from the measure to create a percentage measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i have got each reason to show how many products have come back thats the first column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want in another column to get the percentage of the grand total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In essance i want to use the grand total for from the first measure to create a second measure where i can divide the grand total of the first measure by the values of each reason to create a percentage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 14:42:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-the-total-from-a-measure-to-divide-another-measure/m-p/945281#M10274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T14:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use the total from a measure to divide another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-the-total-from-a-measure-to-divide-another-measure/m-p/946910#M10407</link>
      <description>&lt;P&gt;Hello Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% to total = 
VAR _CountRows = COUNTROWS(dtTable)
VAR _TotalRows = CALCULATE(COUNTROWS(dtTable),ALL(dtTable))

Return
DIVIDE(_CountRows,_TotalRows)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;If it helps, please mark it as a solution&lt;BR /&gt;Kudos would be a cherry on the top &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.vivran.in/" target="_blank"&gt;https://www.vivran.in/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/vivek-ranjan-063a1a17b/" target="_blank"&gt;Connect on LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 10:30:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-the-total-from-a-measure-to-divide-another-measure/m-p/946910#M10407</guid>
      <dc:creator>vivran22</dc:creator>
      <dc:date>2020-02-25T10:30:53Z</dc:date>
    </item>
  </channel>
</rss>

