<?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 order the stacks in a stacked bar chart? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-order-the-stacks-in-a-stacked-bar-chart/m-p/3210851#M117095</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The legend sorting can be changed by chanhing the sort order of the column in your table. E.g.&lt;BR /&gt;&lt;BR /&gt;Data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;No sort:&lt;BR /&gt;(A to D)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sort by column2:&lt;BR /&gt;(D to A)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;So in your case you can create a new column with values for department statuses (e.g. numbers 1 to 5) and use that for sorting.&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 08:57:03 GMT</pubDate>
    <dc:creator>ValtteriN</dc:creator>
    <dc:date>2023-04-28T08:57:03Z</dc:date>
    <item>
      <title>How to order the stacks in a stacked bar chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-order-the-stacks-in-a-stacked-bar-chart/m-p/3210741#M117088</link>
      <description>&lt;P&gt;For context, I have a Power Bi report connecting to a Share Point list. For this one, I have a stacked bar chart containing the Status of each department. In my list, there are 2 columns "Status" and "Department". How can I order the stacks ina specific order based on this sequence, group by "Completed", "In-Progress", "Not Started", "On-Hold", "Cancelled".&lt;BR /&gt;&lt;BR /&gt;Here is the bar chart for reference.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 07:47:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-order-the-stacks-in-a-stacked-bar-chart/m-p/3210741#M117088</guid>
      <dc:creator>LyndonTomas</dc:creator>
      <dc:date>2023-04-28T07:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to order the stacks in a stacked bar chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-order-the-stacks-in-a-stacked-bar-chart/m-p/3210842#M117094</link>
      <description>&lt;P&gt;create a new column in your table called order&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;order = SWITCH( 
               TRUE(),
               "Completed",1,
               "In-Progress",2,
               "Not Started",3,
               "On-Hold",4,
               "Cancelled",5
)
                       &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after that, press on the column where you have the status and in the toolbar you will find "Sort Columb by",&lt;BR /&gt;&lt;BR /&gt;press it and choose the "order" column&lt;BR /&gt;&lt;BR /&gt;now go to your stacked report and sort by status ascending&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 08:54:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-order-the-stacks-in-a-stacked-bar-chart/m-p/3210842#M117094</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-04-28T08:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to order the stacks in a stacked bar chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-order-the-stacks-in-a-stacked-bar-chart/m-p/3210851#M117095</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The legend sorting can be changed by chanhing the sort order of the column in your table. E.g.&lt;BR /&gt;&lt;BR /&gt;Data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;No sort:&lt;BR /&gt;(A to D)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sort by column2:&lt;BR /&gt;(D to A)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;So in your case you can create a new column with values for department statuses (e.g. numbers 1 to 5) and use that for sorting.&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 08:57:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-order-the-stacks-in-a-stacked-bar-chart/m-p/3210851#M117095</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-04-28T08:57:03Z</dc:date>
    </item>
  </channel>
</rss>

