<?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 Values from Unrelated table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-from-Unrelated-table/m-p/4588457#M175785</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Part of my model is ..&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to count the number of StudentID's in Table_B that have matching values in Table_C&amp;nbsp;based on a Regdate range from Table_B. I've got the folowing Dax expression, that is returning a value, but not the correct one.&lt;BR /&gt;&lt;BR /&gt;EVALUATE&lt;BR /&gt;ROW (&lt;BR /&gt;"j",&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTROWS(Table_B),&lt;BR /&gt;FILTER (&lt;BR /&gt;Table_B,&lt;BR /&gt;Table_B[RegDate] &amp;gt;= DATE (2025, 1, 1) &amp;amp;&amp;amp;&lt;BR /&gt;Table_B[RegDate] &amp;lt;= DATE (2025, 1, 31) &amp;amp;&amp;amp;&lt;BR /&gt;NOT (&lt;BR /&gt;ISBLANK (&lt;BR /&gt;LOOKUPVALUE (&lt;BR /&gt;Table_C[StudentID],&lt;BR /&gt;Table_C[StudentID],&lt;BR /&gt;Table_B[StudentID]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 17:20:14 GMT</pubDate>
    <dc:creator>ryand009</dc:creator>
    <dc:date>2025-02-27T17:20:14Z</dc:date>
    <item>
      <title>Values from Unrelated table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-from-Unrelated-table/m-p/4588457#M175785</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Part of my model is ..&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to count the number of StudentID's in Table_B that have matching values in Table_C&amp;nbsp;based on a Regdate range from Table_B. I've got the folowing Dax expression, that is returning a value, but not the correct one.&lt;BR /&gt;&lt;BR /&gt;EVALUATE&lt;BR /&gt;ROW (&lt;BR /&gt;"j",&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTROWS(Table_B),&lt;BR /&gt;FILTER (&lt;BR /&gt;Table_B,&lt;BR /&gt;Table_B[RegDate] &amp;gt;= DATE (2025, 1, 1) &amp;amp;&amp;amp;&lt;BR /&gt;Table_B[RegDate] &amp;lt;= DATE (2025, 1, 31) &amp;amp;&amp;amp;&lt;BR /&gt;NOT (&lt;BR /&gt;ISBLANK (&lt;BR /&gt;LOOKUPVALUE (&lt;BR /&gt;Table_C[StudentID],&lt;BR /&gt;Table_C[StudentID],&lt;BR /&gt;Table_B[StudentID]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 17:20:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-from-Unrelated-table/m-p/4588457#M175785</guid>
      <dc:creator>ryand009</dc:creator>
      <dc:date>2025-02-27T17:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Values from Unrelated table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-from-Unrelated-table/m-p/4588583#M175788</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450914" data-lia-user-login="ryand009" class="lia-mention lia-mention-user"&gt;ryand009&lt;/a&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 18:33:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-from-Unrelated-table/m-p/4588583#M175788</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2025-02-27T18:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Values from Unrelated table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-from-Unrelated-table/m-p/4589504#M175802</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450914" data-lia-user-login="ryand009" class="lia-mention lia-mention-user"&gt;ryand009&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please &lt;U&gt;provide sample data that &lt;STRONG&gt;fully&lt;/STRONG&gt; represents your issue or question in a &lt;STRONG&gt;usable format&lt;/STRONG&gt;&lt;/U&gt;, rather than a screenshot? Ensure the dataset is anonymized and does not contain any sensitive or unrelated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, it would be very helpful if you could &lt;U&gt;share the &lt;STRONG&gt;expected outcome&lt;/STRONG&gt; based on the provided data&lt;/U&gt; - this can be in any format, including a screenshot. Having a clear reference for comparison will significantly improve the chances of getting the correct solution in the first response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For best practices, you may find the following links useful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;Need help uploading data?&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;Want faster answers?&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Udit&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 07:21:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-from-Unrelated-table/m-p/4589504#M175802</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2025-02-28T07:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Values from Unrelated table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-from-Unrelated-table/m-p/4589867#M175807</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450914" data-lia-user-login="ryand009" class="lia-mention lia-mention-user"&gt;ryand009&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;you can use a VALUES instead of LOOKUPVALUE function&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE
ROW(
    "j",
    CALCULATE(
        COUNTROWS(Table_B),
        FILTER(Table_B,
                Table_B[RegDate] &amp;gt;= DATE (2025, 1, 1) &amp;amp;&amp;amp;
                Table_B[RegDate] &amp;lt;= DATE (2025, 1, 31)),
                Table_B[StudentID] IN VALUES ( Table_C[StudentID])))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Feb 2025 11:00:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-from-Unrelated-table/m-p/4589867#M175807</guid>
      <dc:creator>vivek31</dc:creator>
      <dc:date>2025-02-28T11:00:17Z</dc:date>
    </item>
  </channel>
</rss>

