<?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: Cusstom Visual refresh dataset in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cusstom-Visual-refresh-dataset/m-p/807041#M2627</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the late answer.&lt;/P&gt;&lt;P&gt;I see that my colleague has already answered you by e-mail so, I will transfer his answer here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"If you try to filter data in slicer, that works with metrics -- it's impossible.&lt;/P&gt;&lt;P&gt;Visuals can't filter data in slicer visuals by using SelectionID's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to use Filter API:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-bi%2Fdeveloper%2Fvisuals%2Ffilter-api&amp;amp;data=02%7C01%7Cv-evelk%40microsoft.com%7C3b9008e64d3c49f822d108d741d58253%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637050257579064724&amp;amp;sdata=GPN3mKY%2BA50Tb8ttuwN4R%2B9CUKsBpcfd3RRNaH1H6Ag%3D&amp;amp;reserved=0" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/visuals/filter-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"&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>Tue, 01 Oct 2019 15:03:33 GMT</pubDate>
    <dc:creator>v-evelk</dc:creator>
    <dc:date>2019-10-01T15:03:33Z</dc:date>
    <item>
      <title>Cusstom Visual refresh dataset</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cusstom-Visual-refresh-dataset/m-p/797642#M2582</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a custom visual with a slicer filter and an svg element with nodes and links(please see image below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an onclick event in the circle, I have the selectionId for the element&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;selectionManager&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;select&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;d&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;selectionId&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I need to refresh the options.dataview[0], in order to refresh the data and refresh my svg element.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What do you recommend to have this functionality?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is it possible to update the metric name slicer selected value?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please help, thank you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PowerBI SVG" style="width: 496px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/194269i71BD799258314E43/image-size/large?v=v2&amp;amp;px=999" role="button" title="powerbihelp.jpg" alt="PowerBI SVG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PowerBI SVG&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 03:39:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cusstom-Visual-refresh-dataset/m-p/797642#M2582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-20T03:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cusstom Visual refresh dataset</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cusstom-Visual-refresh-dataset/m-p/807041#M2627</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the late answer.&lt;/P&gt;&lt;P&gt;I see that my colleague has already answered you by e-mail so, I will transfer his answer here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"If you try to filter data in slicer, that works with metrics -- it's impossible.&lt;/P&gt;&lt;P&gt;Visuals can't filter data in slicer visuals by using SelectionID's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to use Filter API:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-bi%2Fdeveloper%2Fvisuals%2Ffilter-api&amp;amp;data=02%7C01%7Cv-evelk%40microsoft.com%7C3b9008e64d3c49f822d108d741d58253%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637050257579064724&amp;amp;sdata=GPN3mKY%2BA50Tb8ttuwN4R%2B9CUKsBpcfd3RRNaH1H6Ag%3D&amp;amp;reserved=0" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/visuals/filter-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"&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>Tue, 01 Oct 2019 15:03:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cusstom-Visual-refresh-dataset/m-p/807041#M2627</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-10-01T15:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cusstom Visual refresh dataset</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cusstom-Visual-refresh-dataset/m-p/807282#M2628</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've apply a basic filter using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Apply a Basic filter&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;basicFilter&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;IBasicFilter&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;target:&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;table:&lt;/SPAN&gt; &lt;SPAN&gt;"Dim_MetricRelationships"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;column:&lt;/SPAN&gt; &lt;SPAN&gt;"Metric Branch"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;operator:&lt;/SPAN&gt; &lt;SPAN&gt;"In"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//values: ['Excess M&amp;amp;S', 'PO Compliance - Inventory'],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;values:&lt;/SPAN&gt; &lt;SPAN&gt;Visual&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;metricList&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;filterType:&lt;/SPAN&gt; &lt;SPAN&gt;models&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FilterType&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Basic&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;host&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;applyJsonFilter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;basicFilter&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"general"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"filter"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;FilterAction&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;merge&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jsonfilters.jpg" style="width: 383px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/197174i6FEA0BA6E083579D/image-size/large?v=v2&amp;amp;px=999" role="button" title="jsonfilters.jpg" alt="jsonfilters.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can I refresh the data based on this basicfilter?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Right now If I see values on&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;options.dataViews[0] I only see data for one metric.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I need to be able to get the data based on this new filter.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please let me know your comments. thank you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Oct 2019 20:34:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cusstom-Visual-refresh-dataset/m-p/807282#M2628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-01T20:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cusstom Visual refresh dataset</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cusstom-Visual-refresh-dataset/m-p/811681#M2645</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;after call applyJsonfilters, how can I update the data in&amp;nbsp;options.dataViews[0] ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 20:53:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cusstom-Visual-refresh-dataset/m-p/811681#M2645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-07T20:53:32Z</dc:date>
    </item>
  </channel>
</rss>

