<?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 Value Horizontally in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Value-Horizontally/m-p/3150250#M112819</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534564" data-lia-user-login="John1232" class="lia-mention lia-mention-user"&gt;John1232&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am confused by the expected results from your screenshot.&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;Row 1 of Expected Results shows Answer = &lt;U&gt;&lt;STRONG&gt;Value 3&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- WHERE Unique Value = 1 AND Date = 3/3/2023&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- However, this does not match the source Lookup table.&amp;nbsp; Answer should be &lt;U&gt;&lt;STRONG&gt;Value 1&lt;/STRONG&gt;&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;Row 2 of Expected Results shows Answer = Value 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- But again, based on the source Lookup table, the answer should be Value 1.&lt;/P&gt;&lt;P&gt;Row 3 shows Answer = Value 2, but should be Value 3.&lt;/P&gt;&lt;P&gt;Only Row 4 appears to be correct with Value 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me understand how you are calculating these values that seem to be incorrect?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE 1: You mention that when you unpivot, it creates "duplicates" in the unique value column and will no longer support a relationship.&amp;nbsp; However, these are not true duplicates.&amp;nbsp; They actually reflect the data that is already there prior to unpivoting.&amp;nbsp; If you leave the data as is, you still cannot use Unique Value by itself to get your Answer.&amp;nbsp; It must be a combination of &lt;STRONG&gt;&lt;U&gt;2 items: Unique Value + Date&lt;/U&gt;.&amp;nbsp; This will be true regardless of whether you unpivot or not.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE 2: Due to two date columns being identical (3/14 &amp;amp; 3/14), you actually do have 4 instances of true duplicates:&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;&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are these valid duplicates?&amp;nbsp; Or do they need to be corrected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide a small sample data set for the other table you need to join to?&lt;BR /&gt;Does that table have both the "Key" as well as the Date?&lt;/P&gt;&lt;P&gt;(I say "Key" because this column is not a true Key.&amp;nbsp; The actual Key is &lt;U&gt;&lt;STRONG&gt;Key + Date.)&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 15:06:25 GMT</pubDate>
    <dc:creator>WinterMist</dc:creator>
    <dc:date>2023-03-23T15:06:25Z</dc:date>
    <item>
      <title>Lookup Value Horizontally</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Value-Horizontally/m-p/3148208#M112709</link>
      <description>&lt;P&gt;How do you Hlookup on Dax or PBI,&amp;nbsp; Say as example I have this table and I have values in horizontal mode, I need to search up the date and matching the date with the header date I need that to bring me a value. In excel is very simple I just make an HLOOKUP to crosscheck for the date on top of each column and bring me back the value depending on the date and row selected.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how do I replicate this exact same scenario on PBI, I need to crosscheck a date with the header and then bring me the value. I dont want to unpivot because I have unique values that I cant lose . Ive tried Lookup but it will not let me select more than one column and I need to search in all horizontally, any help will be appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 20:53:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Value-Horizontally/m-p/3148208#M112709</guid>
      <dc:creator>John1232</dc:creator>
      <dc:date>2023-03-22T20:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Value Horizontally</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Value-Horizontally/m-p/3148624#M112731</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534564" data-lia-user-login="John1232" class="lia-mention lia-mention-user"&gt;John1232&lt;/a&gt; , I think you try to use unpivot in power query &lt;/P&gt;
&lt;P&gt;Unpivot Data(Power Query): &lt;A href="https://youtu.be/2HjkBtxSM0g" target="_blank"&gt;https://youtu.be/2HjkBtxSM0g&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 02:02:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Value-Horizontally/m-p/3148624#M112731</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-03-23T02:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Value Horizontally</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Value-Horizontally/m-p/3149790#M112797</link>
      <description>&lt;P&gt;Thank you very much for your answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that I need to use the unique value to match this with another table, and when I unpivot this will create duplicates in the unique value and will no longer support a relationship cause it will count as many to many from both tables giving an error.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 12:14:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Value-Horizontally/m-p/3149790#M112797</guid>
      <dc:creator>John1232</dc:creator>
      <dc:date>2023-03-23T12:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Value Horizontally</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Value-Horizontally/m-p/3150250#M112819</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534564" data-lia-user-login="John1232" class="lia-mention lia-mention-user"&gt;John1232&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am confused by the expected results from your screenshot.&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;Row 1 of Expected Results shows Answer = &lt;U&gt;&lt;STRONG&gt;Value 3&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- WHERE Unique Value = 1 AND Date = 3/3/2023&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- However, this does not match the source Lookup table.&amp;nbsp; Answer should be &lt;U&gt;&lt;STRONG&gt;Value 1&lt;/STRONG&gt;&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;Row 2 of Expected Results shows Answer = Value 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- But again, based on the source Lookup table, the answer should be Value 1.&lt;/P&gt;&lt;P&gt;Row 3 shows Answer = Value 2, but should be Value 3.&lt;/P&gt;&lt;P&gt;Only Row 4 appears to be correct with Value 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me understand how you are calculating these values that seem to be incorrect?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE 1: You mention that when you unpivot, it creates "duplicates" in the unique value column and will no longer support a relationship.&amp;nbsp; However, these are not true duplicates.&amp;nbsp; They actually reflect the data that is already there prior to unpivoting.&amp;nbsp; If you leave the data as is, you still cannot use Unique Value by itself to get your Answer.&amp;nbsp; It must be a combination of &lt;STRONG&gt;&lt;U&gt;2 items: Unique Value + Date&lt;/U&gt;.&amp;nbsp; This will be true regardless of whether you unpivot or not.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE 2: Due to two date columns being identical (3/14 &amp;amp; 3/14), you actually do have 4 instances of true duplicates:&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;&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are these valid duplicates?&amp;nbsp; Or do they need to be corrected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide a small sample data set for the other table you need to join to?&lt;BR /&gt;Does that table have both the "Key" as well as the Date?&lt;/P&gt;&lt;P&gt;(I say "Key" because this column is not a true Key.&amp;nbsp; The actual Key is &lt;U&gt;&lt;STRONG&gt;Key + Date.)&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:06:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-Value-Horizontally/m-p/3150250#M112819</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-03-23T15:06:25Z</dc:date>
    </item>
  </channel>
</rss>

