<?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: Lookupvalue() Returns Multiple Values Vetically in SAME table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682625#M80397</link>
    <description>&lt;P&gt;hi Tamerj, the table I have given as an example is just a small sample of a huge dataset with millions of rows, and I have multiple different Parent Products and Components. The Coalesce will not work&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 19:40:19 GMT</pubDate>
    <dc:creator>ChPetru</dc:creator>
    <dc:date>2022-08-04T19:40:19Z</dc:date>
    <item>
      <title>Lookupvalue() Returns Multiple Values Vetically in SAME table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682559#M80393</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am strunggling to find a way for this to work for 3h with no luck, it seems so simple but proves to be impossible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to bring the Total Component Price from ANY Component Line (2 - 5) to the Parent Line (1) in a new calculated column.&lt;/P&gt;&lt;P&gt;Tried lookupvalue: retrieve Total Component Price by looking the Line ID into Parent ID but it returns the multiple values error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried Calculate (Firstnonblank (Total Component Price, True()),FILTER(Table1,LineID=ParentID) returns blank since&amp;nbsp; filter on Parent ID = Line ID is not true for any row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1lq7_mkiSAg9Wdj2vA1J7zt2VBvT9U0LX/view?usp=sharing" target="_self"&gt;Here is the PBIX file&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with the syntax of calculating this in my table (no additional tables please).&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 21:28:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682559#M80393</guid>
      <dc:creator>ChPetru</dc:creator>
      <dc:date>2022-08-04T21:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue() Returns Multiple Values Vetically in SAME table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682571#M80394</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356641" data-lia-user-login="ChPetru" class="lia-mention lia-mention-user"&gt;ChPetru&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If this is the only blank value in the [Total Component Price] column then&lt;BR /&gt;New Column = COALESCE ( TableName[Total Component Price], MAX ( TableName[Total Component Price] ) )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 18:52:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682571#M80394</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-04T18:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue() Returns Multiple Values Vetically in SAME table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682625#M80397</link>
      <description>&lt;P&gt;hi Tamerj, the table I have given as an example is just a small sample of a huge dataset with millions of rows, and I have multiple different Parent Products and Components. The Coalesce will not work&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 19:40:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682625#M80397</guid>
      <dc:creator>ChPetru</dc:creator>
      <dc:date>2022-08-04T19:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue() Returns Multiple Values Vetically in SAME table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682636#M80399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356641" data-lia-user-login="ChPetru" class="lia-mention lia-mention-user"&gt;ChPetru&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you are creating a calculated column, I don't understand what is the complexity you're talking about. Should be simple, IF [ID] = 1 then MAX ( [&lt;SPAN&gt;Total Component Price] ) otherwise [Total Component Price] &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 19:50:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682636#M80399</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-04T19:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue() Returns Multiple Values Vetically in SAME table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682645#M80400</link>
      <description>&lt;P&gt;I have many more lines:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 19:56:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682645#M80400</guid>
      <dc:creator>ChPetru</dc:creator>
      <dc:date>2022-08-04T19:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue() Returns Multiple Values Vetically in SAME table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682661#M80403</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356641" data-lia-user-login="ChPetru" class="lia-mention lia-mention-user"&gt;ChPetru&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;New Column =
COALESCE (
    TableName[Total Component Price],
    CALCULATE (
        MAX ( TableName[Total Component Price] ),
        ALLEXCEPT ( TableName, TabeName[ParentID] )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Aug 2022 20:03:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682661#M80403</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-04T20:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue() Returns Multiple Values Vetically in SAME table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682727#M80416</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, it doesnt work, it brings the price at component level, not header:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1lq7_mkiSAg9Wdj2vA1J7zt2VBvT9U0LX/view?usp=sharing" target="_self"&gt;Here is the PBIX file&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 21:26:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2682727#M80416</guid>
      <dc:creator>ChPetru</dc:creator>
      <dc:date>2022-08-04T21:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue() Returns Multiple Values Vetically in SAME table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2691507#M81067</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356641" data-lia-user-login="ChPetru" class="lia-mention lia-mention-user"&gt;ChPetru&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't download the PBIX file because of the network.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. How about using up-fill in Power Query Editor?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here's the result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;2. Or new a calculated column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
VAR _lookupvalue =
    LOOKUPVALUE (
        'Table 2'[Total Component Price],
        'Table 2'[Parent ID], 'Table 2'[Line ID]
    )
VAR _result =
    IF (
        'Table 2'[Parent ID] &amp;lt;&amp;gt; BLANK (),
        'Table 2'[Total Component Price],
        _lookupvalue
    )
RETURN
    _result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;The PBIX file is attached for reference.&lt;/P&gt;&lt;P&gt;&lt;A href="https://m365x24147921-my.sharepoint.com/:u:/g/personal/admin_m365x24147921_onmicrosoft_com/EftFD6GSsHdFoOj5RIk0JKAB5BHobS93wZR-BI5UGsNodA?e=ty6xmZ" target="_blank" rel="nofollow noopener noreferrer"&gt;PBIX file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;changqing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 06:16:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-Returns-Multiple-Values-Vetically-in-SAME-table/m-p/2691507#M81067</guid>
      <dc:creator>changqing</dc:creator>
      <dc:date>2022-08-10T06:16:38Z</dc:date>
    </item>
  </channel>
</rss>

