<?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 Circular dependency when sorting a column by another column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2968225#M99112</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a calculated column like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;interval&lt;/P&gt;&lt;P&gt;0-5&lt;/P&gt;&lt;P&gt;11-20&lt;/P&gt;&lt;P&gt;6-10&lt;/P&gt;&lt;P&gt;21-30&lt;/P&gt;&lt;P&gt;&amp;gt;30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to have the column interval like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;interval&lt;/P&gt;&lt;P&gt;0-5&lt;/P&gt;&lt;P&gt;6-10&lt;/P&gt;&lt;P&gt;11-20&lt;/P&gt;&lt;P&gt;21-30&lt;/P&gt;&lt;P&gt;&amp;gt;30&lt;/P&gt;&lt;P&gt;I use this column in a matirx, but I get the wrong order. I would like to have the cloumn in a matrix in this way&lt;/P&gt;&lt;P&gt;0-5&amp;nbsp;&amp;nbsp; 6-10&amp;nbsp; 11-20&amp;nbsp; 21-30&amp;nbsp; &amp;gt;31&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a second column (let's call this index) like if the interval is = 0-5 then 1, if interval = 6-10 then 2 etc. If I order the interval column by the idex column, I get the error cylic dependency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 14:05:25 GMT</pubDate>
    <dc:creator>Learner22</dc:creator>
    <dc:date>2022-12-14T14:05:25Z</dc:date>
    <item>
      <title>Circular dependency when sorting a column by another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2968225#M99112</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a calculated column like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;interval&lt;/P&gt;&lt;P&gt;0-5&lt;/P&gt;&lt;P&gt;11-20&lt;/P&gt;&lt;P&gt;6-10&lt;/P&gt;&lt;P&gt;21-30&lt;/P&gt;&lt;P&gt;&amp;gt;30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to have the column interval like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;interval&lt;/P&gt;&lt;P&gt;0-5&lt;/P&gt;&lt;P&gt;6-10&lt;/P&gt;&lt;P&gt;11-20&lt;/P&gt;&lt;P&gt;21-30&lt;/P&gt;&lt;P&gt;&amp;gt;30&lt;/P&gt;&lt;P&gt;I use this column in a matirx, but I get the wrong order. I would like to have the cloumn in a matrix in this way&lt;/P&gt;&lt;P&gt;0-5&amp;nbsp;&amp;nbsp; 6-10&amp;nbsp; 11-20&amp;nbsp; 21-30&amp;nbsp; &amp;gt;31&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a second column (let's call this index) like if the interval is = 0-5 then 1, if interval = 6-10 then 2 etc. If I order the interval column by the idex column, I get the error cylic dependency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 14:05:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2968225#M99112</guid>
      <dc:creator>Learner22</dc:creator>
      <dc:date>2022-12-14T14:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting a column by another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2968356#M99116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392303" data-lia-user-login="Learner22" class="lia-mention lia-mention-user"&gt;Learner22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;use the same dax code you used to created the column [interval] only replace the interval with integer number. For example replace "&lt;SPAN&gt;0-5" with 1 and "6-10" with 2 and so on. Then use the new column to sort by.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 14:59:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2968356#M99116</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-14T14:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting a column by another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2968422#M99120</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I want to keep the interval column, because the entries in the interval column refer to the days. Unfortunately, replacing "0-5" with 1 and so on doesn't help me.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 15:23:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2968422#M99120</guid>
      <dc:creator>Learner22</dc:creator>
      <dc:date>2022-12-14T15:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting a column by another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2968494#M99127</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392303" data-lia-user-login="Learner22" class="lia-mention lia-mention-user"&gt;Learner22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course you will keep it. Just create a new column&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 15:51:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2968494#M99127</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-14T15:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting a column by another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2969871#M99200</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392303" data-lia-user-login="Learner22" class="lia-mention lia-mention-user"&gt;Learner22&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. In Power query. Add Column – Index Column – From 1.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 =
SUMMARIZE('Table','Table'[interval],"Index",MINX(FILTER(ALL('Table'),'Table'[interval]=EARLIER('Table'[interval])),[Index]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. [interval] – Sort by column – [index].&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;4. Connect two relations with [interval].&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;5. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 06:56:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2969871#M99200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-15T06:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting a column by another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2970005#M99207</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for your help. There ist just one problem regarding your solution. I want to have the following created table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interval&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index&lt;/P&gt;&lt;P&gt;0-5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;6-10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;11-20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;21-30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&amp;gt;30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in your case, the interval 11-20 (and not 6-10) has the index number 2.&lt;/P&gt;&lt;P&gt;How can I assign the correct index number to the intervals?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 07:51:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2970005#M99207</guid>
      <dc:creator>Learner22</dc:creator>
      <dc:date>2022-12-15T07:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting a column by another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2970024#M99209</link>
      <description>&lt;P&gt;I was able to solve the problem. Thank you again for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 07:57:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/2970024#M99209</guid>
      <dc:creator>Learner22</dc:creator>
      <dc:date>2022-12-15T07:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting a column by another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/4676434#M179096</link>
      <description>&lt;P&gt;Landed here with the same issue, I prefer your solution rather than create another table&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 20:12:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-a-column-by-another-column/m-p/4676434#M179096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-01T20:12:51Z</dc:date>
    </item>
  </channel>
</rss>

