<?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: Lookupvalue over 2 Columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-over-2-Columns/m-p/2210827#M52169</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suggest creating Product table like below.&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;And then, Range of MIn column and Max column can be used like below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the attached pbix file. All Calculated Columns are in the attached pbix file.&lt;/P&gt;</description>
    <pubDate>Sun, 28 Nov 2021 17:26:02 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2021-11-28T17:26:02Z</dc:date>
    <item>
      <title>Lookupvalue over 2 Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-over-2-Columns/m-p/2210701#M52165</link>
      <description>&lt;P&gt;Hi girls &amp;amp; guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 very simple tables:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.) Sales&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;2.) Product Table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now as you can see within the Product table, there's one item, "2536" or "TV Remoate", that comes at different pricing options, depending on the quantity customers purchase it at.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since there are no unique values, I'm staying away from building a relationship within the model itself. I would much rather create a separate, calculated column within the Sales table, listing the price according to quantity ordered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;Now I would presume, that the easiest way would be a Lookupvalue function creating the column. But I'm having trouble entering it so it aggregates properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone kindly help me out or suggest if there's an easier option to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 11:30:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-over-2-Columns/m-p/2210701#M52165</guid>
      <dc:creator>awolf88</dc:creator>
      <dc:date>2021-11-28T11:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue over 2 Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-over-2-Columns/m-p/2210827#M52169</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suggest creating Product table like below.&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;And then, Range of MIn column and Max column can be used like below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the attached pbix file. All Calculated Columns are in the attached pbix file.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 17:26:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-over-2-Columns/m-p/2210827#M52169</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-11-28T17:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue over 2 Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-over-2-Columns/m-p/2212484#M52246</link>
      <description>&lt;P&gt;Did the trick, beautifully! Thank you kindly!!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 17:43:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-over-2-Columns/m-p/2212484#M52246</guid>
      <dc:creator>awolf88</dc:creator>
      <dc:date>2021-11-29T17:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue over 2 Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-over-2-Columns/m-p/2435747#M64999</link>
      <description>&lt;P&gt;Hi there!&amp;nbsp;&lt;/P&gt;&lt;P&gt;may I pick up this problem from before and inquire about one more piece of coding to what has worked as a charm so far?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Product table now has 2 additional columns with a mix of current and historic prices that have changed due to price increases. I would now need the code to not only aggregate by quantity amount but also by which time window the sales price has been valid for if that makes sense?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks guys!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 13:40:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-over-2-Columns/m-p/2435747#M64999</guid>
      <dc:creator>awolf88</dc:creator>
      <dc:date>2022-04-04T13:40:19Z</dc:date>
    </item>
  </channel>
</rss>

