<?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 for Column that displays percentage of blank fields in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Column-that-displays-percentage-of-blank-fields/m-p/3072242#M106691</link>
    <description>&lt;P&gt;Stop, thanks for that, I was fooling myself. Setting the Measure to display as Percentage on the modeling Tab and then think again about the expected result brings me to the conclusion thats doing exactly what it should.&lt;/P&gt;&lt;P&gt;Thanks again for the very quick help!&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2023 15:16:18 GMT</pubDate>
    <dc:creator>kanebuddy</dc:creator>
    <dc:date>2023-02-09T15:16:18Z</dc:date>
    <item>
      <title>Measure for Column that displays percentage of blank fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Column-that-displays-percentage-of-blank-fields/m-p/3071855#M106668</link>
      <description>&lt;P&gt;Hi Experts,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a calculation that would give me the percentage of blank fields based on another value.&lt;/P&gt;&lt;P&gt;here is an example.&lt;/P&gt;&lt;P&gt;This is how my data looks like&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column1&lt;/TD&gt;&lt;TD&gt;Column2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so here we have no blanks in column2 for 1, 2 is half empty and for 3 is totally empty&lt;/P&gt;&lt;P&gt;The expected result is a table with one column as above and the calculated column showing the percentage of blanks:&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;column1&lt;/TD&gt;&lt;TD&gt;calc_column&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks ks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 13:02:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Column-that-displays-percentage-of-blank-fields/m-p/3071855#M106668</guid>
      <dc:creator>kanebuddy</dc:creator>
      <dc:date>2023-02-09T13:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Column that displays percentage of blank fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Column-that-displays-percentage-of-blank-fields/m-p/3071887#M106670</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313101" data-lia-user-login="kanebuddy" class="lia-mention lia-mention-user"&gt;kanebuddy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to plot a table visual with the column1 and a measure like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _countall =
COUNTROWS( TableName)
VAR _countblank =
COUNTROWS(
    FILTER(
        TableName,
        TableName[Column2]=BLANK()
    )
)
RETURN
DIVIDE(_countblank, _countall, 0)+0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 13:31:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Column-that-displays-percentage-of-blank-fields/m-p/3071887#M106670</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-09T13:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Column that displays percentage of blank fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Column-that-displays-percentage-of-blank-fields/m-p/3071903#M106671</link>
      <description>&lt;P&gt;hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313101" data-lia-user-login="kanebuddy" class="lia-mention lia-mention-user"&gt;kanebuddy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you may also write a calcualted table like:&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;Table = 
ADDCOLUMNS(
    VALUES(TableName[Column1]),
    "Pct",
    CALCULATE(
        VAR _countall =COUNTROWS( TableName)
        VAR _countblank =
            COUNTROWS(
                FILTER(
                    TableName,
                    TableName[Column2]=BLANK()
                )
            )
        RETURN
        DIVIDE(_countblank, _countall, 0)+0
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 13:32:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Column-that-displays-percentage-of-blank-fields/m-p/3071903#M106671</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-09T13:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Column that displays percentage of blank fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Column-that-displays-percentage-of-blank-fields/m-p/3072128#M106681</link>
      <description>&lt;P&gt;Hi Freemanz,&lt;/P&gt;&lt;P&gt;thanks for the reply, however I get only 1 and 0 as result of the measure, that doesnt look like percentage values. Items that should have a 100% gets 0 and empty ones get 1 and an item that has one blank out of 11 gets a 0,26. Cant see whats wrong..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 14:32:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Column-that-displays-percentage-of-blank-fields/m-p/3072128#M106681</guid>
      <dc:creator>kanebuddy</dc:creator>
      <dc:date>2023-02-09T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Column that displays percentage of blank fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Column-that-displays-percentage-of-blank-fields/m-p/3072242#M106691</link>
      <description>&lt;P&gt;Stop, thanks for that, I was fooling myself. Setting the Measure to display as Percentage on the modeling Tab and then think again about the expected result brings me to the conclusion thats doing exactly what it should.&lt;/P&gt;&lt;P&gt;Thanks again for the very quick help!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 15:16:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Column-that-displays-percentage-of-blank-fields/m-p/3072242#M106691</guid>
      <dc:creator>kanebuddy</dc:creator>
      <dc:date>2023-02-09T15:16:18Z</dc:date>
    </item>
  </channel>
</rss>

