<?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 Percentage of Non-Null values in a single column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-Non-Null-values-in-a-single-column/m-p/3306646#M123507</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm still bad at DAX and this problem seems simple but I've tried a few approachs and can't get it working.&lt;BR /&gt;&lt;BR /&gt;I have a table, let's say Table1 and I have a column, let's say Score.&lt;BR /&gt;&lt;BR /&gt;I need to find a way to show a percantage in a matrix visual on a dashboard of table1 of all nun-null values.&lt;BR /&gt;&lt;BR /&gt;I got a dax expression to work with blank functions, but I had to convert every null value to a blank value to do this, and I have to make this measure 4 times over.&lt;BR /&gt;&lt;BR /&gt;I got something to technically work, but it gives me values like 103% if I try to show the percantage as % of grand total.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PercentReporting = &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[Score]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"null"&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Score'&lt;/SPAN&gt;&lt;SPAN&gt;)).&lt;BR /&gt;&lt;BR /&gt;Is there any easier way to do this that won't return weird values like 103% ?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 28 Jun 2023 16:27:11 GMT</pubDate>
    <dc:creator>WBADAM03</dc:creator>
    <dc:date>2023-06-28T16:27:11Z</dc:date>
    <item>
      <title>Percentage of Non-Null values in a single column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-Non-Null-values-in-a-single-column/m-p/3306646#M123507</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm still bad at DAX and this problem seems simple but I've tried a few approachs and can't get it working.&lt;BR /&gt;&lt;BR /&gt;I have a table, let's say Table1 and I have a column, let's say Score.&lt;BR /&gt;&lt;BR /&gt;I need to find a way to show a percantage in a matrix visual on a dashboard of table1 of all nun-null values.&lt;BR /&gt;&lt;BR /&gt;I got a dax expression to work with blank functions, but I had to convert every null value to a blank value to do this, and I have to make this measure 4 times over.&lt;BR /&gt;&lt;BR /&gt;I got something to technically work, but it gives me values like 103% if I try to show the percantage as % of grand total.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PercentReporting = &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[Score]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"null"&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Score'&lt;/SPAN&gt;&lt;SPAN&gt;)).&lt;BR /&gt;&lt;BR /&gt;Is there any easier way to do this that won't return weird values like 103% ?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Jun 2023 16:27:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-Non-Null-values-in-a-single-column/m-p/3306646#M123507</guid>
      <dc:creator>WBADAM03</dc:creator>
      <dc:date>2023-06-28T16:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of Non-Null values in a single column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-Non-Null-values-in-a-single-column/m-p/3309242#M123649</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="354159" data-lia-user-login="WBADAM03" class="lia-mention lia-mention-user"&gt;WBADAM03&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NonBlankPercentage =
DIVIDE (
    COUNTROWS ( FILTER ( 'Table1', NOT ( ISBLANK ( 'Table1'[Score] ) ) ) ),
    COUNTROWS ( 'Table1' )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Or:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NonBlankPercentage = DIVIDE( DISTINCTCOUNTNOBLANK(Table1[Score]), COUNTROWS('Table1'))&lt;/LI-CODE&gt;
&lt;P&gt;Does this solve your problem? If not, please provide example data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 02:28:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-Non-Null-values-in-a-single-column/m-p/3309242#M123649</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-06-30T02:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of Non-Null values in a single column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-Non-Null-values-in-a-single-column/m-p/3310337#M123727</link>
      <description>&lt;P&gt;Hey there, that's prettty similiar to what I used.&lt;BR /&gt;&lt;BR /&gt;It didn't intentionally work because the way SQL returned my data was "null" and not blank. So the notblank function didn't work.&lt;BR /&gt;&lt;BR /&gt;I ended up changing this to output blank values instead of a null text string, that allowed the nonblank function to work.&lt;BR /&gt;&lt;BR /&gt;I'm going to mark your answer as the solution because it's what I ended up using.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 14:09:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-Non-Null-values-in-a-single-column/m-p/3310337#M123727</guid>
      <dc:creator>WBADAM03</dc:creator>
      <dc:date>2023-06-30T14:09:12Z</dc:date>
    </item>
  </channel>
</rss>

