<?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 How to compare two filtered query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-compare-two-filtered-query/m-p/2372177#M60911</link>
    <description>&lt;P&gt;Hi everyone, I'm new in the community.&lt;/P&gt;&lt;P&gt;I need some help, I have to compare two query, in particular I filter each query by the same value and then I have to compare every row of the table 1 with every row in the table 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the screen there is the two tables filtered by the same value "CODLAV". I have to find the maximum value of data in "INVIO" in the first tabel that is between "DATAINSERIMENTO" and "Datasuccessiva" in the second table. I trie using FIRSTNONBLANK command but there are some errors. Thak you for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 09:04:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-03T09:04:18Z</dc:date>
    <item>
      <title>How to compare two filtered query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-compare-two-filtered-query/m-p/2372177#M60911</link>
      <description>&lt;P&gt;Hi everyone, I'm new in the community.&lt;/P&gt;&lt;P&gt;I need some help, I have to compare two query, in particular I filter each query by the same value and then I have to compare every row of the table 1 with every row in the table 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the screen there is the two tables filtered by the same value "CODLAV". I have to find the maximum value of data in "INVIO" in the first tabel that is between "DATAINSERIMENTO" and "Datasuccessiva" in the second table. I trie using FIRSTNONBLANK command but there are some errors. Thak you for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 09:04:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-compare-two-filtered-query/m-p/2372177#M60911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-03T09:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two filtered query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-compare-two-filtered-query/m-p/2376133#M61208</link>
      <description>&lt;P&gt;Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 05:11:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-compare-two-filtered-query/m-p/2376133#M61208</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-03-05T05:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two filtered query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-compare-two-filtered-query/m-p/2376202#M61211</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;If we consider Table2 is the table that contains the column &lt;SPAN&gt;"INVIO", the y&lt;/SPAN&gt;ou can ceate a new calculated column in Table1 ( The table that contains the&amp;nbsp;&lt;SPAN&gt;"DATAINSERIMENTO" and "Datasuccessiva"&amp;nbsp;columns) using the following code:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;INVIO =
MAXX (
    FILTER (
        Table2,
        Table2[INVIO] &amp;gt;= EARLIER ( Table1[DATAINSERIMENTO] )
            &amp;amp;&amp;amp; Table2[INVIO] &amp;lt;= EARLIER ( Table1[Datasuccessiva] )
    ),
    Table2[INVIO]
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 07:58:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-compare-two-filtered-query/m-p/2376202#M61211</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-05T07:58:46Z</dc:date>
    </item>
  </channel>
</rss>

