<?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 within the same table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236290#M53421</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343948" data-lia-user-login="IvanS" class="lia-mention lia-mention-user"&gt;IvanS&lt;/a&gt;&amp;nbsp; can you provide a sample pbix?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 18:01:08 GMT</pubDate>
    <dc:creator>smpa01</dc:creator>
    <dc:date>2021-12-13T18:01:08Z</dc:date>
    <item>
      <title>LOOKUP within the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2235966#M53402</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I browsed several sources about how to lookup value within the same table, however any of those met my requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one huge agile table that consists of stories (sub-tasks) and epics (main tasks/milestones). Every story is assigned under epic using the Epic Link reference. I would like to create calculated column/measure that will state the name of Epic on the story level. So basically, when the Epic Link value matches with Issue_Unique Key, the Epic name value will be copied into Story Epic Name column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Issue_Unique Key&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Issue_Type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Issue Summary&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Epic Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Epic Link&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Story Epic Name&lt;/STRONG&gt;&amp;nbsp;&lt;EM&gt;(desired result using DAX)&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DEV-1&lt;/TD&gt;&lt;TD&gt;Epic&lt;/TD&gt;&lt;TD&gt;Epic 1 Main task&lt;/TD&gt;&lt;TD&gt;Epic 1 Name&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DEV-2&lt;/TD&gt;&lt;TD&gt;Story&lt;/TD&gt;&lt;TD&gt;Story sub-task&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;DEV-1&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;Epic 1 Name&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DEV-3&lt;/TD&gt;&lt;TD&gt;Story&lt;/TD&gt;&lt;TD&gt;Story sub-task&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;DEV-1&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;Epic 1 Name&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DEV-4&lt;/TD&gt;&lt;TD&gt;Epic&lt;/TD&gt;&lt;TD&gt;Epic 2 Main task&lt;/TD&gt;&lt;TD&gt;Epic 2 Name&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DEV-5&lt;/TD&gt;&lt;TD&gt;Story&lt;/TD&gt;&lt;TD&gt;Story sub-task&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;DEV-4&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;Epic 2 Name&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions are much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 15:37:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2235966#M53402</guid>
      <dc:creator>IvanS</dc:creator>
      <dc:date>2021-12-13T15:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUP within the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236012#M53405</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Like you suggested Lookup is the way to go here is my DAX:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Epic = &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Epics[Epic Name]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Epics[ssue_Unique Key]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Epics[Epic Link]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;I am not sure if I am missing something, but the column returned matches your desired outcome:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&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;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Dec 2021 15:49:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236012#M53405</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2021-12-13T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUP within the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236075#M53408</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, this is pulling the data into table - yet I need to add it into Matrix - for hiding the data on aggregated level in matrix I am using measure that consists of ISFILTERED.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISFILTERED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Issues[ISSUE_KEY]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Issues[ISSUE_CURRENT_TYPE_NAME]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When creating your function as column, Power BI is automatically setting First with options Last, Count &amp;amp; Distinct count. Is there any way how to hide this information (or at least to write your function as measure)?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main issue with measures is that they cannot work with duplicate values and giving the below error.&lt;/P&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>Mon, 13 Dec 2021 16:11:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236075#M53408</guid>
      <dc:creator>IvanS</dc:creator>
      <dc:date>2021-12-13T16:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUP within the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236105#M53410</link>
      <description>&lt;P&gt;I see, for a measure MAX() or SELECTEDVALUE() should solve the issue:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 16:20:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236105#M53410</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2021-12-13T16:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUP within the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236146#M53412</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343948" data-lia-user-login="IvanS" class="lia-mention lia-mention-user"&gt;IvanS&lt;/a&gt;&amp;nbsp; you can use this measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _epicName =
    MAX ( 'Table 1'[Epic Link] )
RETURN
    CALCULATE (
        MAX ( 'Table 1'[Epic Name] ),
        FILTER ( ALL ( 'Table 1' ), 'Table 1'[Issue_Unique Key] = _epicName )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 16:34:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236146#M53412</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-12-13T16:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUP within the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236251#M53419</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24978" data-lia-user-login="smpa01" class="lia-mention lia-mention-user"&gt;smpa01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for some reason, the function is not working in measure. Please find below - the names in official file are a bit different. You can see that calculated column is getting the Epic name however measure is blank (except one line from the list).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 17:34:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236251#M53419</guid>
      <dc:creator>IvanS</dc:creator>
      <dc:date>2021-12-13T17:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUP within the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236290#M53421</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343948" data-lia-user-login="IvanS" class="lia-mention lia-mention-user"&gt;IvanS&lt;/a&gt;&amp;nbsp; can you provide a sample pbix?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 18:01:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2236290#M53421</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-12-13T18:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUP within the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2237510#M53478</link>
      <description>&lt;P&gt;I found the root cause of the issue - there was bilateral relationship between 2 tables which are part of matrix table. After change to sigle filterring, the both measures are working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will mark measure from&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;as solution as it is not that much performance consuming. However thank you too for help!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 09:00:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUP-within-the-same-table/m-p/2237510#M53478</guid>
      <dc:creator>IvanS</dc:creator>
      <dc:date>2021-12-14T09:00:44Z</dc:date>
    </item>
  </channel>
</rss>

