<?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: Divide by row in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-by-row-in-DAX/m-p/2112202#M48314</link>
    <description>&lt;P&gt;If you put Area and Term on the rows with the measure that&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;&amp;nbsp;provide will work.&lt;BR /&gt;If it doesn't give you the result you are expecting, you'll need to provide us with more information.&amp;nbsp;&lt;BR /&gt;Example of the calculation, example of visual ...&lt;/P&gt;</description>
    <pubDate>Sun, 03 Oct 2021 00:19:03 GMT</pubDate>
    <dc:creator>m3tr01d</dc:creator>
    <dc:date>2021-10-03T00:19:03Z</dc:date>
    <item>
      <title>Divide by row in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-by-row-in-DAX/m-p/2108733#M48226</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like help writing a DAX measure to divide by each row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know what % of students did not submit an assignment.&amp;nbsp;&lt;BR /&gt;The issue comes in because we need to group the data by "Area" and "Term".&amp;nbsp;&lt;BR /&gt;There are two "Terms" either Fall 2020 or Fall 2021.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fortunately, there is a "% No Subs" calc column that gives a guideline of what I need the answers to look like.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please see table below for an example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;There is a calculated column called "% No Subs".&amp;nbsp;&lt;BR /&gt;That was calculated by dividing #! Submitted by Max Enrol.&amp;nbsp;&lt;BR /&gt;However, I would like to create a measure that does this exact thing because measures are better than calc columns.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is what I have tried:&amp;nbsp;&lt;BR /&gt;1.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rate = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE('No Submissions Data','No Submissions Data'[Area],"Rate",SUMX (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'No Submissions Data',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE('No Submissions Data'[# ! Submitted],'No Submissions Data'[Max Enrol])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;2.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Difference = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR f20 = CALCULATE('No Submissions Data'[No Submissions Rate],'No Submissions Data'[Term] = "Fall 2020")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR f21 = CALCULATE('No Submissions Data'[No Submissions Rate],'No Submissions Data'[Term] = "Fall 2021")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;F21 - F20&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TIA&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Sep 2021 17:12:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-by-row-in-DAX/m-p/2108733#M48226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-30T17:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by row in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-by-row-in-DAX/m-p/2108918#M48232</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about...&lt;/P&gt;&lt;P&gt;Rate =&lt;BR /&gt;VAR _NoSub = SUM('&lt;SPAN&gt;No Submissions Data'[# ! Submitted])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VAR _Enrol = SUM( 'No Submissions Data'[Max Enrol])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DIVIDE(_NoSub, _Enrol)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 18:56:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-by-row-in-DAX/m-p/2108918#M48232</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-09-30T18:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by row in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-by-row-in-DAX/m-p/2108952#M48233</link>
      <description>&lt;P&gt;Hi Paul,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That won't give an accurate result.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Each area has a different denominator (Max Enrol).&amp;nbsp;&lt;BR /&gt;Dividing by the total sum is will give the wrong answer to the question at hand.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 19:08:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-by-row-in-DAX/m-p/2108952#M48233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-30T19:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by row in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-by-row-in-DAX/m-p/2112202#M48314</link>
      <description>&lt;P&gt;If you put Area and Term on the rows with the measure that&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;&amp;nbsp;provide will work.&lt;BR /&gt;If it doesn't give you the result you are expecting, you'll need to provide us with more information.&amp;nbsp;&lt;BR /&gt;Example of the calculation, example of visual ...&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 00:19:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-by-row-in-DAX/m-p/2112202#M48314</guid>
      <dc:creator>m3tr01d</dc:creator>
      <dc:date>2021-10-03T00:19:03Z</dc:date>
    </item>
  </channel>
</rss>

