<?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 Divide a row by a column total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-row-by-a-column-total/m-p/2085729#M47399</link>
    <description>&lt;P&gt;I am trying to calculate the percentage completed of the total population within the year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to report % completed within each year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So 2020 should show 1069/1902 = 56%, and 2021 should show 697/1902 = 37%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is based off a single table which essentially looks like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to count the ID's using this formula:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;id_count = calculate(DISTINCTCOUNT('Table'[ID]),ALL('Table'[Completed]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;But it still divvies it up by year in the table.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Sep 2021 08:44:58 GMT</pubDate>
    <dc:creator>rachellek</dc:creator>
    <dc:date>2021-09-20T08:44:58Z</dc:date>
    <item>
      <title>Divide a row by a column total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-row-by-a-column-total/m-p/2085729#M47399</link>
      <description>&lt;P&gt;I am trying to calculate the percentage completed of the total population within the year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to report % completed within each year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So 2020 should show 1069/1902 = 56%, and 2021 should show 697/1902 = 37%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is based off a single table which essentially looks like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to count the ID's using this formula:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;id_count = calculate(DISTINCTCOUNT('Table'[ID]),ALL('Table'[Completed]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;But it still divvies it up by year in the table.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 08:44:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-row-by-a-column-total/m-p/2085729#M47399</guid>
      <dc:creator>rachellek</dc:creator>
      <dc:date>2021-09-20T08:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a row by a column total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-row-by-a-column-total/m-p/2085949#M47414</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219615" data-lia-user-login="rachellek" class="lia-mention lia-mention-user"&gt;rachellek&lt;/a&gt; , Try a measure like &lt;/P&gt;
&lt;P&gt;% = divide(calculate(DISTINCTCOUNT('Table'[ID]),filter('Table', not(Isblank('Table'[Completed])))), DISTINCTCOUNT('Table'[ID]))&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 09:59:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-row-by-a-column-total/m-p/2085949#M47414</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-09-20T09:59:40Z</dc:date>
    </item>
  </channel>
</rss>

