<?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: Null or Empty Selection? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/351534#M10451</link>
    <description>&lt;P&gt;I don't think so since it isn't the common workflow for Power BI.&lt;/P&gt;&lt;P&gt;If not items are selected that means all of items must be shown in other visuals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our recommendation is to follow the common workflow in order not to confuse users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ignat Vilesov,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2018 07:57:33 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2018-02-05T07:57:33Z</dc:date>
    <item>
      <title>Null or Empty Selection?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/349158#M10357</link>
      <description>&lt;P&gt;I have a map-based visual that supports spatial filtering. Currently, if I draw a spatial filter, the points within the filter are added to the current selection, and other visuals are properly cross-filtered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is if my spatial filter returns no points. If I clear the selection set, all values are displayed in the other visuals. Is there a way I can manipulate the current selection so that no records are displayed in the other visuals? Maybe a "null" selection id that references no existing record?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 15:58:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/349158#M10357</guid>
      <dc:creator>psyang</dc:creator>
      <dc:date>2018-01-31T15:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Null or Empty Selection?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/349646#M10372</link>
      <description>&lt;P&gt;How do you generate SelectiId?&lt;/P&gt;&lt;P&gt;You might create empty SelectionId and try to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note common practice is to show all of values if no values are selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ignat Vilesov,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 08:01:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/349646#M10372</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-02-01T08:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Null or Empty Selection?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/350094#M10392</link>
      <description>&lt;P&gt;I wasn't sure how to construct a null selectionId. I just created a new instance of SelectionId with&amp;nbsp;no parameters. Adding this to the selection did the same as clearing all selection - it showed all values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to create a fake selection Id? One where the criteria in the key returns no result - like "column=-1" where it is guaranteed that column &amp;gt; 0?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't fully understand selection id's and identities as documentation on these objects is pretty slim. They all seem to be generated for us, so creating a fake one is foreign territory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One other thing - I am using a table dataview instead of categorical. Not sure if that makes a difference. I used your suggestion in another thread to generate the table dataview selection Ids.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/350094#M10392</guid>
      <dc:creator>psyang</dc:creator>
      <dc:date>2018-02-01T18:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Null or Empty Selection?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/350429#M10406</link>
      <description>&lt;P&gt;You might try to generate a selection by callig&amp;nbsp;&lt;SPAN class="pl-en"&gt;ISelectionIdBuilder.&lt;SPAN&gt;withMeasure("Some_faked_value").createSelectionId();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-en"&gt;&lt;SPAN&gt;Please let us know if that works as you expected.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ignat Vilesov,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 08:05:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/350429#M10406</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-02-02T08:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Null or Empty Selection?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/350828#M10418</link>
      <description>&lt;P&gt;Thanks for the suggestion, but unfortunately it didn't work. I created a fake selection id by setting a fake value in the withMeasure() method, but adding that selection id to the selection set&amp;nbsp;still caused all records to display.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if, because I am using a table dataview, there are no measures, and so the fake selection id is ignored. Am I able to create a selection id that goes against an existing column of the table, but with a fake value specified?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 17:08:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/350828#M10418</guid>
      <dc:creator>psyang</dc:creator>
      <dc:date>2018-02-02T17:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Null or Empty Selection?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/351534#M10451</link>
      <description>&lt;P&gt;I don't think so since it isn't the common workflow for Power BI.&lt;/P&gt;&lt;P&gt;If not items are selected that means all of items must be shown in other visuals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our recommendation is to follow the common workflow in order not to confuse users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ignat Vilesov,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 07:57:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Null-or-Empty-Selection/m-p/351534#M10451</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-02-05T07:57:33Z</dc:date>
    </item>
  </channel>
</rss>

