<?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: Iterator + related function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterator-related-function/m-p/2852289#M91503</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458200" data-lia-user-login="Daniel29195" class="lia-mention lia-mention-user"&gt;Daniel29195&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are my understand about your question:&lt;/P&gt;
&lt;P&gt;Q1:&lt;SPAN&gt;Does using related function inside an iterator create a transition context ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The RELATED() function just retun&amp;nbsp;&lt;SPAN&gt;a related value from another table.&amp;nbsp;The RELATED function needs a row context; therefore the function often uses in the calculated column and we can use SUMX, SELECTCOLUMNS function to create a row context.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Q2:Does the nested iterator knows the location of&amp;nbsp; the outer iterator&amp;nbsp; ans thus the nested iterator will be filtered based on the row context of the first iterator ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For nested iterators, this is mainly to look at the order of evaluation.&amp;nbsp;Usually iterators such as FILTER(), SUMX() and other functions are iteration functions, when we use nested iterations, such as SUMX(FILTER()), then generally the FILTER() function is evaluated first, and then a table is returned, and then SUMX() iteration is performed on the generated table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2022 01:27:01 GMT</pubDate>
    <dc:creator>v-yueyunzh-msft</dc:creator>
    <dc:date>2022-10-20T01:27:01Z</dc:date>
    <item>
      <title>Iterator + related function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterator-related-function/m-p/2852183#M91492</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Im confused about something , i would appreciate if someone demystify it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First question :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does using related function inside an iterator create a transition context ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second question :&amp;nbsp;&lt;/P&gt;&lt;P&gt;When creating nested iterators , first iterator im on row number 1 ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the nested iterator knows the location of&amp;nbsp; the outer iterator&amp;nbsp; ans thus the nested iterator will be filtered based on the row context of the first iterator ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope my 2 questions makes sense&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any explanation&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 23:04:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterator-related-function/m-p/2852183#M91492</guid>
      <dc:creator>Daniel29195</dc:creator>
      <dc:date>2022-10-19T23:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Iterator + related function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterator-related-function/m-p/2852289#M91503</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458200" data-lia-user-login="Daniel29195" class="lia-mention lia-mention-user"&gt;Daniel29195&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are my understand about your question:&lt;/P&gt;
&lt;P&gt;Q1:&lt;SPAN&gt;Does using related function inside an iterator create a transition context ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The RELATED() function just retun&amp;nbsp;&lt;SPAN&gt;a related value from another table.&amp;nbsp;The RELATED function needs a row context; therefore the function often uses in the calculated column and we can use SUMX, SELECTCOLUMNS function to create a row context.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Q2:Does the nested iterator knows the location of&amp;nbsp; the outer iterator&amp;nbsp; ans thus the nested iterator will be filtered based on the row context of the first iterator ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For nested iterators, this is mainly to look at the order of evaluation.&amp;nbsp;Usually iterators such as FILTER(), SUMX() and other functions are iteration functions, when we use nested iterations, such as SUMX(FILTER()), then generally the FILTER() function is evaluated first, and then a table is returned, and then SUMX() iteration is performed on the generated table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 01:27:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterator-related-function/m-p/2852289#M91503</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-10-20T01:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Iterator + related function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterator-related-function/m-p/2853197#M91561</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i meant in my questions,&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is happening behind the scenes&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the 2 questions&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like does the table in the inner iteration gets filtered by the row value of the first iteration ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, then what is&amp;nbsp; the logic ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 09:03:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterator-related-function/m-p/2853197#M91561</guid>
      <dc:creator>Daniel29195</dc:creator>
      <dc:date>2022-10-20T09:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Iterator + related function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterator-related-function/m-p/2854654#M91702</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458200" data-lia-user-login="Daniel29195" class="lia-mention lia-mention-user"&gt;Daniel29195&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I understand it, the inner iteration function returns a new table, and the outer iteration continues to iterate over the new table generated internally.&lt;/P&gt;
&lt;P&gt;For more information, you can refer to :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Iteration-in-DAX/ba-p/1223311" target="_blank"&gt;Iteration in DAX - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 01:20:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Iterator-related-function/m-p/2854654#M91702</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-10-21T01:20:26Z</dc:date>
    </item>
  </channel>
</rss>

