<?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: Fill blank values with previous value in the same column (linear increas) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/916803#M8909</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Yes we absolutely can! I created this measure (it will only work in a table visual with all the rows of the original table):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FilledAsMeasure = 
IF(SELECTEDVALUE(Table1[Value]) = BLANK(),
    VAR _curRank = SELECTEDVALUE(Table1[Ranking])
    VAR _lastNonBlankRank = MAXX(FILTER(ALL(table1), Table1[Ranking] &amp;lt; _curRank &amp;amp;&amp;amp; Table1[Value] &amp;lt;&amp;gt; BLANK()), Table1[Ranking])
    VAR _lastNonBlankValue = LOOKUPVALUE('Table1'[Value], Table1[Ranking], _lastNonBlankRank)
    RETURN
    _lastNonBlankValue * POWER(1+Growth[Growth Value], _curRank - _lastNonBlankRank), 
    SELECTEDVALUE(Table1[Value]))&lt;/LI-CODE&gt;&lt;P&gt;I created a parameter called Growth with min=0, max = 0.2 and step =0.01.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find my PBIX here (Table1 and page AndresSantest, ignore other tables please).:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!Ancq8HFZYL_aiJByiLcdu4Aniq5kvA?e=MD7x8J" target="_blank" rel="noopener"&gt;https://1drv.ms/u/s!Ancq8HFZYL_aiJByiLcdu4Aniq5kvA?e=MD7x8J&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this solves your issue and please mark it as the solution if it does &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Djerro123&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;If this answered your question, please &lt;STRONG&gt;mark it as the Solution&lt;/STRONG&gt;. This also helps others to find what they are looking for.&lt;/P&gt;&lt;P&gt;Keep those &lt;STRONG&gt;thumbs up&lt;/STRONG&gt; coming! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2020 17:55:40 GMT</pubDate>
    <dc:creator>JarroVGIT</dc:creator>
    <dc:date>2020-01-30T17:55:40Z</dc:date>
    <item>
      <title>Fill blank values with previous value in the same column (linear increas)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/915255#M8863</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am quite desperate with this problem so i would like to know if you could help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this table (Table1) :&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;01/2012&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;0,78330993&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/2013&lt;/TD&gt;&lt;TD&gt;0,80190761&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/2014&lt;/TD&gt;&lt;TD&gt;0,82355707&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/2015&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/2016&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/2017&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i need to fill blank rows with the previous year value multiplied by (1+0.02). For example, for row 01/2015 it should be Value in 01/2014*(1+0.02). A linear increase applied only for the blank rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result should be:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Fecha&lt;/TD&gt;&lt;TD&gt;Total Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;domingo, 1 de enero de 2012&lt;/TD&gt;&lt;TD&gt;0,78330993&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;martes, 1 de enero de 2013&lt;/TD&gt;&lt;TD&gt;0,80190761&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;miércoles, 1 de enero de 2014&lt;/TD&gt;&lt;TD&gt;0,82355707&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;jueves, 1 de enero de 2015&lt;/TD&gt;&lt;TD&gt;0,84002821&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;viernes, 1 de enero de 2016&lt;/TD&gt;&lt;TD&gt;0,85682877&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;domingo, 1 de enero de 2017&lt;/TD&gt;&lt;TD&gt;0,87396535&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All help will be appreciate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrea.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 15:24:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/915255#M8863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T15:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fill blank values with previous value in the same column (linear increas)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/915578#M8875</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;&lt;P&gt;These type of questions are the most fun because it allows me to really be creative &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; Anyway, here is a solution for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I have created a ranking column based on date. The reason is that I don't know if your real dataset has patches of empty values or only a few empty rows at the end of the dataset. Either way, I need to fill it up based on the last known value with a growth factor of 1.02. Thus, a ranking will come in handy later:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ranking = RANKX(Table1, Table1[Date], , ASC, Dense)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Next, I created a calculated column with the following DAX:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Filled = IF(Table1[Value] = BLANK(),
    VAR _curRank = Table1[Ranking]
    VAR _lastNonBlankRank = MAXX(FILTER(table1, Table1[Ranking] &amp;lt; _curRank &amp;amp;&amp;amp; Table1[Value] &amp;lt;&amp;gt; BLANK()), Table1[Ranking])
    VAR _lastNonBlankValue = LOOKUPVALUE('Table1'[Value], Table1[Ranking], _lastNonBlankRank)
    RETURN
    _lastNonBlankValue * POWER(1.02, _curRank - _lastNonBlankRank), 
    Table1[Value])&lt;/LI-CODE&gt;&lt;P&gt;Basically it returns the value in the [Value] column if there is one, but if there isn't we are going to do something special. First we store some variables, like current row ranking number, last ranking number that has a non-blank value in the [Value] column and the actual last non-blank value of the [Value] column. Then we return the last non-blank value * 1.02 ^ (thisrow ranking - last non blank ranking). This returns the following: (I changed the data layout to a maximum of 8 decimals so this would be easily compared to your example)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is clear and meets your requirements &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Djerro123&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;If this answered your question, please &lt;STRONG&gt;mark it as the Solution&lt;/STRONG&gt;. This also helps others to find what they are looking for.&lt;/P&gt;&lt;P&gt;Keep those &lt;STRONG&gt;thumbs up&lt;/STRONG&gt; coming! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 20:41:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/915578#M8875</guid>
      <dc:creator>JarroVGIT</dc:creator>
      <dc:date>2020-01-29T20:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fill blank values with previous value in the same column (linear increas)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/916153#M8884</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="137611" data-lia-user-login="JarroVGIT" class="lia-mention lia-mention-user"&gt;JarroVGIT&lt;/a&gt;&amp;nbsp;! It works perfect!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, now my client ask me to have this 0.02 "variable". I mean, they want me to have a "what if" paramter that switch from 0.02 to 0.1 with a slicer that modify the calculation of the column. It is possible to have it like that? I know that columns are not "dynamic" and they can not be modifed by a parameter but maybe if i change the column to a mesure... it's possible? How can i do it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 08:20:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/916153#M8884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-30T08:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fill blank values with previous value in the same column (linear increas)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/916803#M8909</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes we absolutely can! I created this measure (it will only work in a table visual with all the rows of the original table):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FilledAsMeasure = 
