<?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: Does SUMMARIZE Preserve data lineage? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-SUMMARIZE-Preserve-data-lineage/m-p/2887006#M93614</link>
    <description>&lt;P&gt;Makes sense.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;So, even if the relationship to the other table is on one of the columns included in the SUMMARIZE?&lt;/P&gt;</description>
    <pubDate>Sat, 05 Nov 2022 13:17:12 GMT</pubDate>
    <dc:creator>RobertSlattery</dc:creator>
    <dc:date>2022-11-05T13:17:12Z</dc:date>
    <item>
      <title>Does SUMMARIZE Preserve data lineage?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-SUMMARIZE-Preserve-data-lineage/m-p/2886814#M93596</link>
      <description>&lt;P&gt;Hi, I can create a virtual table using SUMMARIZE and use it as a filter in a measure...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR __types =
    SUMMARIZE ( 'Item Types', 'Item Types'[Item type] )
RETURN
    CALCULATE ( DISTINCTCOUNT ( 'Items'[Item Code] ), __types )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is a one to many relationship from Item Types to Items.&lt;/P&gt;&lt;P&gt;When I filter Item Type, the result of the measure is filtered and is equal to the correct value for the number of Items with that type.&lt;/P&gt;&lt;P&gt;To me, this means that Data Lineage is preserved.&lt;/P&gt;&lt;P&gt;But if I try to use RELATED...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR __items =
    SUMMARIZE ( 'Items', 'Items'[Item Code] )
RETURN
    COUNTX ( __items, RELATED ( 'Item Types'[Item type] ) )&lt;/LI-CODE&gt;&lt;P&gt;I get an error&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;The column 'Item Types[Item type]' either doesn't exist or doesn't have a relationship to any table available in the current context.&lt;/LI-CODE&gt;&lt;P&gt;If I do this, it works fine...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;COUNTX ( 'Items', RELATED ( 'Item Types'[Item type] ) )&lt;/LI-CODE&gt;&lt;P&gt;To me, this means RELATED is broken.&amp;nbsp; What is the logic here please?&lt;/P&gt;&lt;P&gt;I guess it means that the DL is preserved but, only in the direction of the filters (the subsequent DL) so, the sort of "reverse lookup" of RELATED does not work.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 05:15:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-SUMMARIZE-Preserve-data-lineage/m-p/2886814#M93596</guid>
      <dc:creator>RobertSlattery</dc:creator>
      <dc:date>2022-11-05T05:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Does SUMMARIZE Preserve data lineage?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-SUMMARIZE-Preserve-data-lineage/m-p/2886908#M93604</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="33268" data-lia-user-login="RobertSlattery" class="lia-mention lia-mention-user"&gt;RobertSlattery&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not broken. You are all always too quick to jump to (wrong) conclusions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Have a look at the documentation of the RELATED function:&amp;nbsp;&lt;A href="https://dax.guide/related/" target="_blank"&gt;RELATED – DAX Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And take a look at the examples. &lt;STRONG&gt;To use RELATED you have to have a row context on a real table in the model&lt;/STRONG&gt;. The problem you've got is that SUMMARIZE can return many rows from the base table (that have the same value(s) of the summarized column), not just one that is required for RELATED to work.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 09:21:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-SUMMARIZE-Preserve-data-lineage/m-p/2886908#M93604</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-11-05T09:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Does SUMMARIZE Preserve data lineage?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-SUMMARIZE-Preserve-data-lineage/m-p/2886982#M93610</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="33268" data-lia-user-login="RobertSlattery" class="lia-mention lia-mention-user"&gt;RobertSlattery&lt;/a&gt;&amp;nbsp;RELATED function only works on tables that can be expanded(Table Expansion/Expanded tables) from many to one side , when you use SUMMARIZE to Group BY the data lineage is still there but the new table isn't connected through a physical relationship to other tables due to which it can't expand to other tables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 12:25:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-SUMMARIZE-Preserve-data-lineage/m-p/2886982#M93610</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2022-11-05T12:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Does SUMMARIZE Preserve data lineage?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-SUMMARIZE-Preserve-data-lineage/m-p/2887006#M93614</link>
      <description>&lt;P&gt;Makes sense.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;So, even if the relationship to the other table is on one of the columns included in the SUMMARIZE?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 13:17:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-SUMMARIZE-Preserve-data-lineage/m-p/2887006#M93614</guid>
      <dc:creator>RobertSlattery</dc:creator>
      <dc:date>2022-11-05T13:17:12Z</dc:date>
    </item>
  </channel>
</rss>

