<?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: Should I even use firstnonblank? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Should-I-even-use-firstnonblank/m-p/1690635#M34766</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you're 100% sure the result will be unique with those filters, you could use another aggregation as well (or no aggregation at all):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;CALCULATETABLE ( 
	VALUES/DISTINCT/MIN/MAX ( VrijgaveCompleetheid[crc06_vrijgavestatus] ),
	&amp;lt;filters&amp;gt;
) = "Vrijgegeven"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should work as well, without the need of using FIRSTNONBLANK.&lt;BR /&gt;&lt;BR /&gt;However, be aware of the fact that VALUES will raise an error in the result is not unique (i.e. if you have two or more rows as a result). In that case, an aggregator like MIN/MAX would do the trick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 22:55:07 GMT</pubDate>
    <dc:creator>AmedeoM</dc:creator>
    <dc:date>2021-02-25T22:55:07Z</dc:date>
    <item>
      <title>Should I even use firstnonblank?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Should-I-even-use-firstnonblank/m-p/1683904#M34590</link>
      <description>&lt;P&gt;I'm using the approach below to filter a table for a specific value (knowing the result is unique) by using Firstnonblank.&amp;nbsp;&lt;BR /&gt;Are there any approaches that are more effecient to achieve the same? I'm checking if the line returned contains the value "vrijgegeven" in the particular column.&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>Tue, 23 Feb 2021 14:45:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Should-I-even-use-firstnonblank/m-p/1683904#M34590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-23T14:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Should I even use firstnonblank?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Should-I-even-use-firstnonblank/m-p/1684059#M34594</link>
      <description>&lt;P&gt;For optimization of LASTNONBLANK and similar functions, please see&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/optimizing-lastnonblank-and-lastnonblankvalue-calculations/" target="_blank"&gt;Optimizing LASTNONBLANK and LASTNONBLANKVALUE calculations - SQLBI&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 15:42:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Should-I-even-use-firstnonblank/m-p/1684059#M34594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-23T15:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Should I even use firstnonblank?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Should-I-even-use-firstnonblank/m-p/1690635#M34766</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you're 100% sure the result will be unique with those filters, you could use another aggregation as well (or no aggregation at all):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;CALCULATETABLE ( 
	VALUES/DISTINCT/MIN/MAX ( VrijgaveCompleetheid[crc06_vrijgavestatus] ),
	&amp;lt;filters&amp;gt;
) = "Vrijgegeven"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should work as well, without the need of using FIRSTNONBLANK.&lt;BR /&gt;&lt;BR /&gt;However, be aware of the fact that VALUES will raise an error in the result is not unique (i.e. if you have two or more rows as a result). In that case, an aggregator like MIN/MAX would do the trick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 22:55:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Should-I-even-use-firstnonblank/m-p/1690635#M34766</guid>
      <dc:creator>AmedeoM</dc:creator>
      <dc:date>2021-02-25T22:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Should I even use firstnonblank?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Should-I-even-use-firstnonblank/m-p/1691210#M34776</link>
      <description>&lt;P&gt;Thanks&amp;nbsp; for sharing your approach Amedeo, this works indeed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I assuming for now that using firstnonblank in this particular case is not "wrong". I actually felt that there must me be a more suitable approach for this simple task.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 07:01:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Should-I-even-use-firstnonblank/m-p/1691210#M34776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-26T07:01:22Z</dc:date>
    </item>
  </channel>
</rss>

