<?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: Dividing a row by the total of another column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-row-by-the-total-of-another-column/m-p/3984288#M154476</link>
    <description>&lt;P&gt;There may be context missing with a simple solution like this, but have you tried something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rows by Total =&lt;BR /&gt;VAR Rows =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'QUERY SQL ROCHA DESDE 2020'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VAR totalsinlate =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[# Rows]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'QUERY SQL ROCHA DESDE 2020'&lt;/SPAN&gt;&lt;SPAN&gt;[LATE_DELIVERY_REASON]&lt;/SPAN&gt;&lt;SPAN&gt;))&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(Rows, totalsinlate)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 18:42:31 GMT</pubDate>
    <dc:creator>ArtisanAmbrosia</dc:creator>
    <dc:date>2024-06-10T18:42:31Z</dc:date>
    <item>
      <title>Dividing a row by the total of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-row-by-the-total-of-another-column/m-p/3983426#M154447</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I hope everyone is good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hello everyone. I hope you all are great!.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;# Rows =&lt;/SPAN&gt; &lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'QUERY SQL ROCHA DESDE 2020'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The column&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;# total sin late =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[# Rows]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'QUERY SQL ROCHA DESDE 2020'&lt;/SPAN&gt;&lt;SPAN&gt;[LATE_DELIVERY_REASON]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I need to calculate each row of "# Rows" by the total of "# total sin late" (23.928). Anyone who knows how to do it?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot. Best regards!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chema ortega&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 13:03:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-row-by-the-total-of-another-column/m-p/3983426#M154447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-10T13:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing a row by the total of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-row-by-the-total-of-another-column/m-p/3984288#M154476</link>
      <description>&lt;P&gt;There may be context missing with a simple solution like this, but have you tried something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rows by Total =&lt;BR /&gt;VAR Rows =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'QUERY SQL ROCHA DESDE 2020'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VAR totalsinlate =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[# Rows]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'QUERY SQL ROCHA DESDE 2020'&lt;/SPAN&gt;&lt;SPAN&gt;[LATE_DELIVERY_REASON]&lt;/SPAN&gt;&lt;SPAN&gt;))&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(Rows, totalsinlate)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 18:42:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-row-by-the-total-of-another-column/m-p/3984288#M154476</guid>
      <dc:creator>ArtisanAmbrosia</dc:creator>
      <dc:date>2024-06-10T18:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing a row by the total of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-row-by-the-total-of-another-column/m-p/3985214#M154502</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&amp;nbsp; the following DAX:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;column = 
Var _sum_sin_late = SUM('Table'[# total sin late])
RETURN 
DIVIDE([# Rows],_sum_sin_late)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 07:04:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-row-by-the-total-of-another-column/m-p/3985214#M154502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-11T07:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing a row by the total of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-row-by-the-total-of-another-column/m-p/3995847#M155228</link>
      <description>&lt;P&gt;Ok, thanks a lot, Jialongy!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try it. Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chema Ortega&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 10:08:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-row-by-the-total-of-another-column/m-p/3995847#M155228</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-17T10:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing a row by the total of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-row-by-the-total-of-another-column/m-p/3995850#M155229</link>
      <description>&lt;P&gt;Ok, thanks a lot, artisan!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try it. Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chema Ortega&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 10:08:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-row-by-the-total-of-another-column/m-p/3995850#M155229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-17T10:08:26Z</dc:date>
    </item>
  </channel>
</rss>

