<?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: DAX Lookup Value in another table with filter (calculated column) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Lookup-Value-in-another-table-with-filter-calculated-column/m-p/4127780#M163931</link>
    <description>&lt;P&gt;If you have some flex on the exact layout, you should be able to do it with minimal DAX.&amp;nbsp;&lt;BR /&gt;add a matrix&amp;nbsp;&lt;/P&gt;&lt;P&gt;put project[proj id] onto rows&lt;/P&gt;&lt;P&gt;put task[phase] onto columns&lt;/P&gt;&lt;P&gt;Write this measure and add it to values&lt;/P&gt;&lt;P&gt;date range = SELECTEDVALUE(Task[startdate]) &amp;amp; " - " &amp;amp; SELECTEDVALUE(Task[enddate])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with your current data, the 3 phases will not sort correctly. You could add a sort order column to fix this. If it were me, I would create a new phase dim table in power query and add a sort column, 1 for planning, 2 for design, 3 for execute. Load it into the model join it to the task table, then sort the dim text column by the sort column. Replace the phase column in the visual (remove the phase from task and add phase from the dim table}&lt;/P&gt;</description>
    <pubDate>Sat, 31 Aug 2024 07:02:32 GMT</pubDate>
    <dc:creator>MattAllington</dc:creator>
    <dc:date>2024-08-31T07:02:32Z</dc:date>
    <item>
      <title>DAX Lookup Value in another table with filter (calculated column)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Lookup-Value-in-another-table-with-filter-calculated-column/m-p/4127726#M163928</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I have the following tables, relationships and data:&lt;BR /&gt;Project:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Task:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ProjectPhaseSummary:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&lt;P&gt;I want to add calculated columns to "ProjectPhaseSummary", so that I end up with the following:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hoping someone can please suggest the most accepted way of generating the information above with DAX (preferably using CALCULATE).&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Ben.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2024 04:30:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Lookup-Value-in-another-table-with-filter-calculated-column/m-p/4127726#M163928</guid>
      <dc:creator>bhalicki</dc:creator>
      <dc:date>2024-08-31T04:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Lookup Value in another table with filter (calculated column)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Lookup-Value-in-another-table-with-filter-calculated-column/m-p/4127780#M163931</link>
      <description>&lt;P&gt;If you have some flex on the exact layout, you should be able to do it with minimal DAX.&amp;nbsp;&lt;BR /&gt;add a matrix&amp;nbsp;&lt;/P&gt;&lt;P&gt;put project[proj id] onto rows&lt;/P&gt;&lt;P&gt;put task[phase] onto columns&lt;/P&gt;&lt;P&gt;Write this measure and add it to values&lt;/P&gt;&lt;P&gt;date range = SELECTEDVALUE(Task[startdate]) &amp;amp; " - " &amp;amp; SELECTEDVALUE(Task[enddate])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with your current data, the 3 phases will not sort correctly. You could add a sort order column to fix this. If it were me, I would create a new phase dim table in power query and add a sort column, 1 for planning, 2 for design, 3 for execute. Load it into the model join it to the task table, then sort the dim text column by the sort column. Replace the phase column in the visual (remove the phase from task and add phase from the dim table}&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2024 07:02:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Lookup-Value-in-another-table-with-filter-calculated-column/m-p/4127780#M163931</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2024-08-31T07:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Lookup Value in another table with filter (calculated column)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Lookup-Value-in-another-table-with-filter-calculated-column/m-p/4128070#M163944</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="249689" data-lia-user-login="bhalicki" class="lia-mention lia-mention-user"&gt;bhalicki&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an example:&lt;/P&gt;
&lt;P&gt;PlanningStarDate =&lt;BR /&gt;MAXX (&lt;BR /&gt;FILTER ( Project, Project[ProjectId] = ProjectPhaseSummary[ProjectId] ),&lt;BR /&gt;MAXX (&lt;BR /&gt;FILTER ( RELATEDTABLE ( Task ), Task[Phase] = "Planning" ),&lt;BR /&gt;Task[StartDate]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2024 20:59:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Lookup-Value-in-another-table-with-filter-calculated-column/m-p/4128070#M163944</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-08-31T20:59:16Z</dc:date>
    </item>
  </channel>
</rss>

