<?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: Problem getting data from one table to another table in the range between dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3598164#M139036</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659884" data-lia-user-login="SEAM_98" class="lia-mention lia-mention-user"&gt;SEAM_98&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Add a calculated column to your Table 2 using the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MES_CUOTA_COL = 

    VAR __Data = table2[FECHA DE CONFIRMACION DE LA OC DELL CLIENTE]
    VAR __Result = 
        CALCULATE (
            MAX ( table1[MES_CUOTA ), 
            table1[Fecha Inicio] &amp;lt;= __Data, 
            table1[Fecha Fin] &amp;gt;=  __Data
        ) 
    RETURN
        __Result
            &lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 22 Dec 2023 06:16:15 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2023-12-22T06:16:15Z</dc:date>
    <item>
      <title>Problem getting data from one table to another table in the range between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3597611#M139011</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have problems to create a column as inputs coming from different tables. It does not pull data from the other tables. I would like to know if you have any way to solve this problem.&lt;/P&gt;&lt;P&gt;Here is some information from my tables so you can understand what I am trying to do with an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my fact table (Table2) with dates. I want the dates that are between those ranges, to return me the "MES_CUOTA".&lt;/P&gt;&lt;P&gt;For example: 10/24/23 (From table 2) is between 09/26/2023 and 10/25/2023 (From table1) and in another column it should be returning October_23. So for each date in table 2.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 20:24:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3597611#M139011</guid>
      <dc:creator>SEAM_98</dc:creator>
      <dc:date>2023-12-21T20:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data from one table to another table in the range between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3598164#M139036</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659884" data-lia-user-login="SEAM_98" class="lia-mention lia-mention-user"&gt;SEAM_98&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Add a calculated column to your Table 2 using the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MES_CUOTA_COL = 

    VAR __Data = table2[FECHA DE CONFIRMACION DE LA OC DELL CLIENTE]
    VAR __Result = 
        CALCULATE (
            MAX ( table1[MES_CUOTA ), 
            table1[Fecha Inicio] &amp;lt;= __Data, 
            table1[Fecha Fin] &amp;gt;=  __Data
        ) 
    RETURN
        __Result
            &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 22 Dec 2023 06:16:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3598164#M139036</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-22T06:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data from one table to another table in the range between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3599021#M139069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I don't&amp;nbsp; know only works for the year 2023. The others previous years don't work :c. For example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But with 2023, it works.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried moving the data (only the dates from my table, Mes cuota) in another spreadsheet and it worked. I understand the my table&amp;nbsp; has some issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I check and those fields are with the correct format.&lt;/P&gt;&lt;P&gt;I don't know how can I fix it.&lt;/P&gt;&lt;P&gt;This is my table from mes_cuota&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please your help. I moved sensitive information in order to give you, but when I run the code It worked. I don't know why.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 16:18:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3599021#M139069</guid>
      <dc:creator>SEAM_98</dc:creator>
      <dc:date>2023-12-22T16:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data from one table to another table in the range between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3599186#M139072</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659884" data-lia-user-login="SEAM_98" class="lia-mention lia-mention-user"&gt;SEAM_98&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please check your data, the code should work any date as long as there is data. Please share a dummy PBI file to check&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 19:04:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3599186#M139072</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-22T19:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data from one table to another table in the range between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3599214#M139074</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to give you my PBI file in order to find the problem.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://we.tl/t-4N5jk5tkEG" target="_blank"&gt;https://we.tl/t-4N5jk5tkEG&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching link to download. Only have&amp;nbsp; 7 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please I look forward to your promt reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 19:42:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3599214#M139074</guid>
      <dc:creator>SEAM_98</dc:creator>
      <dc:date>2023-12-22T19:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data from one table to another table in the range between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3599232#M139076</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659884" data-lia-user-login="SEAM_98" class="lia-mention lia-mention-user"&gt;SEAM_98&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I modifed the code with a different approach:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MES_CUOTA = 
VAR _data = 'FACT COTIZACIONES'[FECHA DE CONFIRMACION DE RECEPCION DE LA OC DEL CLIENTE]
VAR _result = 
MAXX(
    FILTER(
        'DIM MES',        
        _data &amp;gt;= 'DIM MES'[Fecha Inicio] &amp;amp;&amp;amp;
        _data &amp;lt;= 'DIM MES'[Fecha Fin] 
    ),
    'DIM MES'[MES_CUOTA]
)
RETURN  _result&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 22 Dec 2023 20:02:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-getting-data-from-one-table-to-another-table-in-the/m-p/3599232#M139076</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-22T20:02:22Z</dc:date>
    </item>
  </channel>
</rss>

