<?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: Hide subcategories which have at least one blank value in matrix column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hide-subcategories-which-have-at-least-one-blank-value-in-matrix/m-p/4145100#M164730</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="804773" data-lia-user-login="Sokolymbaas" class="lia-mention lia-mention-user"&gt;Sokolymbaas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you want to hide the entire sub-category row even if a single month doesn't have the sales value?&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 13:54:30 GMT</pubDate>
    <dc:creator>quantumudit</dc:creator>
    <dc:date>2024-09-11T13:54:30Z</dc:date>
    <item>
      <title>Hide subcategories which have at least one blank value in matrix column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hide-subcategories-which-have-at-least-one-blank-value-in-matrix/m-p/4144960#M164727</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;BR /&gt;Could you please help me to solve the problem?&lt;BR /&gt;&lt;BR /&gt;I got matrix visual, in rows - categories and subcategories, in columns - month number in year, in values = average amount of sold products. As you see not all subcategories have sales in every month. So i would like to hide these kind of categories&amp;nbsp;&lt;SPAN&gt;dynamically.&lt;BR /&gt;&lt;BR /&gt;I have tried to set a filter on visual "Metric does not equal blank" but it hasn't worked.&lt;BR /&gt;I attached matrix example and measure i use: AVERAGE ( 'fct_table'[ValueColumn] )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 13:06:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hide-subcategories-which-have-at-least-one-blank-value-in-matrix/m-p/4144960#M164727</guid>
      <dc:creator>Sokolymbaas</dc:creator>
      <dc:date>2024-09-11T13:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hide subcategories which have at least one blank value in matrix column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hide-subcategories-which-have-at-least-one-blank-value-in-matrix/m-p/4145100#M164730</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="804773" data-lia-user-login="Sokolymbaas" class="lia-mention lia-mention-user"&gt;Sokolymbaas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you want to hide the entire sub-category row even if a single month doesn't have the sales value?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 13:54:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hide-subcategories-which-have-at-least-one-blank-value-in-matrix/m-p/4145100#M164730</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2024-09-11T13:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hide subcategories which have at least one blank value in matrix column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hide-subcategories-which-have-at-least-one-blank-value-in-matrix/m-p/4145147#M164731</link>
      <description>&lt;P&gt;Yeah, thats excactly what i want to do.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 14:24:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hide-subcategories-which-have-at-least-one-blank-value-in-matrix/m-p/4145147#M164731</guid>
      <dc:creator>Sokolymbaas</dc:creator>
      <dc:date>2024-09-11T14:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hide subcategories which have at least one blank value in matrix column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hide-subcategories-which-have-at-least-one-blank-value-in-matrix/m-p/4146621#M164771</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="804773" data-lia-user-login="Sokolymbaas" class="lia-mention lia-mention-user"&gt;Sokolymbaas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created an example using this data that you can adapt to your situation.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a measure and calculate the average.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
AVERAGE(financials[ Sales])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. create measure and set all rows with blank values to blank.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure2 =
VAR _count =
    CALCULATE (
        DISTINCTCOUNT ( financials[Month Number] ),
        FILTER (
            ALL ( 'financials' ),
            'financials'[Product] = MAX ( 'financials'[Product] )
                &amp;amp;&amp;amp; 'financials'[Discount Band] = MAX ( 'financials'[Discount Band] )
        )
    )
RETURN
    IF (
        ISINSCOPE ( financials[Discount Band] )
            &amp;amp;&amp;amp; _count &amp;lt;&amp;gt; 12,
        BLANK (),
        [Measure]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;3. Be careful not to check show items with no data.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The following figure shows the different cases of using measure and measure2, more details can be found in the attachment.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 07:59:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hide-subcategories-which-have-at-least-one-blank-value-in-matrix/m-p/4146621#M164771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-12T07:59:59Z</dc:date>
    </item>
  </channel>
</rss>

