<?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: Help me to write the DAX formula using Filter Function to Link Tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3410444#M128903</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;. Unfortunately it shows the following message:&amp;nbsp;&lt;EM&gt;Failed to resolve name 'SELECTEDVALUE'. It is not a valid table, variable, or function name.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 08:37:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-09-01T08:37:12Z</dc:date>
    <item>
      <title>Help me to write the DAX formula using Filter Function to Link Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3408881#M128821</link>
      <description>&lt;P&gt;I have the four following table:&lt;/P&gt;&lt;P&gt;Table 1: (Main Table)&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Full Time Equivalent&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/06/2023&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;30.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/06/2023&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;20.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;31/05/2023&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;30.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;31/05/2023&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;20.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2: (Primary Key)&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date Key&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/06/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;31/05/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/04/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;31/03/2023&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 3: (Primary Key)&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID Key&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 4: (ID Table)&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Team&lt;/TD&gt;&lt;TD&gt;Department&lt;/TD&gt;&lt;TD&gt;Division&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/06/2023&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;XYZ&lt;/TD&gt;&lt;TD&gt;MNO&lt;/TD&gt;&lt;TD&gt;OPQ&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;31/05/2023&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;ZXY&lt;/TD&gt;&lt;TD&gt;MNO&lt;/TD&gt;&lt;TD&gt;OPQ&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/04/2023&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;ZXY&lt;/TD&gt;&lt;TD&gt;LOM&lt;/TD&gt;&lt;TD&gt;OPQ&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the relationship details:&lt;/P&gt;&lt;P&gt;1) Table 1 [Date] &amp;gt; &lt;STRONG&gt;Many to One&lt;/STRONG&gt;&amp;gt;Table 2 [Date Key]&amp;gt;&lt;STRONG&gt;One to Many&lt;/STRONG&gt;&amp;gt; Table 4 [Date]&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;Table 1 [ID] &amp;gt; &lt;STRONG&gt;Many to One&lt;/STRONG&gt;&amp;gt;Table 3 [ID Key]&amp;gt;&lt;STRONG&gt;One to Many&lt;/STRONG&gt;&amp;gt; Table 4 [ID]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the ID moves to various teams and departments every month, I need to create a measure that will give the summation of full-time equivalents by date, department, division, etc. as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FTE =&amp;nbsp;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Table1[Full Time Equivalent]),&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Table 4, Table 4[Date] = 'Table 2'[Date Key])&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;This measure will first filter Table 4 in the Date column. Then, it will calculate the sum of the full-time equivalent column in Table 1 for the filtered rows. It is showing an error as follows: "&lt;EM&gt;This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can anyone please help me write the formula so that FTE will filter by date, department, division, etc.?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 12:45:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3408881#M128821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-31T12:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the DAX formula using Filter Function to Link Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3408905#M128822</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FTE = CALCULATE(

SUM(Table1[Full Time Equivalent]),

FILTER(Table 4, Table 4[Date] = MAX('Table 2'[Date Key]))

)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post helps, then please Accept it as the solution&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 12:52:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3408905#M128822</guid>
      <dc:creator>JoeBarry</dc:creator>
      <dc:date>2023-08-31T12:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the DAX formula using Filter Function to Link Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3409122#M128834</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601805" data-lia-user-login="JoeBarry" class="lia-mention lia-mention-user"&gt;JoeBarry&lt;/a&gt;&amp;nbsp;Unfortunately it's not filtering.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 14:17:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3409122#M128834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-31T14:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the DAX formula using Filter Function to Link Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3409349#M128845</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FTE =
CALCULATE (
    SUM ( 'Table 1'[Full Time Equivalent] ),
    FILTER ( 'Table 4', 'Table 4'[Date] = SELECTEDVALUE ( 'Table 2'[Date Key] ) )
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 16:08:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3409349#M128845</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-08-31T16:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the DAX formula using Filter Function to Link Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3410444#M128903</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;. Unfortunately it shows the following message:&amp;nbsp;&lt;EM&gt;Failed to resolve name 'SELECTEDVALUE'. It is not a valid table, variable, or function name.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 08:37:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3410444#M128903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-01T08:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the DAX formula using Filter Function to Link Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3410588#M128912</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;, are you using Excel or PBI? Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FTE =
VAR dt = MAX (  'Table 2'[Date Key] )
RETURN
CALCULATE (
    SUM ( 'Table 1'[Full Time Equivalent] ),
    FILTER ( 'Table 4', 'Table 4'[Date] = dt )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 Sep 2023 09:53:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3410588#M128912</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-09-01T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the DAX formula using Filter Function to Link Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3444575#M130963</link>
      <description>&lt;P&gt;I hope this message finds you well. I've noticed that this solution remain unresolved. If any of you have managed to find a resolution to the issue, I kindly request that you share your solution for the benefit of the entire community. Alternatively, if you're still facing challenges, please do let us know as well.&lt;/P&gt;
&lt;P&gt;Your insights and updates will greatly assist others who might be encountering the same challenge.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 08:01:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-DAX-formula-using-Filter-Function-to-Link/m-p/3444575#M130963</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2023-09-24T08:01:06Z</dc:date>
    </item>
  </channel>
</rss>

