<?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: lookup same table for referenced field values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-same-table-for-referenced-field-values/m-p/3582623#M138220</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312939" data-lia-user-login="aherabit" class="lia-mention lia-mention-user"&gt;aherabit&lt;/a&gt;&amp;nbsp; does this work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR one =
    CALCULATE (
        MAX ( t1[epic link] ),
        FILTER ( ALL ( t1 ), t1[issue key] = MAX ( t1[issue key] ) )
    )
RETURN
    CONCATENATEX (
        FILTER ( ALL ( t1 ), t1[type] = "requirement" &amp;amp;&amp;amp; t1[epic link] = one ),
        t1[issue key],
        ",",
        t1[issue key]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2023 19:45:34 GMT</pubDate>
    <dc:creator>smpa01</dc:creator>
    <dc:date>2023-12-13T19:45:34Z</dc:date>
    <item>
      <title>lookup same table for referenced field values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-same-table-for-referenced-field-values/m-p/3582495#M138212</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;I have this DB&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;issue key&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;description&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;epic link&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s-2&lt;/TD&gt;&lt;TD&gt;defect&lt;/TD&gt;&lt;TD&gt;defect description s-2&lt;/TD&gt;&lt;TD&gt;s-20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s-3&lt;/TD&gt;&lt;TD&gt;requirement&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;requirement description s-3&lt;/TD&gt;&lt;TD&gt;s-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s-4&lt;/TD&gt;&lt;TD&gt;requirement&lt;/TD&gt;&lt;TD&gt;requirement description s-4&lt;/TD&gt;&lt;TD&gt;s-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s-15&lt;/TD&gt;&lt;TD&gt;epic&lt;/TD&gt;&lt;TD&gt;epic description s-15&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s-18&lt;/TD&gt;&lt;TD&gt;defect&lt;/TD&gt;&lt;TD&gt;description s-18&lt;/TD&gt;&lt;TD&gt;s-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s-20&lt;/TD&gt;&lt;TD&gt;epic&lt;/TD&gt;&lt;TD&gt;description s-20&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s-101&lt;/TD&gt;&lt;TD&gt;requirement&lt;/TD&gt;&lt;TD&gt;description s-101&lt;/TD&gt;&lt;TD&gt;s-20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s-205&lt;/TD&gt;&lt;TD&gt;defect&lt;/TD&gt;&lt;TD&gt;description s-201&lt;/TD&gt;&lt;TD&gt;s-15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to be able to find all 'defect' and display the 'requirement' that is linked to 'epic'.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;defect&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;epic&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;epic description&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;requirements&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s-2&lt;/TD&gt;&lt;TD&gt;s-20&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;description s-20&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; s-101&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s-18&lt;/TD&gt;&lt;TD&gt;s-15&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;epic description s-15&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; s-3, s-4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;s-205&lt;/TD&gt;&lt;TD&gt;s-15&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;epic description s-15&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; s-101&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other other words, for every 'defect' find the 'requirement' that has the same 'epic link'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any pointers.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 18:00:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-same-table-for-referenced-field-values/m-p/3582495#M138212</guid>
      <dc:creator>aherabit</dc:creator>
      <dc:date>2023-12-13T18:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: lookup same table for referenced field values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-same-table-for-referenced-field-values/m-p/3582623#M138220</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312939" data-lia-user-login="aherabit" class="lia-mention lia-mention-user"&gt;aherabit&lt;/a&gt;&amp;nbsp; does this work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR one =
    CALCULATE (
        MAX ( t1[epic link] ),
        FILTER ( ALL ( t1 ), t1[issue key] = MAX ( t1[issue key] ) )
    )
RETURN
    CONCATENATEX (
        FILTER ( ALL ( t1 ), t1[type] = "requirement" &amp;amp;&amp;amp; t1[epic link] = one ),
        t1[issue key],
        ",",
        t1[issue key]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 19:45:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-same-table-for-referenced-field-values/m-p/3582623#M138220</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2023-12-13T19:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: lookup same table for referenced field values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-same-table-for-referenced-field-values/m-p/3582693#M138223</link>
      <description>&lt;P&gt;thanks...but its getting stuck on the Filter arguments.&amp;nbsp; On the first t1[type].&amp;nbsp; &amp;nbsp;(parameter is not the correct type)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RETURN
    CONCATENATEX (
        FILTER ( ALL ( t1 ), t1[type] = "requirement" &amp;amp;&amp;amp; t1[epic link] = one ),
        t1[issue key],
        ",",
        t1[issue key]
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 13 Dec 2023 20:52:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-same-table-for-referenced-field-values/m-p/3582693#M138223</guid>
      <dc:creator>aherabit</dc:creator>
      <dc:date>2023-12-13T20:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: lookup same table for referenced field values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-same-table-for-referenced-field-values/m-p/3582735#M138226</link>
      <description>&lt;P&gt;If I were you, I will duplicate the same table and called it "Requirement". In the Requirement Table, filter row and only show rows with requirements, and remove duplicate, so that table will be something like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement/ epic link/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;s3 / s15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;s4 / s15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;s101 / s20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and then you just build relationship and pot everything into one "Matrix" visual, and filter Defect only.&lt;/P&gt;&lt;P&gt;By the way, your example is shoiwng unclear logic, defect s205 is referring to epic link s15, but epic link s15 is referring to requirement s3,s4 and s101.&lt;/P&gt;&lt;P&gt;(Anyway, the easiest method seesm to be duplicate the table, and clean it up, remove duplicate, remove irrelevant, and make it a Dimension table for you to feed data back into the fact table)&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 21:38:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-same-table-for-referenced-field-values/m-p/3582735#M138226</guid>
      <dc:creator>Tom_Y</dc:creator>
      <dc:date>2023-12-13T21:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: lookup same table for referenced field values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-same-table-for-referenced-field-values/m-p/3584637#M138297</link>
      <description>&lt;P&gt;Thank you, Tom.&lt;/P&gt;&lt;P&gt;This is the simplest approach and I used a 'referenced' duplicate function to get away from creating and entire table.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 21:10:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-same-table-for-referenced-field-values/m-p/3584637#M138297</guid>
      <dc:creator>aherabit</dc:creator>
      <dc:date>2023-12-14T21:10:06Z</dc:date>
    </item>
  </channel>
</rss>

