<?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: Filter Based on another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3187053#M115430</link>
    <description>&lt;P&gt;Thanks for this. I was messing around with the relationships and was able to get it workign with a relationship directly to the project table from tasks instead of through the milestone table. I'll try this out though and see if it would work without changing the relationships.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2023 18:36:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-13T18:36:39Z</dc:date>
    <item>
      <title>Filter Based on another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3184359#M115236</link>
      <description>&lt;P&gt;Here is the matrix visual I am creating. The problem is that my measure for Next Milestone Budget is returning blanks.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the model view of the tables in question to create this visual. ProjectID comes from #Success - Project List, - Next Milestone Due Date is a measure based in DimMilestone, relying on only data from that table.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the DAX for Next Milestone Budget. Milestone Date VAR is the same code to generate - Next Milestone Due Date in the visual above.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Budget comes from #Support - Tasks, but I need to filter that table based on the next milestone date.&lt;BR /&gt;&lt;BR /&gt;If I leave out that second filter in the calculate, I get a sum of all budget points for the project of the task type I'm filtering for. But when I try to add the filter for Milestone, it returns all blanks.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- Next Milestone Budget = 
VAR 
MilestoneDate = 
    CALCULATE(
        MIN(DimMilestone[EndDate]),
        DimMilestone[MilestoneStatus] = "Pending"
    )

RETURN 
CALCULATE(
    SUM('#Support - Tasks'[TaskBudget]),
    '#Support - Tasks'[TaskType] = "Software Minor Update",
    '#Support - Tasks'[MilestoneEndDate] = MilestoneDate
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated, thanks very much in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 14:53:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3184359#M115236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-12T14:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3184907#M115271</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;You have been able to help me out with questions before, would you be willing to take a look at this? Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 20:41:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3184907#M115271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-12T20:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3185380#M115296</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What are the columns involved in th erelationships? Please provide details.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 05:42:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3185380#M115296</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-13T05:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3186340#M115367</link>
      <description>&lt;P&gt;Thanks for responding.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ProjectMilestoneEndDate is a unique column generated from combining the project id,&amp;nbsp; milestone name, and milestone end date as the milestones don't have a unique ID.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&lt;P&gt;Here is some sample data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DimMilestone:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Support - Tasks:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Success - Project List:&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 13:26:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3186340#M115367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-13T13:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3186678#M115399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;- Next Milestone Budget =&lt;BR /&gt;VAR MilestoneDate =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;MIN ( DimMilestone[EndDate] ),&lt;BR /&gt;DimMilestone[MilestoneStatus] = "Pending"&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( '#Support - Tasks'[TaskBudget] ),&lt;BR /&gt;'#Support - Tasks'[TaskType] = "Software Minor Update",&lt;BR /&gt;'#Support - Tasks'[MilestoneEndDate] = MilestoneDate,&lt;BR /&gt;ALL ( DimMilestone )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 15:21:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3186678#M115399</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-13T15:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3187053#M115430</link>
      <description>&lt;P&gt;Thanks for this. I was messing around with the relationships and was able to get it workign with a relationship directly to the project table from tasks instead of through the milestone table. I'll try this out though and see if it would work without changing the relationships.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 18:36:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Based-on-another-table/m-p/3187053#M115430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-13T18:36:39Z</dc:date>
    </item>
  </channel>
</rss>

