<?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: find latest nonblankvalue and override with text in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2674968#M79880</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, why can't you use Power Query to fill in the blanks? It's a one-click operation.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 08:46:22 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-08-02T08:46:22Z</dc:date>
    <item>
      <title>find latest nonblankvalue and override with text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2673845#M79828</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been struggling for a while with this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have a table with mean, std and date. The issue is that I need to lookup where there are values for mean the date and see if for date or the earlier date which is not blank and override the null in std with the new text value.&lt;/P&gt;&lt;P&gt;So for example for the first one on 10 may 17 there is a mean and i need to override the null in std, when i check in the table i see on 10 may 17 there is a null for std and the first nonblankvalue that is before 10 may is 9 may 17 with y. The null in the table for std has to be overwritten with y. How can I do that?&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The file can be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/userdata21/file/blob/master/Override%20latest%20nonblankvalues%20with%20text%20values.pbix" target="_blank"&gt;file/Override latest nonblankvalues with text values.pbix at master · userdata21/file (github.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 20:08:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2673845#M79828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-01T20:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: find latest nonblankvalue and override with text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2674968#M79880</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, why can't you use Power Query to fill in the blanks? It's a one-click operation.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 08:46:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2674968#M79880</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-08-02T08:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: find latest nonblankvalue and override with text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2674990#M79884</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349489" data-lia-user-login="daXtreme" class="lia-mention lia-mention-user"&gt;daXtreme&lt;/a&gt;&amp;nbsp; i do not need to fill in the blanks. I have to lookup the dates and check the latest value before the date where mean has a value and look up with std for that date or the latest date before ther is a value.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 08:53:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2674990#M79884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-02T08:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: find latest nonblankvalue and override with text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2675714#M79945</link>
      <description>&lt;P&gt;As I said, Power Query has a special method for this: filling blanks with forward/backward values.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 13:35:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2675714#M79945</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-08-02T13:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: find latest nonblankvalue and override with text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2676380#M79990</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349489" data-lia-user-login="daXtreme" class="lia-mention lia-mention-user"&gt;daXtreme&lt;/a&gt;&amp;nbsp;I do not fill in the blanks with backward values. I think maybe I have not explained it very well. But what i have is i have 3 columns, date, mean and everytime there is a mean that is blank is where we have values for std. What I need to do is check the date for when there is a mean lets say 7 august there is a value for mean and then in the same date column i have to check where std is not blank and then find the first instance on that date or before the value for std and put that value in there. So in std column the earlier date there is a value might be 5 august which is c for example. Then in the table it has to say c next to mean and date&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 18:30:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2676380#M79990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-02T18:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: find latest nonblankvalue and override with text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2676385#M79992</link>
      <description>&lt;P&gt;it is not about finding the first value or latest value and filling it with that value, but i need to dynmically check when date and mean has a value and lookthat value up ifor std where there was a value on that day or ealier and take the first with each row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 18:32:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2676385#M79992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-02T18:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: find latest nonblankvalue and override with text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2676591#M80013</link>
      <description>&lt;P&gt;date |&amp;nbsp; mean&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date | std&lt;/P&gt;&lt;P&gt;27.4&amp;nbsp; &amp;nbsp; &amp;nbsp;34&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 24.4&amp;nbsp; &amp;nbsp; c&lt;/P&gt;&lt;P&gt;12.3&amp;nbsp; &amp;nbsp; &amp;nbsp;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12.3&amp;nbsp; &amp;nbsp;blank&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.3 x&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9.3&amp;nbsp; b&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;output i want to see:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;date |&amp;nbsp; mean&amp;nbsp; | std&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;27.4&amp;nbsp; &amp;nbsp; &amp;nbsp;34&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;12.3&amp;nbsp; &amp;nbsp; &amp;nbsp;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there are two different table 1 and 2 and what i need to do is lookup if date in first table is 12.3 then i need to check in table 2 if there is a std for 12.3 if not i have to take the latest value that is not blank, in this case it would be x.&lt;/P&gt;&lt;P&gt;How would I do that in DAX&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 21:32:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2676591#M80013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-02T21:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: find latest nonblankvalue and override with text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2719847#M82889</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;create the measures below,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mindiff = 
var _v1=CALCULATE(MAX(Table2[date]),FILTER(ALL(Table2),Table2[date]&amp;lt;MIN(Table1[date])))
var _v2=CALCULATE(MIN(Table2[date]),FILTER(ALL(Table2),Table2[date]&amp;gt;MIN(Table1[date])))
return SWITCH(TRUE(),
ISBLANK(_v2)&amp;amp;&amp;amp;_v1&amp;lt;&amp;gt;BLANK(),_v1,
ISBLANK(_v1)&amp;amp;&amp;amp;_v2&amp;lt;&amp;gt;BLANK(),_v2,
datediff(_v1,MIN(Table1[date]),DAY) &amp;lt;datediff(MIN(Table1[date]),_v2,DAY),_v1,
_v2) &lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE(MAX(Table2[std]),FILTER(ALL(Table2),Table2[date]=[mindiff]))
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Tang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 10:00:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-latest-nonblankvalue-and-override-with-text/m-p/2719847#M82889</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-08-23T10:00:09Z</dc:date>
    </item>
  </channel>
</rss>

