<?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 Missing data in Firstnonblank in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-data-in-Firstnonblank/m-p/1933503#M42005</link>
    <description>&lt;P&gt;Hello, I am new to this site and also a beginner PBI user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem using Lookupvalue and Firtnonblank, I hope someone can help me figure out.&lt;/P&gt;&lt;P&gt;I used SubDiv = Calculate(Firstnonblank(Ewswb(Subdiv),1),&lt;BR /&gt;Filter(Ewswb, Ewswb(Diesicom)=Ref100(Diesicom))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of 6700 products to lookup, there are 700 products which are empty/blanks. I&amp;nbsp;double check my source data, and confirmed all informations are available. I asked my friend for help but he also cannot figure it out why some of the rows are blank and some has data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone can help me, as I am stressed out already figuring what is the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA.&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>Thu, 01 Jul 2021 15:06:09 GMT</pubDate>
    <dc:creator>smurfette29</dc:creator>
    <dc:date>2021-07-01T15:06:09Z</dc:date>
    <item>
      <title>Missing data in Firstnonblank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-data-in-Firstnonblank/m-p/1933503#M42005</link>
      <description>&lt;P&gt;Hello, I am new to this site and also a beginner PBI user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem using Lookupvalue and Firtnonblank, I hope someone can help me figure out.&lt;/P&gt;&lt;P&gt;I used SubDiv = Calculate(Firstnonblank(Ewswb(Subdiv),1),&lt;BR /&gt;Filter(Ewswb, Ewswb(Diesicom)=Ref100(Diesicom))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of 6700 products to lookup, there are 700 products which are empty/blanks. I&amp;nbsp;double check my source data, and confirmed all informations are available. I asked my friend for help but he also cannot figure it out why some of the rows are blank and some has data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone can help me, as I am stressed out already figuring what is the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA.&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>Thu, 01 Jul 2021 15:06:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-data-in-Firstnonblank/m-p/1933503#M42005</guid>
      <dc:creator>smurfette29</dc:creator>
      <dc:date>2021-07-01T15:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Missing data in Firstnonblank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-data-in-Firstnonblank/m-p/1933548#M42006</link>
      <description>&lt;P&gt;I'm not sure exactly, but the code above isn't valid at all. You have no columns. Paste your code in&amp;nbsp;&lt;A href="https://www.daxformatter.com/" target="_blank"&gt;DAX Formatter by SQLBI&lt;/A&gt;&amp;nbsp;and copy the results back here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the FIRSTNONBLANK() function, what is the ,1 doing? You cannot evaluate 1 and get anything but 1. FIRSTNONBLANK() should be:&lt;BR /&gt;&lt;BR /&gt;FIRSTNONBLANK(Table[Field], [Measure or Expression]), so&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;First Date =
FIRSTNONBLANK(
    'Date'[Date],
    CALCULATE(
        SUMX(
            Sales,
            Sales[Price] * Sales[Quantity]
        )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Will return the first date in your model for which there are sales.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 15:22:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-data-in-Firstnonblank/m-p/1933548#M42006</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2021-07-01T15:22:15Z</dc:date>
    </item>
  </channel>
</rss>

