<?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 Suppressing Visuals and data for too few records based on multiple slicers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Suppressing-Visuals-and-data-for-too-few-records-based-on/m-p/3870354#M151182</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am new to PowerBI so I hope this isn't too elementary. Searched the forums and help videos but not getting something I need exactly for consolidated data. Have had partial success with measures not managed a solution for full page. Below is sample set of a larger usecase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the below data/report, I have just one simple table. Based on all the slicers/filters on the page, I want to limit the data shown to only where more than 5 records available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report:&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;&lt;P&gt;All the 3 visuals have averages (consolidated data). With the below data I need to limit to at least 5 responses, for example:&lt;/P&gt;&lt;P&gt;1) If no slicers selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- Visual 1 is ok, uses all records&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- Visual 2 should only show sweden data as Sweden has &amp;gt;= 5 records while other countries dont&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- Visual 3 should only show Tax and HR, as travel has &amp;lt; 5 records&lt;/P&gt;&lt;P&gt;2) Lets say US is filtered in one slicer&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- All 3 visuals should not show data as all visual components pull from &amp;lt; 5 records&lt;/P&gt;&lt;P&gt;3) If TAX and SWEDEN selected in different slicers&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - Again, all 3 visuals should not show data as all visual components pull from &amp;lt; 5 records&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If when data is suppressed and I can add some comment like 'Not enough data' this is an additional bonus.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2024 07:42:53 GMT</pubDate>
    <dc:creator>LJLSR</dc:creator>
    <dc:date>2024-04-26T07:42:53Z</dc:date>
    <item>
      <title>Suppressing Visuals and data for too few records based on multiple slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Suppressing-Visuals-and-data-for-too-few-records-based-on/m-p/3870354#M151182</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am new to PowerBI so I hope this isn't too elementary. Searched the forums and help videos but not getting something I need exactly for consolidated data. Have had partial success with measures not managed a solution for full page. Below is sample set of a larger usecase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the below data/report, I have just one simple table. Based on all the slicers/filters on the page, I want to limit the data shown to only where more than 5 records available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report:&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;&lt;P&gt;All the 3 visuals have averages (consolidated data). With the below data I need to limit to at least 5 responses, for example:&lt;/P&gt;&lt;P&gt;1) If no slicers selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- Visual 1 is ok, uses all records&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- Visual 2 should only show sweden data as Sweden has &amp;gt;= 5 records while other countries dont&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- Visual 3 should only show Tax and HR, as travel has &amp;lt; 5 records&lt;/P&gt;&lt;P&gt;2) Lets say US is filtered in one slicer&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- All 3 visuals should not show data as all visual components pull from &amp;lt; 5 records&lt;/P&gt;&lt;P&gt;3) If TAX and SWEDEN selected in different slicers&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - Again, all 3 visuals should not show data as all visual components pull from &amp;lt; 5 records&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If when data is suppressed and I can add some comment like 'Not enough data' this is an additional bonus.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 07:42:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Suppressing-Visuals-and-data-for-too-few-records-based-on/m-p/3870354#M151182</guid>
      <dc:creator>LJLSR</dc:creator>
      <dc:date>2024-04-26T07:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing Visuals and data for too few records based on multiple slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Suppressing-Visuals-and-data-for-too-few-records-based-on/m-p/3873958#M151314</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="732361" data-lia-user-login="LJLSR" class="lia-mention lia-mention-user"&gt;LJLSR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try formula like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;age_ =
IF (
    SELECTEDVALUE ( Sheet[Country] ) = "US",
    BLANK (),
    IF (
        SELECTEDVALUE ( Sheet[Dept] ) &amp;amp; " "
            &amp;amp; SELECTEDVALUE ( Sheet[Country] ) = "TAX Sweden",
        BLANK (),
        AVERAGE ( [Age] )
    )
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;result1 =
VAR count_ =
    COUNTROWS ( FILTER ( Sheet, Sheet[Country] = MAX ( Sheet[Country] ) ) )
RETURN
    IF (
        SELECTEDVALUE ( Sheet[Country] ) = "US",
        BLANK (),
        IF (
            SELECTEDVALUE ( Sheet[Dept] ) &amp;amp; " "
                &amp;amp; SELECTEDVALUE ( Sheet[Country] ) = "TAX Sweden",
            BLANK (),
            IF ( ISBLANK ( SELECTEDVALUE ( Sheet[Dept] ) ) &amp;amp;&amp;amp; count_ &amp;gt; 5, 1, 0 )
        )
    )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;result2 =
VAR count_ =
    COUNTROWS ( FILTER ( Sheet, Sheet[Dept] = MAX ( Sheet[Dept] ) ) )
RETURN
    IF (
        SELECTEDVALUE ( Sheet[Country] ) = "US",
        BLANK (),
        IF (
            SELECTEDVALUE ( Sheet[Dept] ) &amp;amp; " "
                &amp;amp; SELECTEDVALUE ( Sheet[Country] ) = "TAX Sweden",
            BLANK (),
            IF ( count_ &amp;lt; 5, 0, 1 )
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 02:57:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Suppressing-Visuals-and-data-for-too-few-records-based-on/m-p/3873958#M151314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-29T02:57:39Z</dc:date>
    </item>
  </channel>
</rss>

