<?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: Vlookup in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784236#M87197</link>
    <description>&lt;P&gt;Thanks for your reply.&amp;nbsp; I am getting only , as the answer. Any idea please?&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;</description>
    <pubDate>Wed, 21 Sep 2022 14:19:59 GMT</pubDate>
    <dc:creator>jimpatel</dc:creator>
    <dc:date>2022-09-21T14:19:59Z</dc:date>
    <item>
      <title>Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784127#M87190</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for looking at my post.&lt;/P&gt;&lt;P&gt;I have 2 tables named as table 1 and table 2 and unfortunately i cant link those two tables because repeatation of part numbers. Issue is in table 1, i wanted to include any DAX formula to if partnumber in table 1 match with in table 2 and write the column 5 text from table 2 to table 1 please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea please&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 13:38:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784127#M87190</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2022-09-21T13:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784227#M87196</link>
      <description>&lt;P&gt;You could try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;col 5 text =
VAR PartNumber = 'table 1'[part number]
RETURN
    CONCATENATEX (
        CALCULATETABLE (
            VALUES ( 'table 2'[column 5] ),
            TREATAS ( { PartNumber }, 'table 2'[part number] )
        ),
        'table 2'[column 5],
        ", "
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if there are multiple different values in column 5 for the same part number, this will include them all in a comma separated list&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 14:24:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784227#M87196</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-21T14:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784236#M87197</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp; I am getting only , as the answer. Any idea please?&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;</description>
      <pubDate>Wed, 21 Sep 2022 14:19:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784236#M87197</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2022-09-21T14:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784262#M87198</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp; I am getting only , as the answer. Any idea please?&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 14:24:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784262#M87198</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2022-09-21T14:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784265#M87199</link>
      <description>&lt;P&gt;that's my fault, I forgot to include the actual value. I've edited my original post, hopefully its OK now&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 14:24:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784265#M87199</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-21T14:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784293#M87202</link>
      <description>&lt;P&gt;Thats fantastic. Thanks a lot for this formula. Much appreciated.&lt;/P&gt;&lt;P&gt;What if instead of "&lt;SPAN&gt;if there are multiple different values in column 5 for the same part number, this will include them all in a comma separated list" , if any row have "YES" in column 5 then answer should be "YES". Is this something we can add in this DAX formula please?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 14:31:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784293#M87202</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2022-09-21T14:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784300#M87204</link>
      <description>&lt;P&gt;try&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;col 5 has yes =
VAR PartNumber = 'table 1'[part number]
RETURN
    IF (
        "YES"
            IN CALCULATETABLE (
                VALUES ( 'table 2'[column 5] ),
                TREATAS ( { PartNumber }, 'table 2'[part number] )
            ),
        "YES",
        "NO"
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Sep 2022 14:34:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784300#M87204</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-21T14:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784362#M87209</link>
      <description>&lt;P&gt;Perfect and much appreciated again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry one last question. Similar topic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if i need to add similar formula for below logic please.&lt;/P&gt;&lt;P&gt;1. New DAX formula in the table 4.&lt;/P&gt;&lt;P&gt;2. Where column 1 and Column 3 will have part numbers sometimes repeated partnumbers in both columns&lt;/P&gt;&lt;P&gt;3. column 5 is the desired solution. If column 1 part number or column 3 part number have "Yes" in column 5 then for the same part numbers in both column 1 and column 3 it should be "YES" please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry and any help will be massive push for my BI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 14:54:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784362#M87209</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2022-09-21T14:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784396#M87211</link>
      <description>&lt;P&gt;If I understand you correctly you want to apply the same base logic as previously but only when column 1 and column 3 have the same part number ? You can try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;new column =
IF (
    'table 1'[column1] = 'table 1'[column3],
    VAR PartNumber = 'table 1'[column1]
    RETURN
        IF (
            "YES"
                IN CALCULATETABLE (
                    VALUES ( 'table 2'[column 5] ),
                    TREATAS ( { PartNumber }, 'table 2'[part number] )
                ),
            "YES",
            "NO"
        ),
    "NO"
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Sep 2022 15:05:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784396#M87211</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-21T15:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784527#M87213</link>
      <description>&lt;P&gt;Sorry for my poor explanation.&lt;/P&gt;&lt;P&gt;Actually no.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I have table 4. In table 4 i have multiple columns and in column 1 having part numbers and column 3 have sub part numbers. In some cases, column1 part number might be repeating in column 3 and vice versa.&lt;/P&gt;&lt;P&gt;What i am after is, if column 5 is "Yes" for either column 1 partnumber or column 3 part number, then it should be "YES" for all similar partnumbers. I hope this will help. This will help to remove the barrier what i am having.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 15:36:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784527#M87213</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2022-09-21T15:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784558#M87215</link>
      <description>&lt;P&gt;I think this might do it&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;col 5 has yes =
VAR PartNumbers = { 'table 4'[column 1], 'table 4'[column 3] }
RETURN
    IF (
        "YES"
            IN CALCULATETABLE (
                VALUES ( 'table 2'[column 5] ),
                TREATAS ( PartNumbers, 'table 2'[part number] )
            ),
        "YES",
        "NO"
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Sep 2022 15:46:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784558#M87215</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-21T15:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784636#M87225</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Sorry i think this will explain bit clear&lt;/P&gt;&lt;P&gt;Sorry again&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 16:22:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2784636#M87225</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2022-09-21T16:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2786317#M87345</link>
      <description>&lt;P&gt;Judging by the entry for 44, you're looking for some sort of recursion, which DAX doesn't do. You could maybe look into building a path hierarchy, or in some other way restructuring the model so that you can directly access the values.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:49:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2786317#M87345</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-22T08:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2786333#M87347</link>
      <description>&lt;P&gt;thats cool idea. I will try that. Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:54:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vlookup/m-p/2786333#M87347</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2022-09-22T08:54:54Z</dc:date>
    </item>
  </channel>
</rss>

