<?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: Measure that divides two filtered columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-divides-two-filtered-columns/m-p/1362146#M24690</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting an error for "Too many arguments were passed to the SUM function. The maximum argument count for the function is 1."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robyn&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 16:19:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-10T16:19:41Z</dc:date>
    <item>
      <title>Measure that divides two filtered columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-divides-two-filtered-columns/m-p/1362020#M24681</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running into an issue where my calculated values are not showing the value I want. See table below for an example of a Project with 3 Work Orders. Each WO has a set number of locations to be completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Project&lt;/TD&gt;&lt;TD&gt;Work Type&lt;/TD&gt;&lt;TD&gt;Work Order&lt;/TD&gt;&lt;TD&gt;Completed&lt;/TD&gt;&lt;TD&gt;Not Started&lt;/TD&gt;&lt;TD&gt;In Progress&lt;/TD&gt;&lt;TD&gt;Total Construction Locations&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Western 25&lt;/TD&gt;&lt;TD&gt;GR OH&lt;/TD&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Western 25&lt;/TD&gt;&lt;TD&gt;GA Feeder&lt;/TD&gt;&lt;TD&gt;234567&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Western 25&lt;/TD&gt;&lt;TD&gt;GA Lateral&lt;/TD&gt;&lt;TD&gt;345678&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I'm trying to look at the Project as a whole and find the % of completed locations. I would like for it to calculate 83 Completed/125 Total Locations = .664 or 66.4%. However, when I created a column using the formula below, it just gave me 3 rows of 25.04%, which summed to 75.1% (below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% of Completed = sum('S123 WOs'[Completed Locations by WO])/sum('S123 WOs'[Total Construction Locations])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me write the correct formula for a measure to give me 83/125 = .66.4% instead of 75.1%? Keep in mind that the table also contains other Projects, though I listed just one example. Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robyn&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 15:43:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-divides-two-filtered-columns/m-p/1362020#M24681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-10T15:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that divides two filtered columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-divides-two-filtered-columns/m-p/1362058#M24685</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% of Completed = sum('S123 WOs'[Completed Locations by WO])/CALCULATE(sum('S123 WOs'[Total Construction Locations],ALL('S123 WOs'[Total Construction Locations]))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Sep 2020 15:51:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-divides-two-filtered-columns/m-p/1362058#M24685</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-10T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that divides two filtered columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-divides-two-filtered-columns/m-p/1362146#M24690</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting an error for "Too many arguments were passed to the SUM function. The maximum argument count for the function is 1."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robyn&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 16:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-divides-two-filtered-columns/m-p/1362146#M24690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-10T16:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that divides two filtered columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-divides-two-filtered-columns/m-p/1362161#M24691</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Missed a paren&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% of Completed = sum('S123 WOs'[Completed Locations by WO])/CALCULATE(sum('S123 WOs'[Total Construction Locations]),ALL('S123 WOs'[Total Construction Locations]))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Sep 2020 16:23:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-divides-two-filtered-columns/m-p/1362161#M24691</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-10T16:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that divides two filtered columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-divides-two-filtered-columns/m-p/1362169#M24692</link>
      <description>&lt;P&gt;Perfect. This worked! I've been going in circles trying to figure it out, but I was missing the ALL function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much! #lifesaver&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 16:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-divides-two-filtered-columns/m-p/1362169#M24692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-10T16:26:06Z</dc:date>
    </item>
  </channel>
</rss>

