<?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: Replicate same value in all month where revenue is blank till we have new non blank revenue. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicate-same-value-in-all-month-where-revenue-is-blank-till-we/m-p/3482026#M133146</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;you can do this by creating a calculated column&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revenue_Filled =&lt;BR /&gt;VAR _currentDate = MAX('Calendar'[Date])&lt;BR /&gt;VAR _lastNonBlankDate =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX('Calendar'[Date]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Calendar'),&lt;BR /&gt;'Calendar'[Date] &amp;lt;= _currentDate &amp;amp;&amp;amp;&lt;BR /&gt;NOT(ISBLANK(Price_Index_Query[Price_Index_Working]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX(Price_Index_Query[Price_Index_Working]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Calendar'),&lt;BR /&gt;'Calendar'[Date] = _lastNonBlankDate&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This formula works by finding the last date that has a non-blank revenue value for each row, and then returning the revenue value for that date. This way, the blanks are filled with the previous non-blank value until a new non-blank value is encountered.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know is this work&lt;BR /&gt;@ me in replies or I'll lose your thread!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 22:37:20 GMT</pubDate>
    <dc:creator>DallasBaba</dc:creator>
    <dc:date>2023-10-17T22:37:20Z</dc:date>
    <item>
      <title>Replicate same value in all month where revenue is blank till we have new non blank revenue.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicate-same-value-in-all-month-where-revenue-is-blank-till-we/m-p/3481285#M133099</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Price Index = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Price_Index_Query&lt;/SPAN&gt;&lt;SPAN&gt;[Price_Index_Working]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is the DAX I am currently using it replicates only for one month needs to replicate till we find a value in invoice revenue.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Oct 2023 14:20:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicate-same-value-in-all-month-where-revenue-is-blank-till-we/m-p/3481285#M133099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-17T14:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate same value in all month where revenue is blank till we have new non blank revenue.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicate-same-value-in-all-month-where-revenue-is-blank-till-we/m-p/3482026#M133146</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;you can do this by creating a calculated column&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revenue_Filled =&lt;BR /&gt;VAR _currentDate = MAX('Calendar'[Date])&lt;BR /&gt;VAR _lastNonBlankDate =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX('Calendar'[Date]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Calendar'),&lt;BR /&gt;'Calendar'[Date] &amp;lt;= _currentDate &amp;amp;&amp;amp;&lt;BR /&gt;NOT(ISBLANK(Price_Index_Query[Price_Index_Working]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX(Price_Index_Query[Price_Index_Working]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Calendar'),&lt;BR /&gt;'Calendar'[Date] = _lastNonBlankDate&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This formula works by finding the last date that has a non-blank revenue value for each row, and then returning the revenue value for that date. This way, the blanks are filled with the previous non-blank value until a new non-blank value is encountered.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know is this work&lt;BR /&gt;@ me in replies or I'll lose your thread!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 22:37:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicate-same-value-in-all-month-where-revenue-is-blank-till-we/m-p/3482026#M133146</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2023-10-17T22:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate same value in all month where revenue is blank till we have new non blank revenue.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicate-same-value-in-all-month-where-revenue-is-blank-till-we/m-p/3490874#M133661</link>
      <description>&lt;P&gt;Thank you very much for the response .it works&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 09:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicate-same-value-in-all-month-where-revenue-is-blank-till-we/m-p/3490874#M133661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-23T09:11:59Z</dc:date>
    </item>
  </channel>
</rss>