IF(SELECTEDVALUE(Table1[Value]) = BLANK(),
    VAR _curRank = SELECTEDVALUE(Table1[Ranking])
    VAR _lastNonBlankRank = MAXX(FILTER(ALL(table1), Table1[Ranking] &amp;lt; _curRank &amp;amp;&amp;amp; Table1[Value] &amp;lt;&amp;gt; BLANK()), Table1[Ranking])
    VAR _lastNonBlankValue = LOOKUPVALUE('Table1'[Value], Table1[Ranking], _lastNonBlankRank)
    RETURN
    _lastNonBlankValue * POWER(1+Growth[Growth Value], _curRank - _lastNonBlankRank), 
    SELECTEDVALUE(Table1[Value]))&lt;/LI-CODE&gt;&lt;P&gt;I created a parameter called Growth with min=0, max = 0.2 and step =0.01.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find my PBIX here (Table1 and page AndresSantest, ignore other tables please).:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!Ancq8HFZYL_aiJByiLcdu4Aniq5kvA?e=MD7x8J" target="_blank" rel="noopener"&gt;https://1drv.ms/u/s!Ancq8HFZYL_aiJByiLcdu4Aniq5kvA?e=MD7x8J&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this solves your issue and please mark it as the solution if it does &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Djerro123&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;If this answered your question, please &lt;STRONG&gt;mark it as the Solution&lt;/STRONG&gt;. This also helps others to find what they are looking for.&lt;/P&gt;&lt;P&gt;Keep those &lt;STRONG&gt;thumbs up&lt;/STRONG&gt; coming! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 17:55:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/916803#M8909</guid>
      <dc:creator>JarroVGIT</dc:creator>
      <dc:date>2020-01-30T17:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fill blank values with previous value in the same column (linear increas)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/921323#M9098</link>
      <description>&lt;P&gt;Thank you!! It works perfect!!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_heart_eyes:"&gt;😍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 14:42:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/921323#M9098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-04T14:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fill blank values with previous value in the same column (linear increas)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/2278139#M55667</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="137611" data-lia-user-login="JarroVGIT" class="lia-mention lia-mention-user"&gt;JarroVGIT&lt;/a&gt;&amp;nbsp;! Just wanted to say I used this solution (with a few tweaks) to figure out how to create average values falling in between week 52 of each year and week 1 of the next -- couldn't for the life of me figure it out, so really appreciate this!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 18:14:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/2278139#M55667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-11T18:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fill blank values with previous value in the same column (linear increas)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/3886801#M151624</link>
      <description>&lt;P&gt;Thank you.You have no idea how you saved my life after tons of research about this calculation&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 17:29:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-blank-values-with-previous-value-in-the-same-column-linear/m-p/3886801#M151624</guid>
      <dc:creator>SiriAmma</dc:creator>
      <dc:date>2024-05-02T17:29:07Z</dc:date>
    </item>
  </channel>
</rss>

