<?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: Filter Matrix Rows to be visible only when all columns have values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3160137#M113453</link>
    <description>&lt;P&gt;Filter=COUNTROWS(FILTER(ALLSELECTED('Date'[Year]),&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;([Basket Quantities Price]))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;then, select those rows get 0&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 07:24:25 GMT</pubDate>
    <dc:creator>wdx223_Daniel</dc:creator>
    <dc:date>2023-03-29T07:24:25Z</dc:date>
    <item>
      <title>Filter Matrix Rows to be visible only when all columns have values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3158998#M113386</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to hide rows on a matrix when not all columns have value. So i created the below filter. What i am counting is the the total columns on each row (columns will be the Year), where a specific measure has value. Then i am comparing this value with the total Years (so total columns), returning 1 if this is the same value. Then i will filter 1 on the Matrix. But this is not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i am returning the&amp;nbsp;&lt;SPAN&gt;_nonblankyears, then the value is the expected one as you can see on the first screenshot. When there is a missing value, then the&amp;nbsp;Basket Quantities Filter returns for example 4 instead of 5 (5 are the selected years). When i filter the visual and enter the value 5, then the matrix is filtered correctly. Of course the&amp;nbsp;_years also returns correct values (in this case 5 for all the columns).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But when i am using the 1,0 values to make the filter work more dynamicaly, then is not working anymore, and i am really struggling to figure out why.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Basket Quantities Filter =&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; _years = &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;('Date'[Year]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; _nonblankyears = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CROSSJOIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(Items[Item Name]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;('Date'[Year])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;([Basket Quantities Price]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(_nonblankyears = _years, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Mar 2023 16:35:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3158998#M113386</guid>
      <dc:creator>gap</dc:creator>
      <dc:date>2023-03-28T16:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Matrix Rows to be visible only when all columns have values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3160137#M113453</link>
      <description>&lt;P&gt;Filter=COUNTROWS(FILTER(ALLSELECTED('Date'[Year]),&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;([Basket Quantities Price]))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;then, select those rows get 0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 07:24:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3160137#M113453</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-03-29T07:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Matrix Rows to be visible only when all columns have values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3160199#M113459</link>
      <description>&lt;P&gt;Thanks. The problem is that it will filter the results only when the Filter measure is added to the values. Then i remove it (but of course keep it on the filters), then all the rows returned.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 07:50:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3160199#M113459</guid>
      <dc:creator>gap</dc:creator>
      <dc:date>2023-03-29T07:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Matrix Rows to be visible only when all columns have values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3162000#M113588</link>
      <description>&lt;P&gt;Filter=IF(&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;([Basket Quantities Price]),1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 00:10:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3162000#M113588</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-03-30T00:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Matrix Rows to be visible only when all columns have values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3162697#M113626</link>
      <description>&lt;P&gt;This will not work, since it will not return same value for all the columns on the rows i want to keep, therefore the filtering will not be correct&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 07:32:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3162697#M113626</guid>
      <dc:creator>gap</dc:creator>
      <dc:date>2023-03-30T07:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Matrix Rows to be visible only when all columns have values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3162745#M113630</link>
      <description>&lt;P&gt;What i really dont understand is why if i use filter=5 (the first screenshot) it works even if i remove the column from the table, but on the second case (or on the solution you provided) is not working. Since tha values are as it should be, why on some cases the table is filtered correctly and on the others not?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 07:48:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3162745#M113630</guid>
      <dc:creator>gap</dc:creator>
      <dc:date>2023-03-30T07:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Matrix Rows to be visible only when all columns have values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3162838#M113642</link>
      <description>&lt;P&gt;i do not understand too.&lt;span class="lia-unicode-emoji" title=":downcast_face_with_sweat:"&gt;😓&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 08:24:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3162838#M113642</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-03-30T08:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Matrix Rows to be visible only when all columns have values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3162917#M113648</link>
      <description>&lt;P&gt;Found the below which heps understanding the issue. Generally adding a +0 at the measure in order not to be blank, solves the filtering issue. I just need to find a solution with no adding the +0, but at least that article helps understanding the cause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/deep-dive-into-measure-filters-in-power-bi-desktop/" target="_blank"&gt;Deep dive into measure filters in Power BI Desktop - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 08:54:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Matrix-Rows-to-be-visible-only-when-all-columns-have/m-p/3162917#M113648</guid>
      <dc:creator>gap</dc:creator>
      <dc:date>2023-03-30T08:54:05Z</dc:date>
    </item>
  </channel>
</rss>

