<?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 How to display the firstnonblank value of an existing measure? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2317728#M57802</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone could help.&lt;/P&gt;&lt;P&gt;I would like to display the firstnonblank value from a dax measure which is displayed as column "Which Product Exceeds Forecast" in a card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What was managed:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;to get the first date when sales &amp;gt; forecast in a card because the filtered column was date&lt;/LI&gt;&lt;LI&gt;to get the Sales Rep based on which Sales Rep has exceeded each other end the forecast&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;What I am struggling with, is to display in a card the firstnonblank value from the last column which is a measure itself&lt;/FONT&gt;&lt;/STRONG&gt;&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;Many thanks in advance!&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, 03 Feb 2022 13:06:38 GMT</pubDate>
    <dc:creator>queryuser</dc:creator>
    <dc:date>2022-02-03T13:06:38Z</dc:date>
    <item>
      <title>How to display the firstnonblank value of an existing measure?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2317728#M57802</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone could help.&lt;/P&gt;&lt;P&gt;I would like to display the firstnonblank value from a dax measure which is displayed as column "Which Product Exceeds Forecast" in a card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What was managed:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;to get the first date when sales &amp;gt; forecast in a card because the filtered column was date&lt;/LI&gt;&lt;LI&gt;to get the Sales Rep based on which Sales Rep has exceeded each other end the forecast&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;What I am struggling with, is to display in a card the firstnonblank value from the last column which is a measure itself&lt;/FONT&gt;&lt;/STRONG&gt;&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;Many thanks in advance!&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, 03 Feb 2022 13:06:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2317728#M57802</guid>
      <dc:creator>queryuser</dc:creator>
      <dc:date>2022-02-03T13:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the firstnonblank value of an existing measure?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2318057#M57827</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="335746" data-lia-user-login="queryuser" class="lia-mention lia-mention-user"&gt;queryuser&lt;/a&gt; , is &lt;/P&gt;
&lt;P&gt;firstnonblankvalues(Table[Date], [Which Product Exceeds Forecast])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not work ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this does not help&lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 16:08:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2318057#M57827</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-03T16:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the firstnonblank value of an existing measure?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2318071#M57829</link>
      <description>&lt;P&gt;unfortunately not, already tried it before and gave me date &amp;amp; time instead&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 16:17:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2318071#M57829</guid>
      <dc:creator>queryuser</dc:creator>
      <dc:date>2022-02-03T16:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the firstnonblank value of an existing measure?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2327736#M58343</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a solution by creating 4 measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;M1&lt;/STRONG&gt;&amp;nbsp; =if(and(sales rep 1 &amp;gt; sales rep 2, sales rep 1 &amp;gt; forecast, "sales rep 1",(if(and(sales rep 2 &amp;gt; sales rep 1, sales rep&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;gt; forecast, "sales rep 2")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;M2&lt;/STRONG&gt;&amp;nbsp; = Max (sales rep 1, sales rep 2)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;M3&amp;nbsp;&lt;/STRONG&gt; = if ( &lt;STRONG&gt;M2&lt;/STRONG&gt;&amp;nbsp;&amp;gt; forecast, &lt;STRONG&gt;M1&lt;/STRONG&gt;, Blank())&lt;/P&gt;&lt;P&gt;M4 =&amp;nbsp;&lt;SPAN&gt;FIRSTNONBLANKVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;M3&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&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>Wed, 09 Feb 2022 09:05:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2327736#M58343</guid>
      <dc:creator>queryuser</dc:creator>
      <dc:date>2022-02-09T09:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the firstnonblank value of an existing measure?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2327902#M58349</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="335746" data-lia-user-login="queryuser" class="lia-mention lia-mention-user"&gt;queryuser&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;You could create a measure or use first value in card .&lt;/P&gt;
&lt;P&gt;1.create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;exceeded date = IF(MAX([Date])= CALCULATE(MIN('Table'[Date]),FILTER(ALL('Table'),[Sales Rep 1]&amp;gt;[Sale Forecast]||[Sales Rep 2]&amp;gt;[Sale Forecast]))||MAX([Date])=MAXX(ALL('Table'),[Date]),MAX([Date]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;which = IF([exceeded date]&amp;lt;&amp;gt;BLANK(), 
           IF(MAX([Date])&amp;lt;MAXX(ALL('Table'),[Date]),
               IF( CALCULATE(SUM('Table'[Sales Rep 1]),FILTER('Table',[Date]=[exceeded date]))&amp;gt;SUM('Table'[Sale Forecast]),"Sales Rep1","Sales Rep2"),
                   IF(SUM('Table'[Sales Rep 1])&amp;gt;SUM('Table'[Sales Rep 2]),"Sales Rep1","Sales Rep2")))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Card = CALCULATE([which],FILTER('Table',[Date]= MinX(FILTER(ALL('Table'),[which]&amp;lt;&amp;gt;BLANK()),[Date])))&lt;/LI-CODE&gt;
&lt;P&gt;2.Or use a first value.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team_ Yalan Wu&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 09:58:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2327902#M58349</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-02-09T09:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the firstnonblank value of an existing measure?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2327912#M58350</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the effort! Will take a look at the solution in more detail.&lt;/P&gt;&lt;P&gt;For the moment will keep the actual measures in place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 10:01:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-the-firstnonblank-value-of-an-existing-measure/m-p/2327912#M58350</guid>
      <dc:creator>queryuser</dc:creator>
      <dc:date>2022-02-09T10:01:20Z</dc:date>
    </item>
  </channel>
</rss>

