<?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 To look up value in another table between two values and no unique data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-look-up-value-in-another-table-between-two-values-and-no/m-p/750615#M2703</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I &lt;/SPAN&gt;am brand new to Power BI&amp;nbsp;and having a few issues to look up values between 2 columns in another table.&lt;/P&gt;&lt;P&gt;So,&amp;nbsp;I&amp;nbsp;have two tables (placed below) and I am trying to take value from TABLE1 in the column "In Serial" and according the column "Data" (date) go to TABLE2 match the date and then look up the value between two columns "Value in" and "Value out" when it found, the desired result is to add a new column in TABLE1 with the information as&amp;nbsp;"text" from Column "ProgramN" in TABLE2.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The result would be something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you very much in advance for any help!! Please let me know if you would like any additional information&lt;/SPAN&gt; :)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Jul 2019 02:56:52 GMT</pubDate>
    <dc:creator>Exhibition</dc:creator>
    <dc:date>2019-07-28T02:56:52Z</dc:date>
    <item>
      <title>To look up value in another table between two values and no unique data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-look-up-value-in-another-table-between-two-values-and-no/m-p/750615#M2703</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I &lt;/SPAN&gt;am brand new to Power BI&amp;nbsp;and having a few issues to look up values between 2 columns in another table.&lt;/P&gt;&lt;P&gt;So,&amp;nbsp;I&amp;nbsp;have two tables (placed below) and I am trying to take value from TABLE1 in the column "In Serial" and according the column "Data" (date) go to TABLE2 match the date and then look up the value between two columns "Value in" and "Value out" when it found, the desired result is to add a new column in TABLE1 with the information as&amp;nbsp;"text" from Column "ProgramN" in TABLE2.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The result would be something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you very much in advance for any help!! Please let me know if you would like any additional information&lt;/SPAN&gt; :)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 02:56:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-look-up-value-in-another-table-between-two-values-and-no/m-p/750615#M2703</guid>
      <dc:creator>Exhibition</dc:creator>
      <dc:date>2019-07-28T02:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: To look up value in another table between two values and no unique data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-look-up-value-in-another-table-between-two-values-and-no/m-p/750623#M2708</link>
      <description>&lt;P&gt;try this code as calculated column in Table1, you may need to adjust table and column names&lt;/P&gt;
&lt;PRE&gt;ProgramN =
VAR __Date = 'Table1'[Data]
VAR __InSerial = 'Table1'[IN SERIAL]
VAR __RelevantRowsTable2 =
    FILTER (
        'Table2',
        'Table2'[Date] = __Date
            &amp;amp;&amp;amp; 'Table2'[Value in] &amp;lt;= __InSerial
            &amp;amp;&amp;amp; 'Table2'[Value out] &amp;gt;= __InSerial
    )
RETURN
    CALCULATE ( FIRSTNONBLANK ( 'Table2'[ProgramN], TRUE ), __RelevantRowsTable2 )
&lt;/PRE&gt;
&lt;DIV style="border-radius: 1px; border: solid #CCCCCC 1px; background: #fafafa url('https://community.powerbi.com/t5/image/serverpage/image-id/86505i901712D27DD154D7/image-size/small?v...') no-repeat right 10px center; background-size: auto 60%;"&gt;Did I answer your question? &lt;STRONG style="margin-right: 100px;"&gt; Mark my post as a solution!&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;Proud to be a Datanaut!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 28 Jul 2019 03:52:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-look-up-value-in-another-table-between-two-values-and-no/m-p/750623#M2708</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-07-28T03:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: To look up value in another table between two values and no unique data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-look-up-value-in-another-table-between-two-values-and-no/m-p/750625#M2709</link>
      <description>&lt;P&gt;Stachu thank you very much, I spent much time trying to resolve this, now it worked, so happy, thx!! :)&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 07:47:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-look-up-value-in-another-table-between-two-values-and-no/m-p/750625#M2709</guid>
      <dc:creator>Exhibition</dc:creator>
      <dc:date>2019-07-28T07:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: To look up value in another table between two values and no unique data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-look-up-value-in-another-table-between-two-values-and-no/m-p/2501736#M69167</link>
      <description>&lt;P&gt;Thank you Stachu. I tried this solution. I spent 2 weeks for this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 10:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-look-up-value-in-another-table-between-two-values-and-no/m-p/2501736#M69167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-09T10:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: To look up value in another table between two values and no unique data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-look-up-value-in-another-table-between-two-values-and-no/m-p/3202235#M116447</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;It is well explained in this video as well:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=3LP5kmrJT5I" target="_blank"&gt;https://www.youtube.com/watch?v=3LP5kmrJT5I&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 07:17:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-look-up-value-in-another-table-between-two-values-and-no/m-p/3202235#M116447</guid>
      <dc:creator>theov</dc:creator>
      <dc:date>2023-04-24T07:17:32Z</dc:date>
    </item>
  </channel>
</rss>

