<?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 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency/m-p/1709186#M35275</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;
&lt;P&gt;if you have created a new column say Column B, using column A. Then you can not mark it as sort column of A&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column C = [Column A]&lt;/P&gt;
&lt;P&gt;Column B = &amp;lt;logic to sort using Column A&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you can mark Column B as Sort of Column C and use Column C.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to my video for this &lt;A href="https://www.youtube.com/watch?v=KK1zu4MBb-c" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=KK1zu4MBb-c&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 14:31:45 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-03-08T14:31:45Z</dc:date>
    <item>
      <title>Circular dependency</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency/m-p/1709134#M35273</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a report and I'm facing this issue "A&lt;SPAN&gt;&amp;nbsp;circular dependency has been detected: Calendar[Année-Mois], Calendar[Flag Mois-Années], Calendar [Année-Mois]. So the problem is displayed when I try to sort the column [Année-Mois] by using the column [Flag Mois-Années] below the capture :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here are the measures that I used. Do you have any tips? solutions?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Calendar = CALENDAR ("01/01/2020", "12/31/2021")&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Année = YEAR('Calendar'[Date])&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;Trimestre = QUARTER('Calendar'[Date])&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;Mois_nombre = MONTH('Calendar'[Date])&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Mois = FORMAT(DATE(2016,'Calendar'[Mois_nombre],1),"MMMM")&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV class="YQaNob"&gt;&lt;DIV class="tw-src-ltr"&gt;&lt;DIV class="oSioSc"&gt;&lt;DIV&gt;&lt;DIV class="g9WsWb"&gt;&lt;DIV class="tw-ta-container hide-focus-ring tw-nfl"&gt;&lt;PRE&gt;&lt;SPAN&gt;WeekdayFlag = if(weekday('Calendar'[Date]) = 1,0,if(weekday('Calendar'[Date])=7,0,1))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="tw-ta-container hide-focus-ring tw-nfl"&gt;&lt;PRE&gt;&lt;SPAN&gt;Année-Mois = CONCATENATE('Calendar'[Mois]," "&amp;amp;'Calendar'[Année])&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="iYB33c"&gt;&lt;DIV class="dlJLJe"&gt;&lt;DIV&gt;&lt;DIV class="U9URNb"&gt;&lt;DIV class="YQaNob"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="tw-src-ltr"&gt;&lt;DIV class="oSioSc"&gt;&lt;DIV&gt;&lt;DIV class="g9WsWb"&gt;&lt;DIV class="tw-ta-container hide-focus-ring tw-nfl"&gt;&lt;PRE&gt;&lt;SPAN&gt;Flag Month-Year = SWITCH ('Calendar' [Year-Month], "January 2020", 1, "January 2021", 2, "February 2020", 3, "February 2021", 4, "March 2020", 5 , "March 2021", 6, "April 2020", 7, "April 2021", 8, "May 2020", 9, "May 2021", 10, "June 2020", 11, "June 2021", 12, "July 2020", 13, "July 2021", 14, "August 2020", 15, "August 2021", 16, "September 2020", 17, "September 2021", 18, "October 2020", 19, " October 2021 ", 20," November 2020 ", 21," November 2021 ", 22," December 2020 ", 23," December 2021 ", 24)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="iYB33c"&gt;&lt;DIV class="tw-menu"&gt;&lt;SPAN&gt;Thank you very much,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 14:08:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency/m-p/1709134#M35273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-08T14:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency/m-p/1709186#M35275</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;
&lt;P&gt;if you have created a new column say Column B, using column A. Then you can not mark it as sort column of A&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column C = [Column A]&lt;/P&gt;
&lt;P&gt;Column B = &amp;lt;logic to sort using Column A&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you can mark Column B as Sort of Column C and use Column C.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to my video for this &lt;A href="https://www.youtube.com/watch?v=KK1zu4MBb-c" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=KK1zu4MBb-c&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 14:31:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency/m-p/1709186#M35275</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-08T14:31:45Z</dc:date>
    </item>
  </channel>
</rss>

