<?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: Filtering table with DAX for at least one blank() in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1549353#M30635</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="32333" data-lia-user-login="nandukrishnavs" class="lia-mention lia-mention-user"&gt;nandukrishnavs&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional diffictulty...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&amp;nbsp;I requested the data in the model to be pivotted but this request was denied.&lt;BR /&gt;&lt;BR /&gt;So now I'm wondering if there also a way to achieve this when the data looks like this:&lt;/P&gt;&lt;P&gt;&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;and the preferred result would be this:&lt;/P&gt;&lt;P&gt;&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;thanks again!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Dec 2020 15:33:57 GMT</pubDate>
    <dc:creator>mhbon</dc:creator>
    <dc:date>2020-12-14T15:33:57Z</dc:date>
    <item>
      <title>Filtering table with DAX for at least one blank()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1548662#M30621</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way in which (using DAX or anything other besides M) I can filter out all the records where at least one column is blank?&lt;/P&gt;&lt;P&gt;For example if the source is:&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;Result should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;to add on the matter; the key corresponds to a customer name in a table related to the types table. So the ideal result would be:&lt;/P&gt;&lt;P&gt;&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;Reason I can't do it in M is because our BI team requires me to use a Power BI service dataset as source.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 10:33:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1548662#M30621</guid>
      <dc:creator>mhbon</dc:creator>
      <dc:date>2020-12-14T10:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering table with DAX for at least one blank()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1548956#M30625</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="225548" data-lia-user-login="mhbon" class="lia-mention lia-mention-user"&gt;mhbon&lt;/a&gt; , The measure which is showing X , should be changed to &lt;/P&gt;
&lt;P&gt;calculate([measure], filter(Table, calculate(distinctcount(Table[Type]), all(Table)) =calculate(distinctcount(Table[Type]), allexcept(Table,Table[key]))))&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 13:03:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1548956#M30625</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-12-14T13:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering table with DAX for at least one blank()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1548957#M30626</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="225548" data-lia-user-login="mhbon" class="lia-mention lia-mention-user"&gt;mhbon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to represent the data in a table visual, you could write a DAX measure and apply a visual level filter.&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Measure =
VAR _type1 =
    SELECTEDVALUE ( 'Table'[Type1] )
VAR _type2 =
    SELECTEDVALUE ( 'Table'[Type2] )
VAR _type3 =
    SELECTEDVALUE ( 'Table'[Type3] )
VAR _type4 =
    SELECTEDVALUE ( 'Table'[Type4] )
VAR _type5 =
    SELECTEDVALUE ( 'Table'[Type5] )
VAR _result =
    IF (
         (
            ISBLANK ( _type1 ) || ISBLANK ( _type2 )
                || ISBLANK ( _type3 )
                || ISBLANK ( _type4 )
                || ISBLANK ( _type5 )
        ),
        "show",
        "hide"
    )
RETURN
    _result&lt;/LI-CODE&gt;
&lt;P&gt;Otherwise, you can request the data model owner to include a calculated column in the model. So, you can filter the data, page level, or report level.&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;CalculatedColumn =
VAR _type1 = 'Table'[Type1]
VAR _type2 = 'Table'[Type2]
VAR _type3 = 'Table'[Type3]
VAR _type4 = 'Table'[Type4]
VAR _type5 = 'Table'[Type5]
VAR _result =
    IF (
         (
            ISBLANK ( _type1 ) || ISBLANK ( _type2 )
                || ISBLANK ( _type3 )
                || ISBLANK ( _type4 )
                || ISBLANK ( _type5 )
        ),
        "show",
        "hide"
    )
RETURN
    _result&lt;/LI-CODE&gt;
&lt;DIV class="UserSignature lia-message-signature"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV style="border-radius: 1px; padding: 20px; border: solid #CCCCCC 1px; background: #fafafa url('/t5/image/serverpage/image-id/245255iBA79BC16F308A2DA/image-size/large/is-moderation-mode/true?v=1.0&amp;amp;px=999') no-repeat right 20px center; background-size: auto 40%;"&gt;&lt;FONT face="batang,apple gothic" size="3"&gt;Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic" size="3"&gt;Nandu Krishna&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;Appreciate with a kudos&lt;/FONT&gt; &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P style="padding: 0; margin: 5px 50px 0 0;"&gt;&lt;FONT face="batang,apple gothic" size="4"&gt;Proud to be a Super User!&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 13:04:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1548957#M30626</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-12-14T13:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering table with DAX for at least one blank()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1549006#M30627</link>
      <description>&lt;P&gt;That first one worked like a charm! Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 13:23:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1549006#M30627</guid>
      <dc:creator>mhbon</dc:creator>
      <dc:date>2020-12-14T13:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering table with DAX for at least one blank()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1549353#M30635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="32333" data-lia-user-login="nandukrishnavs" class="lia-mention lia-mention-user"&gt;nandukrishnavs&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional diffictulty...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&amp;nbsp;I requested the data in the model to be pivotted but this request was denied.&lt;BR /&gt;&lt;BR /&gt;So now I'm wondering if there also a way to achieve this when the data looks like this:&lt;/P&gt;&lt;P&gt;&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;and the preferred result would be this:&lt;/P&gt;&lt;P&gt;&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;thanks again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 15:33:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1549353#M30635</guid>
      <dc:creator>mhbon</dc:creator>
      <dc:date>2020-12-14T15:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering table with DAX for at least one blank()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1550361#M30661</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="225548" data-lia-user-login="mhbon" class="lia-mention lia-mention-user"&gt;mhbon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Measure =
VAR _typeCount = 3
//change the type count
VAR _x =
    CALCULATE ( COUNT ( 'Table'[Type] ), ALL ( 'Table'[Type] ) )
VAR _result =
    IF ( _x &amp;lt; _typeCount, "show", "hide" )
RETURN
    _result&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Dec 2020 05:21:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-table-with-DAX-for-at-least-one-blank/m-p/1550361#M30661</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-12-15T05:21:51Z</dc:date>
    </item>
  </channel>
</rss>

