<?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: A circular dependency was detected error on returning value from a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/2241719#M53691</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="345064" data-lia-user-login="abdmajidnor" class="lia-mention lia-mention-user"&gt;abdmajidnor&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Did ValtteriN&amp;nbsp;'s suggestions help with your scenario? if that is the case, you can consider Kudo or accept his suggestions to help others who faced similar requirements.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If that also doesn't help, please share more detailed information to help us clarify your scenario to test.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 06:06:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-12-16T06:06:52Z</dc:date>
    <item>
      <title>A circular dependency was detected error on returning value from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/2234016#M53347</link>
      <description>&lt;P&gt;Hi, I'm new to PowerBI. I'm currently calculating using DAX to return the latest data from a table base on its ID, UniqueID and latest date .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;At first, everything was fine, I managed to return a value from other table. As I proceed to other column, There's an error message about Circular Dependency. Is there any way to avoid the error? Here's the sample code from my data.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;C34 = 

VAR LastDayC34 =
    CALCULATE (
        MAX ( 'TX - Score Table'[Created] ),
        NOT ISBLANK ( 'TX - Score Table'[C34] )
    )

VAR LastUniqueIDC34 = 
CALCULATE(
    MAX('TX - Score Table'[ID]),
    NOT ISBLANK('TX - Score Table'[C34]))

VAR LastIdC34 =
    CALCULATE (
        MAX ( 'TX - Score Table'[tag_id]),
        'TX - Score Table'[Created] = LastDayC34,
        'TX - Score Table'[ID] = LastUniqueIDC34,
        NOT ISBLANK ( 'TX - Score Table'[C34] )
    )
  
RETURN

CALCULATE (MAX('TX - Score Table'[C34]), 'TX - Score Table'[tag_id] = LastIdC34,'TX - Score Table'[ID]=LastUniqueIDC34)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;C41 = VAR LastDayC41 =
    CALCULATE (
        MAX ( 'TX - Score Table'[Created] ),
        NOT ISBLANK ( 'TX - Score Table'[C41] )
    )

VAR LastUniqueIDC41 = 
CALCULATE(
    MAX('TX - Score Table'[ID]),
    NOT ISBLANK('TX - Score Table'[C41]))

VAR LastIdC41 =
    CALCULATE (
        MAX ( 'TX - Score Table'[tag_id]),
        'TX - Score Table'[Created] = LastDayC41,
        'TX - Score Table'[ID] = LastUniqueIDC41,
        NOT ISBLANK ( 'TX - Score Table'[C41] )
    )
  
RETURN

CALCULATE (MAX('TX - Score Table'[C41]), 'TX - Score Table'[tag_id] = LastIdC41,'TX - Score Table'[ID]=LastUniqueIDC41)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I tried using other formula such as FILTER and MAXX but it was not sucessful.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for the Tips and Advice &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:24:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/2234016#M53347</guid>
      <dc:creator>abdmajidnor</dc:creator>
      <dc:date>2021-12-12T04:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: A circular dependency was detected error on returning value from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/2234054#M53348</link>
      <description>&lt;P&gt;Are these calculated columns? If so what table are they being built in?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide a screen shot of the model?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:07:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/2234054#M53348</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2021-12-12T07:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: A circular dependency was detected error on returning value from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/2234129#M53349</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The problem you are describing seems to be that you have two calculated columns containing calculate. This will cause issues due to context transition. This post by SQLBI explains this marvelously: "&lt;A href="https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/&amp;quot;" target="_blank"&gt;https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/"&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The solution to your issue is to use ALLEXCEPT() within your CALCULATE.&lt;BR /&gt;&lt;BR /&gt;I hope this helps to solve your issue and if it does consider accepting this as a solution!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:24:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/2234129#M53349</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2021-12-12T10:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: A circular dependency was detected error on returning value from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/2234718#M53356</link>
      <description>&lt;P&gt;Here's my sample data, errors on circular dependency and desired value.&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 05:10:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/2234718#M53356</guid>
      <dc:creator>abdmajidnor</dc:creator>
      <dc:date>2021-12-13T05:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: A circular dependency was detected error on returning value from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/2241719#M53691</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="345064" data-lia-user-login="abdmajidnor" class="lia-mention lia-mention-user"&gt;abdmajidnor&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Did ValtteriN&amp;nbsp;'s suggestions help with your scenario? if that is the case, you can consider Kudo or accept his suggestions to help others who faced similar requirements.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If that also doesn't help, please share more detailed information to help us clarify your scenario to test.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 06:06:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/2241719#M53691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-16T06:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: A circular dependency was detected error on returning value from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/4255432#M168574</link>
      <description>&lt;P&gt;Definitely didn't solve it. SQLBI did, as they so often do, but asking for kudos for a link is hardly a solution.&lt;BR /&gt;&lt;BR /&gt;Here are a couple of links that actually work:&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=m-qhcDcNKrE&amp;amp;ab_channel=SQLBI" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=m-qhcDcNKrE&amp;amp;ab_channel=SQLBI&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/" target="_blank" rel="noopener"&gt;Avoiding circular dependency errors in DAX - SQLBI&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Definitely not asking to be marked as a solution since all I did was point those interested to the actual solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 04:16:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-circular-dependency-was-detected-error-on-returning-value-from/m-p/4255432#M168574</guid>
      <dc:creator>polymathy2017</dc:creator>
      <dc:date>2024-10-24T04:16:38Z</dc:date>
    </item>
  </channel>
</rss>

