<?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 Trying to understand how to filter and divide two values in the same column. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2960568#M98569</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to Power Bi and I'm currently running into a issue with wanting to calculate fullfilment rate. This is the function I've come up with, but it's currently running an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Completion Rate = &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIVIDE(&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Calculate COUNT('Table13'[name]), FILTER('Table13','Table1'[AccountStatus]="Open")),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Calculate COUNT('Table13'[name]) , FILTER('Table13','Table1'[AccountStatus]="Closed")))*100)&lt;/EM&gt;&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;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;AccountStatus&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John York&lt;/TD&gt;&lt;TD&gt;Open&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sarah Black&lt;/TD&gt;&lt;TD&gt;Open&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Megan Birch&lt;/TD&gt;&lt;TD&gt;Open&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;George Howard&lt;/TD&gt;&lt;TD&gt;Closed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Frank Sacks&lt;/TD&gt;&lt;TD&gt;Closed&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Sun, 11 Dec 2022 10:12:49 GMT</pubDate>
    <dc:creator>aeinc01</dc:creator>
    <dc:date>2022-12-11T10:12:49Z</dc:date>
    <item>
      <title>Trying to understand how to filter and divide two values in the same column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2960568#M98569</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to Power Bi and I'm currently running into a issue with wanting to calculate fullfilment rate. This is the function I've come up with, but it's currently running an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Completion Rate = &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DIVIDE(&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Calculate COUNT('Table13'[name]), FILTER('Table13','Table1'[AccountStatus]="Open")),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Calculate COUNT('Table13'[name]) , FILTER('Table13','Table1'[AccountStatus]="Closed")))*100)&lt;/EM&gt;&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;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;AccountStatus&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John York&lt;/TD&gt;&lt;TD&gt;Open&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sarah Black&lt;/TD&gt;&lt;TD&gt;Open&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Megan Birch&lt;/TD&gt;&lt;TD&gt;Open&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;George Howard&lt;/TD&gt;&lt;TD&gt;Closed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Frank Sacks&lt;/TD&gt;&lt;TD&gt;Closed&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 11 Dec 2022 10:12:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2960568#M98569</guid>
      <dc:creator>aeinc01</dc:creator>
      <dc:date>2022-12-11T10:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to understand how to filter and divide two values in the same column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2960590#M98571</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="484842" data-lia-user-login="aeinc01" class="lia-mention lia-mention-user"&gt;aeinc01&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You're showing one table.&amp;nbsp; What is table 13? I am thinking that is your error.&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 00:15:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2960590#M98571</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2022-12-11T00:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to understand how to filter and divide two values in the same column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2960779#M98591</link>
      <description>&lt;P&gt;Table13 is the name of the mock table posted. I accidently typed a type. Table 1 is also Table 13.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 10:12:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2960779#M98591</guid>
      <dc:creator>aeinc01</dc:creator>
      <dc:date>2022-12-11T10:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to understand how to filter and divide two values in the same column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2960870#M98606</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="484842" data-lia-user-login="aeinc01" class="lia-mention lia-mention-user"&gt;aeinc01&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I think this is what you are trying to do ("//" comments out the line):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Completion Rate = 
DIVIDE (
    //Calculate( COUNT(Table13[name]), FILTER('Table13','Table13'[AccountStatus]="Open")),
    //Calculate COUNT('Table13'[name]) , FILTER('Table13','Table1'[AccountStatus]="Closed")))*100))
    CALCULATE (
        COUNT ( Table13[Name] ),
        FILTER ( Table13, Table13[AccountStatus] = "Open" )
    ),
    CALCULATE (
        COUNT ( Table13[Name] ),
        FILTER ( Table13, Table13[AccountStatus] = "Closed" )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;but doesn't this make more sense?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Completion Rate 2 = 
DIVIDE (
    
        CALCULATE (
        COUNT ( Table13[Name] ),
        FILTER ( Table13, Table13[AccountStatus] = "Closed" )
    ),
    CALCULATE (
        COUNT ( Table13[Name] ))
        
    
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can format it as a percentage as shown above, when you select the measure on the right.&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 17:05:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2960870#M98606</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2022-12-11T17:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to understand how to filter and divide two values in the same column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2961023#M98620</link>
      <description>&lt;P&gt;Thank you this works well!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 22:31:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2961023#M98620</guid>
      <dc:creator>aeinc01</dc:creator>
      <dc:date>2022-12-11T22:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to understand how to filter and divide two values in the same column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2961135#M98632</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="484842" data-lia-user-login="aeinc01" class="lia-mention lia-mention-user"&gt;aeinc01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You are very welcome!&amp;nbsp; Thank you for marking this as a solution.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 01:21:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-understand-how-to-filter-and-divide-two-values-in-the/m-p/2961135#M98632</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2022-12-12T01:21:25Z</dc:date>
    </item>
  </channel>
</rss>

