<?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: Pre Filter Visuals to limit data shown in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Pre-Filter-Visuals-to-limit-data-shown/m-p/3749469#M9163</link>
    <description>&lt;P&gt;create a measure that tests for ISFILTERED&amp;nbsp; and then use that as a visual filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a small caveat, I'll let you find that yourself &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 18:32:25 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-03-07T18:32:25Z</dc:date>
    <item>
      <title>Pre Filter Visuals to limit data shown</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Pre-Filter-Visuals-to-limit-data-shown/m-p/3748102#M9159</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is their a way to limit the amount of data when a visuals loads by setting a Pre Filter, but when slicers are used it overides the pre - filter.&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;As shown below i have a Line Graph and a Custom Search Slicer. if no value is searched the graph is a complete mess. How would I go about hiding the visual if no value is searched.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SnymanGrobler_0-1709797544808.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1055766iF155D6E97DE0C073/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SnymanGrobler_0-1709797544808.png" alt="SnymanGrobler_0-1709797544808.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am using this Search Slicer:&amp;nbsp;&lt;A href="https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381309?tab=Overview" target="_blank" rel="noopener"&gt;Business Apps – Microsoft AppSource&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 10:07:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Pre-Filter-Visuals-to-limit-data-shown/m-p/3748102#M9159</guid>
      <dc:creator>SnymanGrobler</dc:creator>
      <dc:date>2024-03-07T10:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pre Filter Visuals to limit data shown</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Pre-Filter-Visuals-to-limit-data-shown/m-p/3749469#M9163</link>
      <description>&lt;P&gt;create a measure that tests for ISFILTERED&amp;nbsp; and then use that as a visual filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a small caveat, I'll let you find that yourself &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 18:32:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Pre-Filter-Visuals-to-limit-data-shown/m-p/3749469#M9163</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-07T18:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pre Filter Visuals to limit data shown</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Pre-Filter-Visuals-to-limit-data-shown/m-p/3754669#M9210</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the dataviews, when a filter is applied (from a slicer or from a general filter in filter pane), you can get the "isDataFilterApplied" attribute to true:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;public update(options: VisualUpdateOptions) { console.log(options.dataViews) }  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Paulhaha_1-1710150539065.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1057657iA9F70E8B90CF18CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Paulhaha_1-1710150539065.png" alt="Paulhaha_1-1710150539065.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can probably use this to only create you chart when this attribute is set to true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it answers your question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a good day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 09:49:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Pre-Filter-Visuals-to-limit-data-shown/m-p/3754669#M9210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-11T09:49:06Z</dc:date>
    </item>
  </channel>
</rss>

