<?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: LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date] in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4027079#M159042</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have an IndexColumn which I made using RANKX, but the problem is that I can't relate my DD/MM column to sort by that IndexColumn or something like that. I need the DD/MM formated column as my x-axis, that's the goal.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since I have multiples DD/MM's which can repeat in all year from my calendarTable, I can't sort my DD/MM formated column by any calendar[Date] or IndexColumns, because DD/MM can repeat tru years, meanwhile it's not allowed for calendar[Date] and IndexColumn to have repeated values.&lt;BR /&gt;&lt;BR /&gt;In order to exemplify, I share below the IndexColumn that I already had, which works just fine to fill my logic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF(ISBLANK(AVERAGE(Table[Value])),
    LASTNONBLANKVALUE(
        FILTER(ALL('.dCalendar'[Index]),'.dCalendar'[Index]&amp;lt;=MAX('.dCalendar'[Index])),
        CALCULATE(AVERAGE(Table[Value]))),
    AVERAGE(Table[Value])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also my other measures related to this visual (which I use calendar[Date]) doesn't break since my IndexColumn is related to my calendar[Date], and that's awesome. But my problem still, because I don't need to use an IndexColumn as my x-axis, I need to use a DD/MM formated column as my x-axis instead.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 14:06:21 GMT</pubDate>
    <dc:creator>bubbledep</dc:creator>
    <dc:date>2024-07-05T14:06:21Z</dc:date>
    <item>
      <title>LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4023139#M158787</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a trouble when I try to filldown some values. Everything works fine when I use my major calendar[Date] as the date column within the table, but when I try to use an "DD/MM" formated column, my filled rows doesn't work and goes blank (I don't know if that's related to multiple days/months from different years and that's why it keeps showing values from different years inside the same month from those different days).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the result expected:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the result I'm getting when using the "DD/MM" formated column:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here below I share you my filldown measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF(ISBLANK(AVERAGE(Table[Value])),
    LASTNONBLANKVALUE(
        FILTER(ALL('.dCalendar'[Date]),'.dCalendar'[Date]&amp;lt;=MAX('.dCalendar'[Date])),
        CALCULATE(AVERAGE(Table[Value]))),
    AVERAGE(Table[Value])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried some solutions like using more then one relationship with the USERELATIONSHIP function and changing the LASTNONBLANKVALUE logic, but none of them worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 16:51:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4023139#M158787</guid>
      <dc:creator>bubbledep</dc:creator>
      <dc:date>2024-07-05T16:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4024311#M158848</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="746328" data-lia-user-login="bubbledep" class="lia-mention lia-mention-user"&gt;bubbledep&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check that after you change the format, its data type is still a date type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please feel free to correct me and provide more information if I have misunderstood you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 06:51:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4024311#M158848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-04T06:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4025398#M158905</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "DD/MM" column is text format yes.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 14:56:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4025398#M158905</guid>
      <dc:creator>bubbledep</dc:creator>
      <dc:date>2024-07-04T14:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4025846#M158948</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="746328" data-lia-user-login="bubbledep" class="lia-mention lia-mention-user"&gt;bubbledep&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because the text format is not available for this part of the expression to be compared, it will result in a blank return:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;'.dCalendar'[Date]&amp;lt;=MAX('.dCalendar'[Date])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 01:01:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4025846#M158948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T01:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4025870#M158954</link>
      <description>&lt;P&gt;so, what is the solution?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 01:13:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4025870#M158954</guid>
      <dc:creator>bubbledep</dc:creator>
      <dc:date>2024-07-05T01:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4025889#M158956</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="746328" data-lia-user-login="bubbledep" class="lia-mention lia-mention-user"&gt;bubbledep&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add an index column via power query to change the date in the expression to index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 01:19:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4025889#M158956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T01:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4025902#M158958</link>
      <description>&lt;P&gt;How the Index column will work in this scenario? Could you provide info, please&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 01:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4025902#M158958</guid>
      <dc:creator>sudhisami_azure</dc:creator>
      <dc:date>2024-07-05T01:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4026056#M158969</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="611307" data-lia-user-login="sudhisami_azure" class="lia-mention lia-mention-user"&gt;sudhisami_azure&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to the power query screen through transform data and click on Add column and it will add a column Index and then click on close and apply. and use the following expression:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF(ISBLANK(AVERAGE(Table[Value])),
    LASTNONBLANKVALUE(
        FILTER(ALL('.dCalendar'[Index]),'.dCalendar'[Index]&amp;lt;=MAX('.dCalendar'[Index])),
        CALCULATE(AVERAGE(Table[Value]))),
    AVERAGE(Table[Value])
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 03:10:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4026056#M158969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T03:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4027079#M159042</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have an IndexColumn which I made using RANKX, but the problem is that I can't relate my DD/MM column to sort by that IndexColumn or something like that. I need the DD/MM formated column as my x-axis, that's the goal.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since I have multiples DD/MM's which can repeat in all year from my calendarTable, I can't sort my DD/MM formated column by any calendar[Date] or IndexColumns, because DD/MM can repeat tru years, meanwhile it's not allowed for calendar[Date] and IndexColumn to have repeated values.&lt;BR /&gt;&lt;BR /&gt;In order to exemplify, I share below the IndexColumn that I already had, which works just fine to fill my logic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF(ISBLANK(AVERAGE(Table[Value])),
    LASTNONBLANKVALUE(
        FILTER(ALL('.dCalendar'[Index]),'.dCalendar'[Index]&amp;lt;=MAX('.dCalendar'[Index])),
        CALCULATE(AVERAGE(Table[Value]))),
    AVERAGE(Table[Value])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also my other measures related to this visual (which I use calendar[Date]) doesn't break since my IndexColumn is related to my calendar[Date], and that's awesome. But my problem still, because I don't need to use an IndexColumn as my x-axis, I need to use a DD/MM formated column as my x-axis instead.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 14:06:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4027079#M159042</guid>
      <dc:creator>bubbledep</dc:creator>
      <dc:date>2024-07-05T14:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4029050#M159231</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="746328" data-lia-user-login="bubbledep" class="lia-mention lia-mention-user"&gt;bubbledep&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Put the DD/MM into X-axis and then use sort by column and select index in there to achieve your desired result.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-desktop#set-the-column-to-use-for-sorting" target="_blank"&gt;Sort one column by another column in Power BI - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 01:40:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4029050#M159231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T01:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANKVALUE doesn't work with other date columns beside the major calendar[Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4030169#M159331</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;"Date_Total_Day" is my index column that I created using RANKX formula and my&amp;nbsp;Date DD/MM column is formatted as "FORMAT(calendar[Date], "DD/MM")". But since I have repeated dates from different years (date 01/02 from years 2022, 2023 and 2024 for example), I'm unable to sort by my index column because can't have repeated values in there like in my Date DD/MM formated column.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 12:08:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANKVALUE-doesn-t-work-with-other-date-columns-beside/m-p/4030169#M159331</guid>
      <dc:creator>bubbledep</dc:creator>
      <dc:date>2024-07-08T12:08:39Z</dc:date>
    </item>
  </channel>
</rss>

