<?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: Calculating % Compete with Conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Compete-with-Conditions/m-p/870107#M7161</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192289" data-lia-user-login="Seliebl" class="lia-mention lia-mention-user"&gt;Seliebl&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Starting with a table called Trace, try this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Pct effective =
VAR _num =
    CALCULATE ( COUNTROWS ( Trace ), Trace[Document Status] = "Effective" )
VAR _all =
    COUNTROWS ( ALL ( Trace ) )
RETURN
    DIVIDE ( _num, _all )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&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;&lt;img /&gt;&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>Mon, 09 Dec 2019 22:51:43 GMT</pubDate>
    <dc:creator>Nathaniel_C</dc:creator>
    <dc:date>2019-12-09T22:51:43Z</dc:date>
    <item>
      <title>Calculating % Compete with Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Compete-with-Conditions/m-p/869897#M7158</link>
      <description>&lt;P&gt;Good day, I'm trying to create a new measure that shows the % percent of effective documents out of the total number of documents for a visual in Power BI. These measures seem to be off and I'm not sure what I'm missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, I wanted to select a condition that counted all the items in the list "GOP &amp;amp; S-GOP Traceability", but only filtered on the "Document Status" field where items are tagged as "Effective". Then, I wanted to divide to the total number of "Effective" documents by the Total Number of Documents to get a percentage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Written out: Total # of Effective Documents/Total # of Documents = % Completed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my attempt to write these formulas:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Total Completed = CALCULATE(COUNTA('GOP &amp;amp; S-GOP Traceability'[Document Status],FILTER('GOP &amp;amp; S-GOP Traceability'[Document Status]="Effective"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Total = COUNTA('GOP &amp;amp; S-GOP Traceability'[Document Status])&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;% Completed = [Total Completed] / [Total]&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using COUNT A because these fields do not contain numbers, but words.&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 17:51:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Compete-with-Conditions/m-p/869897#M7158</guid>
      <dc:creator>Seliebl</dc:creator>
      <dc:date>2019-12-09T17:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating % Compete with Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Compete-with-Conditions/m-p/870107#M7161</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192289" data-lia-user-login="Seliebl" class="lia-mention lia-mention-user"&gt;Seliebl&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Starting with a table called Trace, try this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Pct effective =
VAR _num =
    CALCULATE ( COUNTROWS ( Trace ), Trace[Document Status] = "Effective" )
VAR _all =
    COUNTROWS ( ALL ( Trace ) )
RETURN
    DIVIDE ( _num, _all )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&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;&lt;img /&gt;&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>Mon, 09 Dec 2019 22:51:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Compete-with-Conditions/m-p/870107#M7161</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-12-09T22:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating % Compete with Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Compete-with-Conditions/m-p/871075#M7211</link>
      <description>&lt;P&gt;You can try this as well to count total # of documents with effective status over total # of documents.&lt;/P&gt;&lt;P&gt;Eff% = CALCULATE(COUNTA(TableName[Document Status]), TableName[Document Status]="Effective")/ calculate(COUNTA(TableName[Document Status]))&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 16:54:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Compete-with-Conditions/m-p/871075#M7211</guid>
      <dc:creator>pmlathrop8cc</dc:creator>
      <dc:date>2019-12-10T16:54:40Z</dc:date>
    </item>
  </channel>
</rss>

