<?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 Calling Sort API for Custom Visuals in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Calling-Sort-API-for-Custom-Visuals/m-p/809453#M2639</link>
    <description>&lt;P&gt;So I noticed that in the&amp;nbsp; August 2019 developer update, there was support API for sorting that is now available to developers for embedded visuals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;const request = {
&amp;nbsp; &amp;nbsp; orderBy: {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table: "SalesFact",
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; measure: "Total Category Volume"
&amp;nbsp; &amp;nbsp; },
&amp;nbsp; &amp;nbsp; direction: 2 // models.SortDirection.Descending
};
visual.sortBy(request);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/power-bi-developer-community-august-2019-update/" target="_blank" rel="noopener"&gt;https://powerbi.microsoft.com/en-us/blog/power-bi-developer-community-august-2019-update/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm now wondering if there is also API for sorting that is available to Custom Visuals, such that I can sort based on buttons that I have placed inside the visual. Right now I'm using a very ghetto approach with TopNFilters and batch loading that works fundamentally, but has some bugs and is complex to implement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also curious about how the native table can call the sort API, if you could expose the code for that sort section, it would help immensely with my issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2019 01:16:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-04T01:16:08Z</dc:date>
    <item>
      <title>Calling Sort API for Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Calling-Sort-API-for-Custom-Visuals/m-p/809453#M2639</link>
      <description>&lt;P&gt;So I noticed that in the&amp;nbsp; August 2019 developer update, there was support API for sorting that is now available to developers for embedded visuals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;const request = {
&amp;nbsp; &amp;nbsp; orderBy: {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table: "SalesFact",
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; measure: "Total Category Volume"
&amp;nbsp; &amp;nbsp; },
&amp;nbsp; &amp;nbsp; direction: 2 // models.SortDirection.Descending
};
visual.sortBy(request);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/power-bi-developer-community-august-2019-update/" target="_blank" rel="noopener"&gt;https://powerbi.microsoft.com/en-us/blog/power-bi-developer-community-august-2019-update/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm now wondering if there is also API for sorting that is available to Custom Visuals, such that I can sort based on buttons that I have placed inside the visual. Right now I'm using a very ghetto approach with TopNFilters and batch loading that works fundamentally, but has some bugs and is complex to implement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also curious about how the native table can call the sort API, if you could expose the code for that sort section, it would help immensely with my issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 01:16:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Calling-Sort-API-for-Custom-Visuals/m-p/809453#M2639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-04T01:16:08Z</dc:date>
    </item>
  </channel>
</rss>

