<?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 error: DAX calculation to find sum of column values for Present &amp;amp; Previous Month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1996921#M44286</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;I used the above DAX you suggested for LastMonth_Clicks but I still got the same error below :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"A circular dependency was detected website(column),website [PMR],website[column]"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My Present month DAX is as below :-&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PMR =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUM ( 'Website'[Clicks] ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MONTH ( 'Website'[date] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;= MONTH ( TODAY () )&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not sure why I am getting circular dependency and how can i fix it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please suggest where I am going incorrect with my DAX. Say if&amp;nbsp; I want the&amp;nbsp; Present month and previous month sum for the clicks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Aug 2021 06:23:29 GMT</pubDate>
    <dc:creator>deb_power123</dc:creator>
    <dc:date>2021-08-04T06:23:29Z</dc:date>
    <item>
      <title>Circular dependency error: DAX calculation to find sum of column values for Present &amp; Previous Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1994470#M44190</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table say website, I want to form a DAX which can provide me the sum of the Ranking for the month July and June. August is the current month as of now. so i need the sum for last month(July) and previous of last month(June)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DAX calculation should get the&amp;nbsp; &lt;U&gt;&lt;STRONG&gt;&amp;nbsp;SUM of Ranking = 12 for July&lt;/STRONG&gt;&lt;/U&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;U&gt;&lt;STRONG&gt; SUM of Ranking = 4 for June&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using the below DAX query but it is throwing circular error . Can someone please suggest what modifications can i make to calculate the sum of Ranking for June month?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;For July the DAX calculation works fine :-&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;last_month_click =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( 'Website'[Clicks] ),&lt;BR /&gt;MONTH ( 'Website'[date] )&lt;BR /&gt;= MONTH ( TODAY () ) - 1&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;For June the DAX throws circular dependency error for below formula:-&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Previousof_last_month_click =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( 'Website'[Clicks] ),&lt;BR /&gt;MONTH ( 'Website'[date] )&lt;BR /&gt;= MONTH ( TODAY () ) - 2&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My data source input is as below :-&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Ranking&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Clicks&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;2000&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;02.08.2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp;2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;1200&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;01.08.2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;2300&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;01.08.2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; 3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;1000&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;31.07.2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&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R&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1300&lt;/TD&gt;&lt;TD&gt;25.06.2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 11:04:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1994470#M44190</guid>
      <dc:creator>deb_power123</dc:creator>
      <dc:date>2021-08-03T11:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency error: DAX calculation to find sum of column values for Present &amp; Previous Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1995919#M44238</link>
      <description>&lt;LI-CODE lang="markup"&gt;LastMonth_Clicks = CALCULATE(sum('Website'[Clicks]),PARALLELPERIOD('Website'[Date],-1,MONTH))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warning:&amp;nbsp; This takes into account the peculiar behavior of PARALLELPERIOD (and other functions) that will return the WHOLE period, not just a single day.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 17:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1995919#M44238</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-03T17:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency error: DAX calculation to find sum of column values for Present &amp; Previous Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1996921#M44286</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;I used the above DAX you suggested for LastMonth_Clicks but I still got the same error below :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"A circular dependency was detected website(column),website [PMR],website[column]"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My Present month DAX is as below :-&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PMR =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUM ( 'Website'[Clicks] ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MONTH ( 'Website'[date] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;= MONTH ( TODAY () )&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not sure why I am getting circular dependency and how can i fix it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please suggest where I am going incorrect with my DAX. Say if&amp;nbsp; I want the&amp;nbsp; Present month and previous month sum for the clicks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 06:23:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1996921#M44286</guid>
      <dc:creator>deb_power123</dc:creator>
      <dc:date>2021-08-04T06:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency error: DAX calculation to find sum of column values for Present &amp; Previous Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1997698#M44310</link>
      <description>&lt;P&gt;Use the same parallel period approach, with a zero offset.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 11:35:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1997698#M44310</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-04T11:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency error: DAX calculation to find sum of column values for Present &amp; Previous Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1997766#M44313</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp; I actually havent got any exposure on parallel period function.It will be great if you can provide me some lines of DAX for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will check if it is working for my scenario..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 12:01:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1997766#M44313</guid>
      <dc:creator>deb_power123</dc:creator>
      <dc:date>2021-08-04T12:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency error: DAX calculation to find sum of column values for Present &amp; Previous Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1997841#M44318</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;This_Month_Clicks = CALCULATE(sum('Website'[Clicks]),PARALLELPERIOD('Website'[Date],0,MONTH))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 12:40:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1997841#M44318</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-04T12:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Circular dependency error: DAX calculation to find sum of column values for Present &amp; Previous Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1999692#M44394</link>
      <description>&lt;P&gt;Thankyou it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 08:42:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Circular-dependency-error-DAX-calculation-to-find-sum-of-column/m-p/1999692#M44394</guid>
      <dc:creator>deb_power123</dc:creator>
      <dc:date>2021-08-05T08:42:33Z</dc:date>
    </item>
  </channel>
</rss>

