<?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: Show report only when value is selected from filter pane in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4359864#M173076</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501067" data-lia-user-login="Sahir_Maharaj" class="lia-mention lia-mention-user"&gt;Sahir_Maharaj&lt;/a&gt;&amp;nbsp; Thanks for the reply. I have kind of got the solution with below DAX measure and it works. Could you tell me which one will be better?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if( COUNTROWS(ALLSELECTED('Dim_country'[Country])) &amp;lt; COUNTROWS(ALL('Dim_country'[Country])),
[Sales Amount],BLANK())&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 11 Jan 2025 19:07:25 GMT</pubDate>
    <dc:creator>rob_vander2</dc:creator>
    <dc:date>2025-01-11T19:07:25Z</dc:date>
    <item>
      <title>Show report only when value is selected from filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4359121#M173056</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have one table report column Country and masure sales.&lt;STRONG&gt; I have included same country dimension in in page level filter pane.&amp;nbsp;&lt;/STRONG&gt;I want to show this report only when country is is selected from filter pane, otherwise should be blank. I tried with ISFILTERED but it's not working as Dimension is already in filter conetxt of this table visual. How can I achieve this?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 16:07:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4359121#M173056</guid>
      <dc:creator>rob_vander2</dc:creator>
      <dc:date>2025-01-10T16:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Show report only when value is selected from filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4359287#M173064</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628059" data-lia-user-login="rob_vander2" class="lia-mention lia-mention-user"&gt;rob_vander2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try this approach:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Show Report = 
IF(
    HASONEVALUE('Country'[Country]),
    CALCULATE(
        SUM('SalesTable'[Sales]),
        FILTER(
            ALL('Country'),
            'Country'[Country] IN VALUES('Country'[Country])
        )
    ),
    BLANK()
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Jan 2025 19:24:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4359287#M173064</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2025-01-10T19:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show report only when value is selected from filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4359864#M173076</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501067" data-lia-user-login="Sahir_Maharaj" class="lia-mention lia-mention-user"&gt;Sahir_Maharaj&lt;/a&gt;&amp;nbsp; Thanks for the reply. I have kind of got the solution with below DAX measure and it works. Could you tell me which one will be better?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if( COUNTROWS(ALLSELECTED('Dim_country'[Country])) &amp;lt; COUNTROWS(ALL('Dim_country'[Country])),
[Sales Amount],BLANK())&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 11 Jan 2025 19:07:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4359864#M173076</guid>
      <dc:creator>rob_vander2</dc:creator>
      <dc:date>2025-01-11T19:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Show report only when value is selected from filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4359865#M173077</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501067" data-lia-user-login="Sahir_Maharaj" class="lia-mention lia-mention-user"&gt;Sahir_Maharaj&lt;/a&gt;&amp;nbsp; Also, your solution doesn't seem to be working. When I put your DAX in the report, by default I can still see the report for all countries instead of blank&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2025 19:15:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4359865#M173077</guid>
      <dc:creator>rob_vander2</dc:creator>
      <dc:date>2025-01-11T19:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Show report only when value is selected from filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4359868#M173078</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628059" data-lia-user-login="rob_vander2" class="lia-mention lia-mention-user"&gt;rob_vander2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try these updated approaches:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Show Report = 
IF(
    ISFILTERED('Country'[Country]),
    [Sales Amount],
    BLANK()
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF(
    HASONEVALUE('Dim_country'[Country]),
    [Sales Amount],
    BLANK()
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 11 Jan 2025 20:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4359868#M173078</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2025-01-11T20:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Show report only when value is selected from filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4360705#M173101</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;Firstly&amp;nbsp; Sahir_Maharaj&amp;nbsp;thank you for your solution!&lt;/P&gt;
&lt;P&gt;And&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628059" data-lia-user-login="rob_vander2" class="lia-mention lia-mention-user"&gt;rob_vander2&lt;/a&gt;&amp;nbsp;,Since in the screening process, if you do not select any city, the default logic is that you select all cities, so then in this case, we need to add a little restriction to ensure that the logic works properly.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Display Sales @ = 
IF(
    CALCULATE(HASONEVALUE('Countries_Table'[Country]),ALLSELECTED('Sales_Table')),
    SUM('Sales_Table'[SalesAmount]),
 BLANK()
    
)&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;If you have further questions, check out the pbix file I uploaded and I would be extremely proud if my solution solves your problem!&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 05:07:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4360705#M173101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-13T05:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Show report only when value is selected from filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4365532#M173336</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; Problem is I should be able to select multiple countries as well. In this case hasonevalue restricting to select only one country&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 17:01:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4365532#M173336</guid>
      <dc:creator>rob_vander2</dc:creator>
      <dc:date>2025-01-15T17:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Show report only when value is selected from filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4366168#M173367</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628059" data-lia-user-login="rob_vander2" class="lia-mention lia-mention-user"&gt;rob_vander2&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;According to your new requirement, you want to be able to filter multiple cities can also be displayed is it, you can try the following code, hope it can help you!&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Display Sales @ = 
IF(
    CALCULATE(ISFILTERED('Countries_Table'[Country]),ALLSELECTED('Sales_Table')),
    SUM('Sales_Table'[SalesAmount]),
 BLANK()
    
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 03:10:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-report-only-when-value-is-selected-from-filter-pane/m-p/4366168#M173367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-16T03:10:56Z</dc:date>
    </item>
  </channel>
</rss>

