<?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: How to Build SelectionID for table visual (Source Code) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/666086#M19054</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please share with me your code?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2019 07:15:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-10T07:15:23Z</dc:date>
    <item>
      <title>How to Build SelectionID for table visual (Source Code)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/229433#M7228</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you anyone let me know how to build selectionId in table visual or direct me to its Source code.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 16:33:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/229433#M7228</guid>
      <dc:creator>chotu27</dc:creator>
      <dc:date>2017-08-10T16:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Build SelectionID for table visual (Source Code)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/229801#M7241</link>
      <description>&lt;P&gt;Please use this code as an example and current workaround:&lt;/P&gt;&lt;PRE&gt;getSelectionIds(dataView: DataView, host: IVisualHost): 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;&lt;STRONG&gt;Ignat Vilesov&lt;/STRONG&gt;,&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;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 07:46:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/229801#M7241</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-08-11T07:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Build SelectionID for table visual (Source Code)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/234639#M7394</link>
      <description>&lt;P&gt;Hi Ignat&lt;/P&gt;&lt;P&gt;I tried to create selection id's with the workaround that you have sent. But its not working. The code just breaks at&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;return host.createSelectionIdBuilder()
            .withCategory(categoryColumn, 0)
            .createSelectionId();
    });&lt;/PRE&gt;&lt;P&gt;statement giving no errors. I do not know how createSelectionIdBuilder is working. Please help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2017 01:36:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/234639#M7394</guid>
      <dc:creator>chotu27</dc:creator>
      <dc:date>2017-08-20T01:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Build SelectionID for table visual (Source Code)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/234973#M7401</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/32190"&gt;@chotu27&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share source code? It that possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ignat Vilesov&lt;/STRONG&gt;,&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;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 07:46:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/234973#M7401</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-08-21T07:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Build SelectionID for table visual (Source Code)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/235481#M7421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I can share you apart of it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the source code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything else seems to be working fine. It is only at that line where i am trying to create selection id's is what's not working.&lt;/P&gt;&lt;PRE&gt;//function for dataModelling
 public visualTransform(options: VisualUpdateOptions, host: IVisualHost):TableBarViewModel {
         let iValueFormatterPercent = ValueFormatter.create({ format: "0 %;-0%;0%" });   
         var dataViews =this.dataView = options.dataViews[0];
        &lt;STRONG&gt; let tableSelectionId: ISelectionId[] = this.getSelectionIds(dataViews,host);&lt;/STRONG&gt;



//selection id function
public getSelectionIds(dataView: DataView, host: IVisualHost): ISelectionId[] {
&amp;nbsp;
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();
})
};


capabilities.json
"dataRoles": [
    {
      "displayName": "Values",
      "name": "values",
      "kind": "GroupingOrMeasure"
    }
  ],
  "dataViewMappings": [ 
    {    
      "conditions": [
        {
          "values": {
            "min": 1,
            "max": 25
          }
        }
      ],
       "table": {
          "rows": {
              "select": [{"for": { "in": "values" }}]
        }
    }
       }

  ],&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Aug 2017 19:35:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/235481#M7421</guid>
      <dc:creator>chotu27</dc:creator>
      <dc:date>2017-08-21T19:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Build SelectionID for table visual (Source Code)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/235894#M7427</link>
      <description>&lt;P&gt;This code works well for me.&lt;/P&gt;&lt;P&gt;Are you sure that another part of the code works properly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ignat Vilesov&lt;/STRONG&gt;,&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;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 08:15:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/235894#M7427</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-08-22T08:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Build SelectionID for table visual (Source Code)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/237445#M7467</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;Hi Ignat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already shared you my complete source code to your messages can you please check that and give me reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 18:00:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/237445#M7467</guid>
      <dc:creator>chotu27</dc:creator>
      <dc:date>2017-08-23T18:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Build SelectionID for table visual (Source Code)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/237861#M7478</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/32190"&gt;@chotu27&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code has been updated. Please take a llok at the private message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ignat Vilesov&lt;/STRONG&gt;,&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;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 07:58:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/237861#M7478</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-08-24T07:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Build SelectionID for table visual (Source Code)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/666086#M19054</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please share with me your code?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 07:15:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/666086#M19054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-10T07:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Build SelectionID for table visual (Source Code)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/668521#M19098</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that selection for table requires some hack.&lt;/P&gt;&lt;P&gt;Hopefully, a new &lt;STRONG&gt;API 2.5&lt;/STRONG&gt; which will be released next week contains &lt;STRONG&gt;.withTable&lt;/STRONG&gt; method of the builder that must solve selection issues with Table mapping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 09:20:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Build-SelectionID-for-table-visual-Source-Code/m-p/668521#M19098</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-04-12T09:20:01Z</dc:date>
    </item>
  </channel>
</rss>

