<?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: DAX to get a % based on non blanks in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-a-based-on-non-blanks/m-p/1773093#M37145</link>
    <description>&lt;LI-CODE lang="csharp"&gt;[Measure] =
CALCULATE(
    DIVIDE(
        CALCULATE(
            COUNTROWS( 'Psych data' ),
            KEEPFILTERS(
                'Psych data'[Appointment required] = "Yes"
            )
        ),
        COUNTROWS( 'Psych data' )
    ),
    KEEPFILTERS(
        NOT ISBLANK( 'Psych data'[Appointment required] ) 
    )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 07 Apr 2021 22:35:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-07T22:35:25Z</dc:date>
    <item>
      <title>DAX to get a % based on non blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-a-based-on-non-blanks/m-p/1772728#M37116</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have the below measure to calulate the % of Yes's within a column, the DAX for this I am uing is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE(CALCULATE(COUNTROWS('Psych data'),'Psych data'[Appointment required] = "Yes"), CALCULATE(COUNTROWS('Psych data')))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The problem is my column 'Appoinment required' contains Yes, No and Blanks. How do I get it to exclude the blanks so the % is being calculated just on the rows with Yes and No?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Emily.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Apr 2021 17:24:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-a-based-on-non-blanks/m-p/1772728#M37116</guid>
      <dc:creator>EmilyM2019</dc:creator>
      <dc:date>2021-04-07T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to get a % based on non blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-a-based-on-non-blanks/m-p/1772811#M37127</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177444" data-lia-user-login="EmilyM2019" class="lia-mention lia-mention-user"&gt;EmilyM2019&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, I use countblank ( column name) function and subtract from it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/countblank-function-da" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/countblank-function-da&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;EM&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;EM&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 18:21:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-a-based-on-non-blanks/m-p/1772811#M37127</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-04-07T18:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to get a % based on non blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-a-based-on-non-blanks/m-p/1773093#M37145</link>
      <description>&lt;LI-CODE lang="csharp"&gt;[Measure] =
CALCULATE(
    DIVIDE(
        CALCULATE(
            COUNTROWS( 'Psych data' ),
            KEEPFILTERS(
                'Psych data'[Appointment required] = "Yes"
            )
        ),
        COUNTROWS( 'Psych data' )
    ),
    KEEPFILTERS(
        NOT ISBLANK( 'Psych data'[Appointment required] ) 
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Apr 2021 22:35:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-a-based-on-non-blanks/m-p/1773093#M37145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-07T22:35:25Z</dc:date>
    </item>
  </channel>
</rss>

