<?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: DAX repeating values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2945322#M97403</link>
    <description>&lt;P&gt;Hi! Thank you so so much for your help! I recreated the file with test data. I have 5 columns:&lt;BR /&gt;Date&lt;/P&gt;&lt;P&gt;Count of Incidents&lt;/P&gt;&lt;P&gt;Count Incidents Sum (measure)&lt;BR /&gt;Count Incidents rolling average (measure)&lt;/P&gt;&lt;P&gt;Cumulative Forecast (measure)&lt;BR /&gt;&lt;BR /&gt;I want to repeat the forecasted value for the next month (9 in this case), and not continue the rolling average. So Jan 2023, Feb 2023, Mar 2023, etc., should all equal 9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your help!&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 19:06:27 GMT</pubDate>
    <dc:creator>Benedict21</dc:creator>
    <dc:date>2022-12-02T19:06:27Z</dc:date>
    <item>
      <title>DAX repeating values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2933870#M96599</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a forecast by averaging the previous 6 months data. I can get those values no problem. However, I want to repeat next month's forecast for the upcoming months. For example, I would like December 2022 value to repeat for January 2023, February 2023, etc. I tried taking the MAX value from the Incidents Forecast measure, but you cannot use that function on a measure. Any suggestions on how? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;DAX measures:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Incidents Forecast =&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;VAR IncLM = CALCULATE([Incidents Average per Year Month], DATEADD(Dates[Date], -1, MONTH))&lt;/P&gt;&lt;P&gt;VAR Inc2M = CALCULATE([Incidents Average per Year Month], DATEADD(Dates[Date], -2, MONTH))&lt;/P&gt;&lt;P&gt;VAR Inc3M = CALCULATE([Incidents Average per Year Month], DATEADD(Dates[Date], -3, MONTH))&lt;/P&gt;&lt;P&gt;VAR Inc4M = CALCULATE([Incidents Average per Year Month], DATEADD(Dates[Date], -4, MONTH))&lt;/P&gt;&lt;P&gt;VAR Inc5M = CALCULATE([Incidents Average per Year Month], DATEADD(Dates[Date], -5, MONTH))&lt;/P&gt;&lt;P&gt;VAR Inc6M = CALCULATE([Incidents Average per Year Month], DATEADD(Dates[Date], -6, MONTH))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Return&lt;/P&gt;&lt;P&gt;DIVIDE((IncLM+Inc2M+Inc3M+Inc4M+Inc5M+Inc6M+), 6)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cumulative Forecast =&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IF(ISBLANK([Incidents Average per Year Month]), [Incidents Forecast], [Incidents Average per Year Month])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 20:32:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2933870#M96599</guid>
      <dc:creator>Benedict21</dc:creator>
      <dc:date>2022-11-28T20:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX repeating values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2934329#M96627</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478524" data-lia-user-login="Benedict21" class="lia-mention lia-mention-user"&gt;Benedict21&lt;/a&gt; , Try a measure like using Incidents Forecast measure &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;calculate(lastnonblankvalues(Date[Date], [Incidents Forecast]), filter(all(Date), Date[Date] &amp;lt;= max(date[Date]) )&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 03:05:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2934329#M96627</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-29T03:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX repeating values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2934762#M96647</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, but the results are 0s and 1s.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 07:00:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2934762#M96647</guid>
      <dc:creator>Benedict21</dc:creator>
      <dc:date>2022-11-29T07:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: DAX repeating values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2936903#M96866</link>
      <description>&lt;P&gt;I tried using this measure; however, it is not providing the correct result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Test =&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;LASTNOTBLANKVALUE('Dates'[Date], [Incidents Forecast]), FILTER(ALL('Dates'[Date], [Date] &amp;lt;=MAX('Dates'[Date])))&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 21:38:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2936903#M96866</guid>
      <dc:creator>Benedict21</dc:creator>
      <dc:date>2022-11-29T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: DAX repeating values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2943245#M97291</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478524" data-lia-user-login="Benedict21" class="lia-mention lia-mention-user"&gt;Benedict21&lt;/a&gt; ,&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>Fri, 02 Dec 2022 02:25:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2943245#M97291</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-12-02T02:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX repeating values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2945322#M97403</link>
      <description>&lt;P&gt;Hi! Thank you so so much for your help! I recreated the file with test data. I have 5 columns:&lt;BR /&gt;Date&lt;/P&gt;&lt;P&gt;Count of Incidents&lt;/P&gt;&lt;P&gt;Count Incidents Sum (measure)&lt;BR /&gt;Count Incidents rolling average (measure)&lt;/P&gt;&lt;P&gt;Cumulative Forecast (measure)&lt;BR /&gt;&lt;BR /&gt;I want to repeat the forecasted value for the next month (9 in this case), and not continue the rolling average. So Jan 2023, Feb 2023, Mar 2023, etc., should all equal 9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your help!&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 19:06:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2945322#M97403</guid>
      <dc:creator>Benedict21</dc:creator>
      <dc:date>2022-12-02T19:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: DAX repeating values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2945337#M97406</link>
      <description>&lt;P&gt;I sent you a message with a link to the pbix. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 19:16:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-repeating-values/m-p/2945337#M97406</guid>
      <dc:creator>Benedict21</dc:creator>
      <dc:date>2022-12-02T19:16:44Z</dc:date>
    </item>
  </channel>
</rss>

