<?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: Circular dependency when sorting by column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1503007#M29099</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="147069" data-lia-user-login="AdamRobC" class="lia-mention lia-mention-user"&gt;AdamRobC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When do you get the circular dependency error, when creating the calc column or when trying to "Sort by"?&lt;/P&gt;
&lt;P&gt;Can you show the full table (columns)?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2020 19:18:16 GMT</pubDate>
    <dc:creator>AlB</dc:creator>
    <dc:date>2020-11-18T19:18:16Z</dc:date>
    <item>
      <title>Circular dependency when sorting by column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1502976#M29097</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to sort my month names by a calculated column based on the previous 12 month period. I have got the values populating in a suitable way using relative months to the current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MaxRelativeMonth = CALCULATE(MAX('Calendar'[RelativeMonth]),FILTER('Calendar','Calendar'[Monthly Reporting Period]="TY" &amp;amp;&amp;amp; 'Calendar'[Month Name]='Month Ordering'[Month Name]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this keeps resulting in circular dependency errors. Any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 18:59:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1502976#M29097</guid>
      <dc:creator>AdamRobC</dc:creator>
      <dc:date>2020-11-18T18:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting by column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1503007#M29099</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="147069" data-lia-user-login="AdamRobC" class="lia-mention lia-mention-user"&gt;AdamRobC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When do you get the circular dependency error, when creating the calc column or when trying to "Sort by"?&lt;/P&gt;
&lt;P&gt;Can you show the full table (columns)?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 19:18:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1503007#M29099</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-11-18T19:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting by column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1503043#M29101</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;The error occurs when trying to sort Month Name by MaxRelativeMonth. That is the entire table, there are only 3 columns.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 19:40:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1503043#M29101</guid>
      <dc:creator>AdamRobC</dc:creator>
      <dc:date>2020-11-18T19:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting by column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1503051#M29102</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="147069" data-lia-user-login="AdamRobC" class="lia-mention lia-mention-user"&gt;AdamRobC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok, but you are using the Calendar table in the calculation as well.&lt;/P&gt;
&lt;P&gt;Can you create that sorting column in Power query instead? That should avoid the issue.&lt;/P&gt;
&lt;P&gt;Otherwise I'd need to see the calendar table its columns) and the its relationship with 'Month ordering'. If you can share the pbix, much better&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&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>Wed, 18 Nov 2020 19:52:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1503051#M29102</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-11-18T19:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting by column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1503621#M29114</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="147069" data-lia-user-login="AdamRobC" class="lia-mention lia-mention-user"&gt;AdamRobC&lt;/a&gt; , As you are using month name in creating the sort column you can not use that as a sort column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a column&lt;/P&gt;
&lt;P&gt;Month Name 1 =[Month Name]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MaxRelativeMonth = CALCULATE(MAX('Calendar'[RelativeMonth]),FILTER('Calendar','Calendar'[Monthly Reporting Period]="TY" &amp;amp;&amp;amp; 'Calendar'[Month Name]='Month Ordering'[Month Name]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sort Month Name 1 on the new sort column and use that is the visual. Do rename as per need&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 02:46:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1503621#M29114</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-19T02:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency when sorting by column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1505089#M29154</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;thanks, that worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 13:35:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-when-sorting-by-column/m-p/1505089#M29154</guid>
      <dc:creator>AdamRobC</dc:creator>
      <dc:date>2020-11-19T13:35:19Z</dc:date>
    </item>
  </channel>
</rss>

