<?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/2898254#M94312</link>
    <description>&lt;P&gt;thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It' s ok,&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the meantime, I tried a solution similar to yours,&lt;/P&gt;&lt;P&gt;"for english must replace ; by ,"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;=if(Ta_Base[Siren]=Blank();blank();if(LOOKUPVALUE([Numéro SIREN de la société holding tête de groupe française];[Siren]; [Siren]) ;&lt;/DIV&gt;&lt;DIV&gt;[Numéro SIREN de la société holding tête de groupe française]&amp;amp;"-F-";&lt;/DIV&gt;&lt;DIV&gt;if(CONTAINS(Ta_Base;[Numéro SIREN de la société holding tête de groupe française];[Siren]);&lt;/DIV&gt;&lt;DIV&gt;[Siren]&amp;amp; "-M-"&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;;BLANK())&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which I also post with an excel file containing the table, and the dax part in powerpivot for members who are interested.&lt;/P&gt;&lt;P&gt;a big thank you to you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/t/7P1YZjrKZJ3TSs3q" target="_blank"&gt;https://www.dropbox.com/t/7P1YZjrKZJ3TSs3q&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 18:15:57 GMT</pubDate>
    <dc:creator>PhilippeMuniesa</dc:creator>
    <dc:date>2022-11-10T18:15:57Z</dc:date>
    <item>
      <title>vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896150#M94165</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;(from france)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to identify in a new column (powerpivot with DAX) the values that exist in column A and in column B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;col A&amp;nbsp; &amp;nbsp; col&amp;nbsp; B&amp;nbsp; &amp;nbsp; &amp;nbsp;newCol&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 19:44:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896150#M94165</guid>
      <dc:creator>PhilippeMuniesa</dc:creator>
      <dc:date>2022-11-09T19:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896208#M94169</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="245024" data-lia-user-login="PhilippeMuniesa" class="lia-mention lia-mention-user"&gt;PhilippeMuniesa&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;newCol =
  VAR __B = SELECTCOLUMNS(ALL('Table'),"__C",[B])
  VAR __A = SELECTCOLUMNS(ALL('Table'),"__C",[A])
  VAR __AinB = IF([col A] IN __B,[col A],BLANK()) 
  VAR __BinA = IF([col B] IN __A,[col B],BLANK())
  VAR __Return = MAXX(FILTER(UNION(__AinB, __BinA),[__C] &amp;lt;&amp;gt; BLANK()),[__C])
RETURN
  __Return&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Nov 2022 20:09:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896208#M94169</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-11-09T20:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896245#M94174</link>
      <description>&lt;P&gt;thank you, but problème with french traduction&amp;nbsp; &amp;nbsp;,&amp;nbsp; as ;&amp;nbsp; and error with&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;Thank&amp;nbsp; you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;philippe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 20:54:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896245#M94174</guid>
      <dc:creator>PhilippeMuniesa</dc:creator>
      <dc:date>2022-11-09T20:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896353#M94183</link>
      <description>&lt;P&gt;&lt;SPAN&gt;it seems that the IN operator is not operational in Powerpivot would there be another solution? thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;philippe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 22:49:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896353#M94183</guid>
      <dc:creator>PhilippeMuniesa</dc:creator>
      <dc:date>2022-11-09T22:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896418#M94187</link>
      <description>&lt;P&gt;I think PowerPivot allows CONTAINS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not completely sure I understand your logic but try this:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;newCol = 
    IF (
        ISBLANK ( 'Table'[ColB] ),
        IF (
            CONTAINS ( 'Table', 'Table'[ColB], 'Table'[ColA] ),
            'Table'[ColA]
        ),
        'Table'[ColB]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 00:41:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896418#M94187</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-11-10T00:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896422#M94188</link>
      <description>&lt;P&gt;I had trouble following what this is trying to do, but it did inspire this solution:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;newCol = 
VAR _ColB = VALUES ( 'Table'[ColB] )
VAR _CurrRow = { 'Table'[ColA], 'Table'[ColB] }
RETURN
    MAXX ( INTERSECT ( _ColB, _CurrRow ), 'Table'[ColB] )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Nov 2022 00:51:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2896422#M94188</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-11-10T00:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2898254#M94312</link>
      <description>&lt;P&gt;thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It' s ok,&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the meantime, I tried a solution similar to yours,&lt;/P&gt;&lt;P&gt;"for english must replace ; by ,"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;=if(Ta_Base[Siren]=Blank();blank();if(LOOKUPVALUE([Numéro SIREN de la société holding tête de groupe française];[Siren]; [Siren]) ;&lt;/DIV&gt;&lt;DIV&gt;[Numéro SIREN de la société holding tête de groupe française]&amp;amp;"-F-";&lt;/DIV&gt;&lt;DIV&gt;if(CONTAINS(Ta_Base;[Numéro SIREN de la société holding tête de groupe française];[Siren]);&lt;/DIV&gt;&lt;DIV&gt;[Siren]&amp;amp; "-M-"&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;;BLANK())&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which I also post with an excel file containing the table, and the dax part in powerpivot for members who are interested.&lt;/P&gt;&lt;P&gt;a big thank you to you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/t/7P1YZjrKZJ3TSs3q" target="_blank"&gt;https://www.dropbox.com/t/7P1YZjrKZJ3TSs3q&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 18:15:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/vlookup/m-p/2898254#M94312</guid>
      <dc:creator>PhilippeMuniesa</dc:creator>
      <dc:date>2022-11-10T18:15:57Z</dc:date>
    </item>
  </channel>
</rss>

