<?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: cross checking between 2 tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2856326#M91823</link>
    <description>&lt;P&gt;i am looking to challenge this a little bit and JOIN to the "Messages Delivered" other 2 tables - assume in the same format - and only THEN running the cross-checking.&lt;BR /&gt;hope its clear. any idea?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 21:05:45 GMT</pubDate>
    <dc:creator>akfir</dc:creator>
    <dc:date>2022-10-21T21:05:45Z</dc:date>
    <item>
      <title>cross checking between 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2853905#M91629</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;i have 2 tables:&lt;BR /&gt;1. Operation X - which presents all dates and customers who did a specific operation - a simple customers dates dimension table (customer can be presented more than once with different dates)&lt;BR /&gt;2. Messages Delivered - which presents all messages delivered to all customers.&lt;BR /&gt;&lt;BR /&gt;i wish to check for the customers in table1 for the range of 2 days prior to the date of its operation whether there is a message delivered in that range and return its message ID &amp;amp; channel&lt;BR /&gt;&lt;BR /&gt;sample is attached.&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Amit&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:24:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2853905#M91629</guid>
      <dc:creator>akfir</dc:creator>
      <dc:date>2022-10-20T14:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: cross checking between 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2854022#M91637</link>
      <description>&lt;P&gt;You could generate a calculated table like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Messages table =
GENERATE (
    'Operation X',
    VAR ReferenceCustomer = 'Operation X'[Customer ID]
    VAR ReferenceDate = 'Operation X'[Date]
    RETURN
        CALCULATETABLE (
            SELECTCOLUMNS (
                'Messages Delivered',
                'Messages Delivered'[Message ID],
                'Messages Delivered'[Date]
            ),
            'Messages Delivered' &amp;gt;= ReferenceDate - 2
                &amp;amp;&amp;amp; 'Messages Delivered'[Date] &amp;lt;= ReferenceDate,
            'Messages Delivered'[Customer ID] = ReferenceCustomer
        )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Oct 2022 15:22:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2854022#M91637</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-10-20T15:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: cross checking between 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2854899#M91719</link>
      <description>&lt;P&gt;Thanks for your response!&lt;BR /&gt;i tried your solution but it deleted lots of rows from the main "Operation X" table. i need to have all rows exactly from this table adding just the 2 columns i mentioned. i guess it only returned the matched ones with "Messages Delivered".&lt;BR /&gt;one more thing - if there are more than 1 message delivered in that 2 days range , it should always take the latest message.&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 05:51:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2854899#M91719</guid>
      <dc:creator>akfir</dc:creator>
      <dc:date>2022-10-21T05:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: cross checking between 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2855284#M91743</link>
      <description>&lt;P&gt;OK, try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Messages table =
GENERATEALL (
    'Operation X',
    VAR ReferenceCustomer = 'Operation X'[Customer ID]
    VAR ReferenceDate = 'Operation X'[Date]
    VAR SummaryTable =
        CALCULATETABLE (
            TOPN (
                1,
                'Messages Delivered',
                'Messages Delivered'[Date], DESC,
                'Messages Delivered'[Message ID], DESC
            ),
            'Messages Delivered' &amp;gt;= ReferenceDate - 2
                &amp;amp;&amp;amp; 'Messages Delivered'[Date] &amp;lt;= ReferenceDate,
            'Messages Delivered'[Customer ID] = ReferenceCustomer
        )
    RETURN
        SELECTCOLUMNS (
            SummaryTable,
            'Messages Delivered'[Message ID],
            'Messages Delivered'[Date]
        )
)
&lt;/LI-CODE&gt;
&lt;P&gt;this will return a row from Operation X even if there were no messages&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 08:32:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2855284#M91743</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-10-21T08:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: cross checking between 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2855532#M91768</link>
      <description>&lt;P&gt;Perfect! thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 10:51:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2855532#M91768</guid>
      <dc:creator>akfir</dc:creator>
      <dc:date>2022-10-21T10:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: cross checking between 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2856326#M91823</link>
      <description>&lt;P&gt;i am looking to challenge this a little bit and JOIN to the "Messages Delivered" other 2 tables - assume in the same format - and only THEN running the cross-checking.&lt;BR /&gt;hope its clear. any idea?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 21:05:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cross-checking-between-2-tables/m-p/2856326#M91823</guid>
      <dc:creator>akfir</dc:creator>
      <dc:date>2022-10-21T21:05:45Z</dc:date>
    </item>
  </channel>
</rss>

