<?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: Looking for value in 2nd table based on the value of 1st table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4128785#M163965</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="523197" data-lia-user-login="al1981" class="lia-mention lia-mention-user"&gt;al1981&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try using LOOKUPVALUE() function to create a new column. Hope it helps.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Plan Value = 
IF(
    'Event attendees table'[Attendee Type] = "Worker",
    LOOKUPVALUE('Plan Table'[Plan], 'Plan Table'[Account ID], 'Event attendees table'[Account ID]),
    LOOKUPVALUE('Plan Table'[Plan], 'Plan Table'[Account ID], 'Event attendees table'[Attendee Parent])
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jarvis Tang&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 03:46:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-02T03:46:35Z</dc:date>
    <item>
      <title>Looking for value in 2nd table based on the value of 1st table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4125099#M163802</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would kindly ask for help...&lt;/P&gt;&lt;P&gt;I have list of event attendees, and for each attendee there is quater plan/target (A,B). In most of the cases, we are looking for the plan value of the attendee, but in same cases, if this attendee is manager, we would like to get value for its parent (company). What would be best scenario? This bellow is very simply table, just to see the situation. Would be possible somehow to get me out?&amp;nbsp;&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>Thu, 29 Aug 2024 13:34:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4125099#M163802</guid>
      <dc:creator>al1981</dc:creator>
      <dc:date>2024-08-29T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for value in 2nd table based on the value of 1st table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4125160#M163807</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="523197" data-lia-user-login="al1981" class="lia-mention lia-mention-user"&gt;al1981&lt;/a&gt;&amp;nbsp;,&amp;nbsp;Ensure that the tables are properly related. Typically, you would have relationships like:&lt;/P&gt;
&lt;P&gt;"Event Attendees table" linked to "Plan Table" via an attendee ID or similar key.&lt;BR /&gt;"Event Attendees table" linked to "Date Table" via a date key.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Add a Calculated Column: Create a calculated column in the "Event Attendees table" to determine the plan&lt;/P&gt;
&lt;P&gt;value based on whether the attendee is a manager or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;PlanValue = &lt;BR /&gt;IF (&lt;BR /&gt;'Event Attendees table'[IsManager] = TRUE,&lt;BR /&gt;RELATED('Plan Table'[CompanyPlanValue]),&lt;BR /&gt;RELATED('Plan Table'[AttendeePlanValue])&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 14:05:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4125160#M163807</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-08-29T14:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for value in 2nd table based on the value of 1st table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4126812#M163873</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;almost all is clear, jsut plan table not: i have worker and company name in same column, same goes for plan. Is there any change to keep it like this as i am using this model for other prepared reports already...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like someting like this: if Event attendee is Manager then look for Plan value for Attendee Parent in the plan...&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 10:42:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4126812#M163873</guid>
      <dc:creator>al1981</dc:creator>
      <dc:date>2024-08-30T10:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for value in 2nd table based on the value of 1st table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4128785#M163965</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="523197" data-lia-user-login="al1981" class="lia-mention lia-mention-user"&gt;al1981&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try using LOOKUPVALUE() function to create a new column. Hope it helps.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Plan Value = 
IF(
    'Event attendees table'[Attendee Type] = "Worker",
    LOOKUPVALUE('Plan Table'[Plan], 'Plan Table'[Account ID], 'Event attendees table'[Account ID]),
    LOOKUPVALUE('Plan Table'[Plan], 'Plan Table'[Account ID], 'Event attendees table'[Attendee Parent])
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jarvis Tang&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 03:46:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4128785#M163965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-02T03:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for value in 2nd table based on the value of 1st table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4129443#M163995</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many tnx for this info! It is not exacly going into my data model (many tables behind, including AllAccounts - next to attendees table, plan table), but i dupicated Event attendees table, for Attendee name and Attendee ID i replaced with Parent name and Parent ID and of course removed duplicates and some other unusefull columns! All works like a charm now - but your help really inspired me how to turn this arround ! Many tnx!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 11:18:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4129443#M163995</guid>
      <dc:creator>al1981</dc:creator>
      <dc:date>2024-09-02T11:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for value in 2nd table based on the value of 1st table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4129447#M163996</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and your lookupvalue is very good some other project i have - so many tnx&amp;nbsp; anyway!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 11:20:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4129447#M163996</guid>
      <dc:creator>al1981</dc:creator>
      <dc:date>2024-09-02T11:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for value in 2nd table based on the value of 1st table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4130713#M164070</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="523197" data-lia-user-login="al1981" class="lia-mention lia-mention-user"&gt;al1981&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your kind words.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my reply helps you, please consider acceptng it as the solution. This will help others who might encounter similar problems benefit from the information as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jarvis Tang&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 07:47:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-value-in-2nd-table-based-on-the-value-of-1st-table/m-p/4130713#M164070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-03T07:47:34Z</dc:date>
    </item>
  </channel>
</rss>

