<?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: Calculated column using inactive relationship in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Calculated-column-using-inactive-relationship/m-p/3063238#M41052</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/506009"&gt;@sjpaq&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Perhaps you can try to directly extract the current table value as conditional to filter and get the correspond table records to stored into the variable.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Then you can and manually use this in the formulas without USERELATIONSHIP function. (I think the issue should related to USERELATIONSHIP function and it may generate the temp relationship mappings for the calculations)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://www.sqlbi.com/articles/understanding-circular-dependencies/" target="_blank"&gt;Understanding circular dependencies in DAX - SQLBI&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&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>Mon, 06 Feb 2023 08:20:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-06T08:20:41Z</dc:date>
    <item>
      <title>Calculated column using inactive relationship</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculated-column-using-inactive-relationship/m-p/3050766#M40967</link>
      <description>&lt;P&gt;I have 2 calculated columns in a table that use an inactive relationship to a date dimension table. The first column works fine and the second column gives a circular reference error.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First Column&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Breach Rpt Date = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Min&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;'cda datedim'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'cda breach'&lt;/SPAN&gt;&lt;SPAN&gt;[Breach Reporting Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'cda datedim'&lt;/SPAN&gt;&lt;SPAN&gt;[DateId]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN&gt;This returns the correct value, a date&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Second Column&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Breach Rpt Fiscal Year = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Min&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'cda datedim'&lt;/SPAN&gt;&lt;SPAN&gt;[FiscalYear]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'cda breach'&lt;/SPAN&gt;&lt;SPAN&gt;[Breach Reporting Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'cda datedim'&lt;/SPAN&gt;&lt;SPAN&gt;[DateId]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ))&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The 2 expressions are identical except that the column selected (&lt;FONT color="#FF0000"&gt;highlighted in red&lt;/FONT&gt;) in each is different. Why does the second give a circular reference error as in:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sjpaq_0-1675093169221.png" style="width: 631px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/863581iD3DA37469469EB28/image-dimensions/631x82?v=v2" width="631" height="82" role="button" title="sjpaq_0-1675093169221.png" alt="sjpaq_0-1675093169221.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;Thanks in advance&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Jan 2023 15:44:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculated-column-using-inactive-relationship/m-p/3050766#M40967</guid>
      <dc:creator>sjpaq</dc:creator>
      <dc:date>2023-01-30T15:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column using inactive relationship</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculated-column-using-inactive-relationship/m-p/3063238#M41052</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/506009"&gt;@sjpaq&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Perhaps you can try to directly extract the current table value as conditional to filter and get the correspond table records to stored into the variable.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Then you can and manually use this in the formulas without USERELATIONSHIP function. (I think the issue should related to USERELATIONSHIP function and it may generate the temp relationship mappings for the calculations)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://www.sqlbi.com/articles/understanding-circular-dependencies/" target="_blank"&gt;Understanding circular dependencies in DAX - SQLBI&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&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>Mon, 06 Feb 2023 08:20:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculated-column-using-inactive-relationship/m-p/3063238#M41052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-06T08:20:41Z</dc:date>
    </item>
  </channel>
</rss>

