<?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 How To Multiple Data Contexts? in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/323524#M530</link>
    <description>&lt;P&gt;I want to display two (or more) charts in the same visual, that interact of some sort.&lt;/P&gt;&lt;P&gt;For this, I need two (or more) data contexts (Dimension-&amp;gt;Measure).&lt;/P&gt;&lt;P&gt;How can I define the contents of capabilities.json that I can define many dimensions and many measures AND inside my code I see all the data values in update().&lt;/P&gt;&lt;P&gt;At the moment only the values of the first dimension are visible:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/2a23d99b8415dade6318ac7d05ccb3811027f457/68747470733a2f2f696d67332e7069636c6f61642e6f72672f696d6167652f64727769636f63722f756e62656e616e6e742e6a7067" border="0" alt="" width="1003" height="437" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My capabilities.json&lt;/P&gt;&lt;PRE&gt;{
    "dataRoles": [
        {
            "displayName": "Dimension",
            "name": "category",
            "kind": "Grouping"
        },
        {
            "displayName": "Measure Data",
            "name": "measure",
            "kind": "Measure"
        }
    ],
    "dataViewMappings": [
        {
            "categorical": {
                "categories": {
                    "for": {
                        "in": "category"
                    },
                    "dataReductionAlgorithm": {
                        "top": {}
                    }
                },
                "values": {
                    "select": [
                        {
                            "bind": {
                                "to": "measure"
                            }
                        }
                    ]
                }
            }
        }
    ],
    "objects": {...}
}&lt;/PRE&gt;&lt;P&gt;Is there any online resource/tutorial about multiple data contexts available?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2017 10:23:45 GMT</pubDate>
    <dc:creator>blumi78</dc:creator>
    <dc:date>2017-12-14T10:23:45Z</dc:date>
    <item>
      <title>How To Multiple Data Contexts?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/323524#M530</link>
      <description>&lt;P&gt;I want to display two (or more) charts in the same visual, that interact of some sort.&lt;/P&gt;&lt;P&gt;For this, I need two (or more) data contexts (Dimension-&amp;gt;Measure).&lt;/P&gt;&lt;P&gt;How can I define the contents of capabilities.json that I can define many dimensions and many measures AND inside my code I see all the data values in update().&lt;/P&gt;&lt;P&gt;At the moment only the values of the first dimension are visible:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/2a23d99b8415dade6318ac7d05ccb3811027f457/68747470733a2f2f696d67332e7069636c6f61642e6f72672f696d6167652f64727769636f63722f756e62656e616e6e742e6a7067" border="0" alt="" width="1003" height="437" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My capabilities.json&lt;/P&gt;&lt;PRE&gt;{
    "dataRoles": [
        {
            "displayName": "Dimension",
            "name": "category",
            "kind": "Grouping"
        },
        {
            "displayName": "Measure Data",
            "name": "measure",
            "kind": "Measure"
        }
    ],
    "dataViewMappings": [
        {
            "categorical": {
                "categories": {
                    "for": {
                        "in": "category"
                    },
                    "dataReductionAlgorithm": {
                        "top": {}
                    }
                },
                "values": {
                    "select": [
                        {
                            "bind": {
                                "to": "measure"
                            }
                        }
                    ]
                }
            }
        }
    ],
    "objects": {...}
}&lt;/PRE&gt;&lt;P&gt;Is there any online resource/tutorial about multiple data contexts available?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 10:23:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/323524#M530</guid>
      <dc:creator>blumi78</dc:creator>
      <dc:date>2017-12-14T10:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: How To Multiple Data Contexts?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/324092#M536</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46636"&gt;@blumi78&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power BI returns all of values.&lt;/P&gt;&lt;P&gt;Have you checked the prototype object? I think the values of the second category is in the prototype.&lt;/P&gt;&lt;P&gt;You might access value of second category by this code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// options: VisualUpdateOptions

options.dataViews[0].categorical.categories[1].values

&lt;/PRE&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, 15 Dec 2017 07:24:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/324092#M536</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-12-15T07:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: How To Multiple Data Contexts?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/324970#M542</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;Thanks, I've found them! Do you have&amp;nbsp;a solution for how to group them together? I want to make a (multi-)chart with N dimensions and M measures, where M &amp;gt;= N. So I need a mapping, which measure(s) relate to which dimension. I.e.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dataviews[0].categorical.categories[0]&amp;nbsp;=&amp;gt;&amp;nbsp;&lt;SPAN&gt;dataviews[0].categorical.values[0],&amp;nbsp;dataviews[0].categorical.values[1]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dataviews[0].categorical.categories[1]&amp;nbsp;=&amp;gt;&amp;nbsp;dataviews[0].categorical.values[2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do I need to make a custom GUI inside my extension for this or can this be done using the PowerBI sidebar somehow?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bastian&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 07:47:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/324970#M542</guid>
      <dc:creator>blumi78</dc:creator>
      <dc:date>2017-12-18T07:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: How To Multiple Data Contexts?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/325148#M545</link>
      <description>&lt;P&gt;I think there's no way to implement such behavior using Power BI sidebar.&lt;/P&gt;&lt;P&gt;In other words, you should implement your own GUI as did in &lt;A href="https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381299?src=office&amp;amp;tab=Reviews#" target="_blank"&gt;Power KPI Matrix&lt;/A&gt; custom visual.&lt;/P&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="image.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/74644i094D0F9FCB36DE5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&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>Mon, 18 Dec 2017 11:16:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/325148#M545</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-12-18T11:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: How To Multiple Data Contexts?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/593788#M1699</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How could we implement a custom GUI? we couldnt find any data related to it in the documentation and as per the below thread the code for Power KPI is private&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Custom-Visuals-Development/Power-KPI-Matrix-source-code-in-github/td-p/436473" target="_blank"&gt;https://community.powerbi.com/t5/Custom-Visuals-Development/Power-KPI-Matrix-source-code-in-github/td-p/436473&lt;/A&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:38:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/593788#M1699</guid>
      <dc:creator>GhadaElshamy</dc:creator>
      <dc:date>2019-01-02T13:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How To Multiple Data Contexts?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/595394#M1707</link>
      <description>&lt;P&gt;You can use React or another library to build UI.&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>Fri, 04 Jan 2019 17:31:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/595394#M1707</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2019-01-04T17:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How To Multiple Data Contexts?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/595674#M1711</link>
      <description>Which UI Library to use is not the problem, the problem is how to inject this UI to Power BI custom visual.</description>
      <pubDate>Sun, 06 Jan 2019 08:22:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/595674#M1711</guid>
      <dc:creator>GhadaElshamy</dc:creator>
      <dc:date>2019-01-06T08:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: How To Multiple Data Contexts?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/596934#M1715</link>
      <description>&lt;P&gt;I suggest you start using our&amp;nbsp;powerbi-visuals-tools@3.x.x.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It supports modern ES2015 import export and webpack. That means you can import almost any library and use it.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 14:10:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-To-Multiple-Data-Contexts/m-p/596934#M1715</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2019-01-08T14:10:34Z</dc:date>
    </item>
  </channel>
</rss>

