<?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 Select with SelectionManager by rows instead of by category in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Select-with-SelectionManager-by-rows-instead-of-by-category/m-p/469923#M14418</link>
    <description>&lt;P&gt;In my dataview I have a table where each row contains 3 columns. Is there a way for me to tell the Selection Manager to select the a specific row in the DataView?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've learned how to do it by category, which is quite simple and useful, but I'm at a loss on how to do it by rows from a given table in the DataView.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jul 2018 02:23:27 GMT</pubDate>
    <dc:creator>JohnTheDoe</dc:creator>
    <dc:date>2018-07-24T02:23:27Z</dc:date>
    <item>
      <title>Select with SelectionManager by rows instead of by category</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Select-with-SelectionManager-by-rows-instead-of-by-category/m-p/469923#M14418</link>
      <description>&lt;P&gt;In my dataview I have a table where each row contains 3 columns. Is there a way for me to tell the Selection Manager to select the a specific row in the DataView?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've learned how to do it by category, which is quite simple and useful, but I'm at a loss on how to do it by rows from a given table in the DataView.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 02:23:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Select-with-SelectionManager-by-rows-instead-of-by-category/m-p/469923#M14418</guid>
      <dc:creator>JohnTheDoe</dc:creator>
      <dc:date>2018-07-24T02:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select with SelectionManager by rows instead of by category</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Select-with-SelectionManager-by-rows-instead-of-by-category/m-p/470822#M14444</link>
      <description>&lt;P&gt;To select data by row you should generate a SeletionId for each row by ushing this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/** This is TypeScript method */
private static getSelectionIds(dataView: DataView, host: IVisualHost): powerbi.visuals.ISelectionId[] {
    return dataView.table.identity.map((identity: DataViewScopeIdentity) =&amp;gt; {
        const categoryColumn: DataViewCategoryColumn = {
            source: dataView.table.columns[0],
            values: null,
            identity: [identity]
        };

        return host.createSelectionIdBuilder()
            .withCategory(categoryColumn, 0)
            .createSelectionId();
    });
}&lt;/PRE&gt;
&lt;P&gt;After that, you will be able to use &lt;STRONG&gt;SelectionManager&lt;/STRONG&gt; to select particular rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 17:43:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Select-with-SelectionManager-by-rows-instead-of-by-category/m-p/470822#M14444</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-07-24T17:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select with SelectionManager by rows instead of by category</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Select-with-SelectionManager-by-rows-instead-of-by-category/m-p/699223#M19492</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&amp;nbsp;identity: DataViewScopeIdentity is not working anymore. Do you any suggestions ?&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 08:49:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Select-with-SelectionManager-by-rows-instead-of-by-category/m-p/699223#M19492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T08:49:10Z</dc:date>
    </item>
  </channel>
</rss>

