<?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: Lookup data to New column with data from another table filtered by date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-data-to-New-column-with-data-from-another-table-filtered/m-p/4129690#M164019</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="800351" data-lia-user-login="Jubari" class="lia-mention lia-mention-user"&gt;Jubari&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as I understood you want that as a calculated column.&lt;/P&gt;
&lt;P&gt;Give this a try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cost =
VAR _ArticleThisRow = 'Sales Data'[Article Number]
VAR _SalesDate = 'Sales Data'[Sales Date]
VAR _Result =
    CALCULATE (
        MAX ( 'Cost Price'[Price] ),
        'Cost Price'[Article Number] = _ArticleThisRow
            &amp;amp;&amp;amp; ( _SalesDate &amp;gt;= 'Cost Price'[Start Date]
            &amp;amp;&amp;amp; _SalesDate &amp;lt;= 'Cost Price'[End Date] )
    )
RETURN
    Result&lt;/LI-CODE&gt;
&lt;P&gt;If you need any help please let me know.&lt;BR /&gt;If I answered your question I would be happy if you could mark my post as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; and give it a thumbs up &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Denis&lt;BR /&gt;&lt;BR /&gt;Blog: &lt;A href="https://whatthefact.bi/?utm_source=powerbicommunity&amp;amp;utm_medium=link&amp;amp;utm_campaign=forum" target="_blank" rel="noopener"&gt;WhatTheFact.bi&lt;/A&gt;&lt;BR /&gt;Follow me: &lt;A href="https://twitter.com/DenSelimovic" target="_blank" rel="noopener"&gt;twitter.com/DenSelimovic&lt;/A&gt;&lt;BR /&gt;Connect with me: &lt;A href="https://www.linkedin.com/in/denis-selimovic/" target="_blank" rel="noopener"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 14:30:18 GMT</pubDate>
    <dc:creator>selimovd</dc:creator>
    <dc:date>2024-09-02T14:30:18Z</dc:date>
    <item>
      <title>Lookup data to New column with data from another table filtered by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-data-to-New-column-with-data-from-another-table-filtered/m-p/4129647#M164012</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Heres a tricky one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Background:&lt;/P&gt;&lt;P&gt;I'm creating a Model to be shared within a Group and as usual no-one within the Group has the data in same format. But the result of my creation needs to be in a "standard format"&lt;/P&gt;&lt;P&gt;The result must be a model so that it can be linked to a report where the group data is combined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried quite a few combinations trying to filter the result that I need but I am failing. Any suggestions hot to get the result I need?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 14:00:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-data-to-New-column-with-data-from-another-table-filtered/m-p/4129647#M164012</guid>
      <dc:creator>Jubari</dc:creator>
      <dc:date>2024-09-02T14:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup data to New column with data from another table filtered by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-data-to-New-column-with-data-from-another-table-filtered/m-p/4129690#M164019</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="800351" data-lia-user-login="Jubari" class="lia-mention lia-mention-user"&gt;Jubari&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as I understood you want that as a calculated column.&lt;/P&gt;
&lt;P&gt;Give this a try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cost =
VAR _ArticleThisRow = 'Sales Data'[Article Number]
VAR _SalesDate = 'Sales Data'[Sales Date]
VAR _Result =
    CALCULATE (
        MAX ( 'Cost Price'[Price] ),
        'Cost Price'[Article Number] = _ArticleThisRow
            &amp;amp;&amp;amp; ( _SalesDate &amp;gt;= 'Cost Price'[Start Date]
            &amp;amp;&amp;amp; _SalesDate &amp;lt;= 'Cost Price'[End Date] )
    )
RETURN
    Result&lt;/LI-CODE&gt;
&lt;P&gt;If you need any help please let me know.&lt;BR /&gt;If I answered your question I would be happy if you could mark my post as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; and give it a thumbs up &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Denis&lt;BR /&gt;&lt;BR /&gt;Blog: &lt;A href="https://whatthefact.bi/?utm_source=powerbicommunity&amp;amp;utm_medium=link&amp;amp;utm_campaign=forum" target="_blank" rel="noopener"&gt;WhatTheFact.bi&lt;/A&gt;&lt;BR /&gt;Follow me: &lt;A href="https://twitter.com/DenSelimovic" target="_blank" rel="noopener"&gt;twitter.com/DenSelimovic&lt;/A&gt;&lt;BR /&gt;Connect with me: &lt;A href="https://www.linkedin.com/in/denis-selimovic/" target="_blank" rel="noopener"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 14:30:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-data-to-New-column-with-data-from-another-table-filtered/m-p/4129690#M164019</guid>
      <dc:creator>selimovd</dc:creator>
      <dc:date>2024-09-02T14:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup data to New column with data from another table filtered by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-data-to-New-column-with-data-from-another-table-filtered/m-p/4130500#M164059</link>
      <description>&lt;P&gt;Thank's. But one correction end with _Result&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 06:27:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-data-to-New-column-with-data-from-another-table-filtered/m-p/4130500#M164059</guid>
      <dc:creator>Jubari</dc:creator>
      <dc:date>2024-09-03T06:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup data to New column with data from another table filtered by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-data-to-New-column-with-data-from-another-table-filtered/m-p/4131148#M164082</link>
      <description>&lt;P&gt;You are absolutely correct&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="800351" data-lia-user-login="Jubari" class="lia-mention lia-mention-user"&gt;Jubari&lt;/a&gt;&amp;nbsp;. Sorry about that, just wrote it down without testing, but yes, should be RETURN _Result at the end.&lt;BR /&gt;I'm happy the solutions works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regars&lt;/P&gt;
&lt;P&gt;Denis&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 11:39:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-data-to-New-column-with-data-from-another-table-filtered/m-p/4131148#M164082</guid>
      <dc:creator>selimovd</dc:creator>
      <dc:date>2024-09-03T11:39:12Z</dc:date>
    </item>
  </channel>
</rss>

