<?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: Sort the columns according to their name. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sort-the-columns-according-to-their-name/m-p/3526728#M135514</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your&amp;nbsp; datamodel looks like, but one of ways to solve this is to have sort-order-column for the column that you want to use in the visualization. And then, sort it by the sort-order-column.&lt;BR /&gt;I hope the below link from Microsoft helps.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/consumer/end-user-change-sort?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;Change how a chart is sorted in a report - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 03:12:54 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2023-11-10T03:12:54Z</dc:date>
    <item>
      <title>Sort the columns according to their name.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sort-the-columns-according-to-their-name/m-p/3526545#M135507</link>
      <description>&lt;P&gt;Hello dear!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to order the columns of the chart according to the description of each one.&lt;BR /&gt;For example: the first column "Excellent", the second column "Great", the third "Good" and the fourth column "Terrible". I couldn't figure out a way other than the constants in the axis sort options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance if anyone can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 01:25:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sort-the-columns-according-to-their-name/m-p/3526545#M135507</guid>
      <dc:creator>amgelain</dc:creator>
      <dc:date>2023-11-10T01:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sort the columns according to their name.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sort-the-columns-according-to-their-name/m-p/3526728#M135514</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your&amp;nbsp; datamodel looks like, but one of ways to solve this is to have sort-order-column for the column that you want to use in the visualization. And then, sort it by the sort-order-column.&lt;BR /&gt;I hope the below link from Microsoft helps.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/consumer/end-user-change-sort?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;Change how a chart is sorted in a report - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 03:12:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sort-the-columns-according-to-their-name/m-p/3526728#M135514</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-11-10T03:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sort the columns according to their name.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sort-the-columns-according-to-their-name/m-p/3526768#M135516</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="563815" data-lia-user-login="amgelain" class="lia-mention lia-mention-user"&gt;amgelain&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a column could be sorted by other column.&lt;/P&gt;
&lt;P&gt;how:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-desktop" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-desktop&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would need a helper column.&amp;nbsp;supposing you have a data table like:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 96pt;" border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" style="height: 15.0pt; width: 48pt;"&gt;Grade&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Excellent&lt;/TD&gt;
&lt;TD align="right"&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Great&lt;/TD&gt;
&lt;TD align="right"&gt;20&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Good&lt;/TD&gt;
&lt;TD align="right"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Terrible&lt;/TD&gt;
&lt;TD align="right"&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try to&lt;/P&gt;
&lt;P&gt;1) create a dimensional grade table like:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 96pt;" border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" style="height: 15.0pt; width: 48pt;"&gt;Grade&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;GradeID&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Excellent&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Great&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Good&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Terrible&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) related data table and grade table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3)&amp;nbsp;sort the grade[grade] column by grade[gradeID]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4) plot a bar chart with grade[grade] with data[Count]. The axis shall be sorted as you wish, like:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 03:36:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sort-the-columns-according-to-their-name/m-p/3526768#M135516</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-10T03:36:37Z</dc:date>
    </item>
  </channel>
</rss>

