<?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: Hi all ,i have a requirement below and getting argument 4 lookup value required in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-all-i-have-a-requirement-below-and-getting-argument-4-lookup/m-p/3583260#M138243</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the corrected version of your code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INOUT =&lt;BR /&gt;IF (&lt;BR /&gt;OR (&lt;BR /&gt;AND (&lt;BR /&gt;NOT ISBLANK (&lt;BR /&gt;LOOKUPVALUE (&lt;BR /&gt;'ASP vw_A'[businessUnitName],&lt;BR /&gt;'ASP vw_A'[businessUnitNumber],&lt;BR /&gt;'ASP vw_B'[CustomerNumber]&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;NOT OR (&lt;BR /&gt;SELECTEDVALUE('ASP vw_A'[BU Type]) IN {"UT", "DT", "PT"}&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;'ASP vw_B'[CustomerNumber] = 5150&lt;BR /&gt;),&lt;BR /&gt;"IN",&lt;BR /&gt;"OUT"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this code, I've corrected the LOOKUPVALUE function to use the correct syntax. The first argument of LOOKUPVALUE is the column that contains the values you want to retrieve, and the second argument is the column used for matching. Make sure you replace 'ASP vw_A'[businessUnitName] with the actual column you want to retrieve values from and 'ASP vw_A'[businessUnitNumber] with the column used for matching.&lt;/P&gt;&lt;P&gt;If you're still facing issues, please provide more details or context about the tables and columns you're working with, and I'll do my best to assist you.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2023 05:59:13 GMT</pubDate>
    <dc:creator>123abc</dc:creator>
    <dc:date>2023-12-14T05:59:13Z</dc:date>
    <item>
      <title>Hi all ,i have a requirement below and getting argument 4 lookup value required</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-all-i-have-a-requirement-below-and-getting-argument-4-lookup/m-p/3582811#M138228</link>
      <description>&lt;P&gt;&lt;BR /&gt;if (custoemr is in A table AND if the BU type is not "UT", "DT", "PT") or if customer number = 5150&lt;BR /&gt;then = 'In' else 'OUT'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INOUT=&lt;BR /&gt;IF (&lt;BR /&gt;OR (&lt;BR /&gt;AND (&lt;BR /&gt;NOT ISBLANK (&lt;BR /&gt;LOOKUPVALUE (&lt;BR /&gt;'ASP vw_A'[businessUnitName],&lt;BR /&gt;'ASP vw_A'[businessUnitNumber],&lt;BR /&gt;'ASP vw_B'[CustomerNumber]&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;NOT OR (&lt;BR /&gt;SELECTEDVALUE('ASP vw_A'[BU Type]) IN {"UT", "DT", "PT"}&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;'ASP vw_B'[CustomerNumber] = 5150&lt;BR /&gt;),&lt;BR /&gt;"IN",&lt;BR /&gt;"OUT"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 02:02:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-all-i-have-a-requirement-below-and-getting-argument-4-lookup/m-p/3582811#M138228</guid>
      <dc:creator>rupa1006</dc:creator>
      <dc:date>2023-12-14T02:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hi all ,i have a requirement below and getting argument 4 lookup value required</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-all-i-have-a-requirement-below-and-getting-argument-4-lookup/m-p/3583260#M138243</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the corrected version of your code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INOUT =&lt;BR /&gt;IF (&lt;BR /&gt;OR (&lt;BR /&gt;AND (&lt;BR /&gt;NOT ISBLANK (&lt;BR /&gt;LOOKUPVALUE (&lt;BR /&gt;'ASP vw_A'[businessUnitName],&lt;BR /&gt;'ASP vw_A'[businessUnitNumber],&lt;BR /&gt;'ASP vw_B'[CustomerNumber]&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;NOT OR (&lt;BR /&gt;SELECTEDVALUE('ASP vw_A'[BU Type]) IN {"UT", "DT", "PT"}&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;'ASP vw_B'[CustomerNumber] = 5150&lt;BR /&gt;),&lt;BR /&gt;"IN",&lt;BR /&gt;"OUT"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this code, I've corrected the LOOKUPVALUE function to use the correct syntax. The first argument of LOOKUPVALUE is the column that contains the values you want to retrieve, and the second argument is the column used for matching. Make sure you replace 'ASP vw_A'[businessUnitName] with the actual column you want to retrieve values from and 'ASP vw_A'[businessUnitNumber] with the column used for matching.&lt;/P&gt;&lt;P&gt;If you're still facing issues, please provide more details or context about the tables and columns you're working with, and I'll do my best to assist you.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 05:59:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-all-i-have-a-requirement-below-and-getting-argument-4-lookup/m-p/3583260#M138243</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-12-14T05:59:13Z</dc:date>
    </item>
  </channel>
</rss>

