<?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 [Help Needed] - How to compare and get values from two tables without a relationship in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Needed-How-to-compare-and-get-values-from-two-tables/m-p/2563044#M72966</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Requesting your help in making a table with Dax&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Attached a image above explaining the need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1 has three columns . Table 2 has two columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output should be from Table 1 - Serial Numbers which are Shipped,but the values should be selected only when Date in table 2 is more than 5 days compared to Date in Table 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no relationship between tables.&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 07:22:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-07T07:22:13Z</dc:date>
    <item>
      <title>[Help Needed] - How to compare and get values from two tables without a relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Needed-How-to-compare-and-get-values-from-two-tables/m-p/2563044#M72966</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Requesting your help in making a table with Dax&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Attached a image above explaining the need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1 has three columns . Table 2 has two columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output should be from Table 1 - Serial Numbers which are Shipped,but the values should be selected only when Date in table 2 is more than 5 days compared to Date in Table 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no relationship between tables.&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 07:22:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Needed-How-to-compare-and-get-values-from-two-tables/m-p/2563044#M72966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-07T07:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: [Help Needed] - How to compare and get values from two tables without a relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Needed-How-to-compare-and-get-values-from-two-tables/m-p/2563380#M72985</link>
      <description>&lt;P&gt;Hey Anonymous&lt;/a&gt;&amp;nbsp;, take a look at this DAX code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TimeDifference =
CALCULATE (
    DATEDIFF (
        SELECTEDVALUE ( 'Table 1'[Date] ),
        SELECTEDVALUE ( 'Table 2'[Date] ),
        DAY
    ),
    TREATAS ( VALUES ( 'Table 1'[Serial Number] ), 'Table 2'[Serial Number] )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how you can calculate the time difference.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there just use filters.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 10:05:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Needed-How-to-compare-and-get-values-from-two-tables/m-p/2563380#M72985</guid>
      <dc:creator>ChrisClever</dc:creator>
      <dc:date>2022-06-07T10:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: [Help Needed] - How to compare and get values from two tables without a relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Needed-How-to-compare-and-get-values-from-two-tables/m-p/2570715#M73412</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date2 =
CALCULATE(MAX('Table2'[Date]),FILTER(ALL(Table2),'Table2'[Serial Number]=EARLIER('Table1'[Serial Number])))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Day =
DATEDIFF('Table1'[Date],'Table1'[Date2],DAY)&lt;/LI-CODE&gt;
&lt;P&gt;2. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table =
var _1=FILTER(ALL(Table1),'Table1'[Day]&amp;gt;=5&amp;amp;&amp;amp;'Table1'[Status]="Shipped")
return
SUMMARIZE(
    _1,
    'Table1'[Serial Number],'Table1'[Date],Table1[Status],Table1[Day])&lt;/LI-CODE&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 06:04:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Needed-How-to-compare-and-get-values-from-two-tables/m-p/2570715#M73412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-10T06:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: [Help Needed] - How to compare and get values from two tables without a relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Needed-How-to-compare-and-get-values-from-two-tables/m-p/2570854#M73420</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="319692" data-lia-user-login="ChrisClever" class="lia-mention lia-mention-user"&gt;ChrisClever&lt;/a&gt;&amp;nbsp;, I tried this. But for some reason, output is coming as blanks&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 06:58:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Needed-How-to-compare-and-get-values-from-two-tables/m-p/2570854#M73420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-10T06:58:15Z</dc:date>
    </item>
  </channel>
</rss>

