<?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 DAX Formula IF ISBLANK with LOOKUPVALUE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-IF-ISBLANK-with-LOOKUPVALUE/m-p/1175321#M18247</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The following lookupvalue formula works however the output is not quite right i.e. the lookupvalue is not including ALL blank cells, just some. Eg. if lookup cell is blank, return "Rest of Network" however I found numerous blank cells in the data that match the criteria but were NOT returning "Rest of Network", instead it was returning "" (blank).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=IF('Flat File Data'[OnTime]="No" &amp;amp;&amp;amp; ISBLANK(LOOKUPVALUE(DelayedScans[Delay Point],DelayedScans[Item_Id],'Flat File Data'[Item_Id])),"Rest of Network",IF('Flat File Data'[OnTime]="Yes","On-Time",LOOKUPVALUE(DelayedScans[Delay Point],DelayedScans[Item_Id],'Flat File Data'[Item_Id])))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2020 07:09:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-23T07:09:33Z</dc:date>
    <item>
      <title>DAX Formula IF ISBLANK with LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-IF-ISBLANK-with-LOOKUPVALUE/m-p/1175321#M18247</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The following lookupvalue formula works however the output is not quite right i.e. the lookupvalue is not including ALL blank cells, just some. Eg. if lookup cell is blank, return "Rest of Network" however I found numerous blank cells in the data that match the criteria but were NOT returning "Rest of Network", instead it was returning "" (blank).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=IF('Flat File Data'[OnTime]="No" &amp;amp;&amp;amp; ISBLANK(LOOKUPVALUE(DelayedScans[Delay Point],DelayedScans[Item_Id],'Flat File Data'[Item_Id])),"Rest of Network",IF('Flat File Data'[OnTime]="Yes","On-Time",LOOKUPVALUE(DelayedScans[Delay Point],DelayedScans[Item_Id],'Flat File Data'[Item_Id])))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 07:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-IF-ISBLANK-with-LOOKUPVALUE/m-p/1175321#M18247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-23T07:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula IF ISBLANK with LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-IF-ISBLANK-with-LOOKUPVALUE/m-p/1175394#M18249</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you code looks ok, but without any sample data I can't help you understand why it does not work as intended.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Sturla&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 07:39:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-IF-ISBLANK-with-LOOKUPVALUE/m-p/1175394#M18249</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2020-06-23T07:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula IF ISBLANK with LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-IF-ISBLANK-with-LOOKUPVALUE/m-p/1175668#M18254</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code look okay, but try using BLANK().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this simplified code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column =
VAR _lookup =
    LOOKUPVALUE (
        DelayedScans[Delay Point],
        DelayedScans[Item_Id], 'Flat File Data'[Item_Id]
    )
RETURN
    SWITCH (
        TRUE (),
        'Flat File Data'[OnTime] = "No"
            &amp;amp;&amp;amp; _lookup
                = BLANK (), "Rest of Network",
        'Flat File Data'[OnTime] = "Yes"
            || 'Flat File Data'[OnTime] = "On-Time", _lookup
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, hope the lookup value is returning a String.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A good video on Blank(), ISBLANK(), NULL and Empties.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=C26DQkb4hyY" target="_blank"&gt;https://www.youtube.com/watch?v=C26DQkb4hyY&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 09:12:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-IF-ISBLANK-with-LOOKUPVALUE/m-p/1175668#M18254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-23T09:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula IF ISBLANK with LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-IF-ISBLANK-with-LOOKUPVALUE/m-p/1175860#M18261</link>
      <description>&lt;P&gt;Thank you so much, that worked perfectly...just had to remove "||"&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 10:18:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-IF-ISBLANK-with-LOOKUPVALUE/m-p/1175860#M18261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-23T10:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula IF ISBLANK with LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-IF-ISBLANK-with-LOOKUPVALUE/m-p/4175326#M165811</link>
      <description>&lt;P&gt;I am having a similar issue.&amp;nbsp; My lookupvalue formula is pulling in the Avg price of year, model, finish and market.&amp;nbsp; it works for every model but one. hmmmmmmmmmmmmm&amp;nbsp; &amp;nbsp;Does anyone have any idea why and what I can do to fix?&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;Avg Price = LOOKUPVALUE(Costs[Weighted OE/OES Price],Costs[AOP Year],BumperOEM[Year],Costs[Model],BumperOEM[Model],Costs[Finish],BumperOEM[Finish],Costs[PL Market],BumperOEM[PL Market])&lt;/P&gt;&lt;P&gt;I have checked all my raw data and it is fine. I have checked the costs table and prices are there with all above filters.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no idea what is causing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 16:28:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-IF-ISBLANK-with-LOOKUPVALUE/m-p/4175326#M165811</guid>
      <dc:creator>yaya1974</dc:creator>
      <dc:date>2024-09-25T16:28:03Z</dc:date>
    </item>
  </channel>
</rss>

