<?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: Data loses order on publishing to web in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/244967#M108564</link>
    <description>&lt;P&gt;Thanks for the idea, unfortunately ring number is a calculated column in DAX so M is not a solution!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2017 08:08:09 GMT</pubDate>
    <dc:creator>callum</dc:creator>
    <dc:date>2017-09-04T08:08:09Z</dc:date>
    <item>
      <title>Data loses order on publishing to web</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/243246#M107967</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what my data looks like in the data pane:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As you can see, it's sorted by ringNumber (how it sorts rows with a equal ringNumber doesn't matter).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I publish this to the web, the data is in a seemingly random order (as I'm developing a custom visual, specifically it's dataViews[0].table.rows that is unsorted, although I think this isn't particularly relevant to the question).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've checked and the order given is not even that of the data in the Query editor,&amp;nbsp;and I can't actually seem to spot any kind of order in the data. Is it just random? How can I preserve order when publishing to web?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 15:22:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/243246#M107967</guid>
      <dc:creator>callum</dc:creator>
      <dc:date>2017-08-31T15:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data loses order on publishing to web</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/243271#M107979</link>
      <description>&lt;P&gt;I would think you would order it when you retrieve it into your custom visual. Generally, the order of the data is not important and you do your sorting within the visualization. Why does the order of the raw data matter?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 15:47:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/243271#M107979</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2017-08-31T15:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data loses order on publishing to web</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/244059#M108250</link>
      <description>&lt;P&gt;Because in my visual I wish to enable the user to have a say in how it gets rendered, e.g. the rows that are first in the dataset get rendered first. Is there no way of achieving this then?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 13:43:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/244059#M108250</guid>
      <dc:creator>callum</dc:creator>
      <dc:date>2017-09-01T13:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data loses order on publishing to web</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/244816#M108506</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="36706" data-lia-user-login="callum" class="lia-mention lia-mention-user"&gt;callum&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;I've checked and the order given is not even that of the data in the Query editor,&amp;nbsp;and I can't actually seem to spot any kind of order in the data. Is it just random? How can I preserve order when publishing to web?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Have you tried using&amp;nbsp;&lt;STRONG&gt;Table.Sort&lt;/STRONG&gt; function(M) to sort your table by&amp;nbsp;&lt;SPAN&gt;ringNumber&amp;nbsp;column&amp;nbsp;in &lt;STRONG&gt;Query Editor&lt;/STRONG&gt;? Based on my understand and test, it should work in your scenario.&amp;nbsp;:smileyhappy:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;= &lt;STRONG&gt;Table.Sort&lt;/STRONG&gt;(#"PreviousStepName",{{"&lt;STRONG&gt;ringNumber&lt;/STRONG&gt;", Order.Ascending}})&lt;/PRE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 06:02:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/244816#M108506</guid>
      <dc:creator>v-ljerr-msft</dc:creator>
      <dc:date>2017-09-04T06:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data loses order on publishing to web</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/244967#M108564</link>
      <description>&lt;P&gt;Thanks for the idea, unfortunately ring number is a calculated column in DAX so M is not a solution!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 08:08:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/244967#M108564</guid>
      <dc:creator>callum</dc:creator>
      <dc:date>2017-09-04T08:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data loses order on publishing to web</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/244976#M108567</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="36706" data-lia-user-login="callum" class="lia-mention lia-mention-user"&gt;callum&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's the logic of creating the ring number column? I'm just wondering if you could create a custom/conditional&amp;nbsp;column for ring number within Query Editor using&amp;nbsp;M instead, then the solution&amp;nbsp;could work?&amp;nbsp;:smileyhappy:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 08:19:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/244976#M108567</guid>
      <dc:creator>v-ljerr-msft</dc:creator>
      <dc:date>2017-09-04T08:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data loses order on publishing to web</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/244996#M108573</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, my visual looks like this:&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;(Basically a Power BI version of&amp;nbsp;&lt;A href="https://www.thoughtworks.com/radar" target="_self"&gt;Thoughtworks' Tech Radar&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So each "point" on the visual is a row in the dataset, and has a "ring" column which is either "Accelerate", "Progress", "Monitor" or "Pause". I'd like to be able to specify the order the rings are plotted in, i.e. Accelerate is the inner circle, Pause is the outer ring, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment I'm hardcoding these values into my visual's code, but obviously this is a very inflexible solution as it doesn't allow any modifications!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've&amp;nbsp;just tried your M method - it does work in Power BI desktop, but on uploading to the web, the data provided to the visual still seems to be in a random order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps this is more of a visual development issue rather than an M/DAX/PBI Desktop issue then? I'll see if there's any ideas in the Development forum.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 08:49:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Data-loses-order-on-publishing-to-web/m-p/244996#M108573</guid>
      <dc:creator>callum</dc:creator>
      <dc:date>2017-09-04T08:49:00Z</dc:date>
    </item>
  </channel>
</rss>

