<?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: Progression Sum with existing and non existing dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4238172#M167716</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822924" data-lia-user-login="Andiko" class="lia-mention lia-mention-user"&gt;Andiko&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the following measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE =
VAR ActualSR =
    CALCULATE (
        SUMX ( 'Input Data', 'Input Data'[Actual SR] ),
        FILTER ( ALLSELECTED ( InputDB ), InputDB[Close_Date] = TODAY () )
    )
VAR MonthsPassed =
    DATEDIFF ( TODAY (), MAX ( 'Calendar'[Date] ), MONTH )
VAR MaxDateInputDB =
    CALCULATE ( MAX ( InputDB[Close_Date] ), ALLSELECTED ( InputDB ) )
VAR MonthlyMultiplier =
    1
        + ( AVERAGEX ( 'Input Data', 'Input Data'[Annual Headcount Growth Rate] ) ) / 12
RETURN
    IF (
        SUM ( 'InputDB'[Cummulative Recurring Revenue] ) &amp;lt;&amp;gt; BLANK (),
        IF (
            MAX ( 'Calendar'[Date] ) &amp;gt;= TODAY ()
                &amp;amp;&amp;amp; MAX ( 'Calendar'[Date] ) &amp;lt;= MaxDateInputDB,
            CEILING ( ActualSR * POWER ( MonthlyMultiplier, MonthsPassed ), 1 )
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then 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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2024 05:43:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-10-11T05:43:20Z</dc:date>
    <item>
      <title>Progression Sum with existing and non existing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4237541#M167714</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Meassure called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;[Total Heads Serv Grow]&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;which I need it to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Take the&amp;nbsp;&lt;SPAN class=""&gt;&lt;STRONG&gt;[Actual SR]&lt;/STRONG&gt; value from the&amp;nbsp;&lt;STRONG&gt;'Input Data'&lt;/STRONG&gt; Table. This would be named&lt;!--  StartFragment   --&gt; &lt;STRONG&gt;&lt;SPAN class=""&gt;ActualSR&lt;/SPAN&gt;&amp;nbsp;&lt;/STRONG&gt;which represents the &lt;STRONG&gt;actual Number of People&lt;/STRONG&gt; I have now.&amp;nbsp;&lt;/SPAN&gt;&lt;!--  StartFragment   --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;2. Then, every month I need to bring new people in at a steady rate. This rate is given by the&amp;nbsp;&lt;SPAN class=""&gt;&lt;STRONG&gt;MonthlyMultiplier&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;This means that if &lt;STRONG&gt;Today&lt;/STRONG&gt; I have &lt;STRONG&gt;10 people&lt;/STRONG&gt; and the &lt;STRONG&gt;MonthlyMultiplier&lt;/STRONG&gt; is &lt;STRONG&gt;10%,&lt;/STRONG&gt; then the Next Month I would have (10 * 1.10&lt;SPAN&gt;^1 =&lt;/SPAN&gt;) &lt;STRONG&gt;11&lt;/STRONG&gt; People and in 2 months&amp;nbsp; I would have&amp;nbsp;(10 * 1.10&lt;SPAN&gt;^2 =&lt;/SPAN&gt;) &lt;STRONG&gt;12.1 People&lt;/STRONG&gt; and so on and so forth&lt;/SPAN&gt;&lt;!--  StartFragment   --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;3. This should be calculated for the Dates that exist in the &lt;STRONG&gt;InputDB&lt;/STRONG&gt; ONLY. This entries are reflected in the&amp;nbsp;&lt;STRONG&gt;[Cumulative Recurring Revenue] &lt;/STRONG&gt;column&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;** In case there is no entry in the&amp;nbsp; &lt;STRONG&gt;InputDB&lt;/STRONG&gt; for a given month, then the formula should still calculate it and assign the date of the 1st day of that month.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;*** The end goal is to have a progresion of the number of people that has to be brough in. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;**** The calculation should be run until the latest date that is contained in the&amp;nbsp;&lt;STRONG&gt;InputDB&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I have constructed this using the &lt;STRONG&gt;formula below:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=VAR ActualSR = CALCULATE(
	SUMX( 'Input Data','Input Data'[Actual SR]),
	
	FILTER(
		ALLSELECTED(InputDB),
		InputDB[Close_Date] = TODAY()
		)
	)

VAR MonthsPassed = DATEDIFF(TODAY(),MAX('Calendar'[Date]),MONTH)

VAR MaxDateInputDB = CALCULATE(MAX(InputDB[Close_Date]), ALLSELECTED(InputDB))
	
VAR MonthlyMultiplier = 1+ (AVERAGEX(
			'Input Data', 'Input Data'[Annual Headcount Growth Rate])
			)/12

Return 

IF( 
	MAX('Calendar'[Date]) &amp;gt;= TODAY() &amp;amp;&amp;amp;
	MAX('Calendar'[Date])  &amp;lt;= MaxDateInputDB,
	CEILING(ActualSR * POWER(MonthlyMultiplier,MonthsPassed),1),
	BLANK()

)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The &lt;STRONG&gt;[Total Heads Serv Grow]&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;is giving me the &lt;EM&gt;&lt;STRONG&gt;correct values.&lt;/STRONG&gt; &lt;/EM&gt;But &lt;/SPAN&gt;&lt;/SPAN&gt;the problem is that, as you can see in the image below, it is giving me values for &lt;STRONG&gt;all the dates&lt;/STRONG&gt; from the&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Calendar Table&lt;/STRONG&gt;&amp;nbsp;(even if they do not exist in the&amp;nbsp;&lt;STRONG&gt;InputDB&lt;/STRONG&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I have been able to add the condition for&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;running the calculation until the latest date contained in the&amp;nbsp;&lt;STRONG&gt;InputDB. &lt;/STRONG&gt;However, I have not been able to add the filter for the case in where there is &lt;STRONG&gt;no&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;&amp;nbsp;entry&lt;/STRONG&gt; in the&amp;nbsp;&lt;STRONG&gt;InputDB&lt;/STRONG&gt; for a given month.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore, the formula is taking a lot of computation power and I believe is not properly done. Thus, a better and more efficient way would be also valuable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried many options using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;EDATE function, SUMX, SUM,&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Etc. But, either the &lt;STRONG&gt;values are incorrect,&lt;/STRONG&gt; or does not solve the problem with the &lt;STRONG&gt;dates.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nothing seems to work. Thus, I would like to get your help please!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching the file I am using here: &lt;A href="https://docs.google.com/spreadsheets/d/1BHAqPUbY1mrlieWslGCuT5ZSSMRaUEMl/edit?usp=sharing&amp;amp;ouid=114221063275347234544&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;Test-File 2&lt;/A&gt;&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;</description>
      <pubDate>Thu, 10 Oct 2024 19:19:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4237541#M167714</guid>
      <dc:creator>Andiko</dc:creator>
      <dc:date>2024-10-10T19:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Progression Sum with existing and non existing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4237543#M167715</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="736379" data-lia-user-login="shafiz_p" class="lia-mention lia-mention-user"&gt;shafiz_p&lt;/a&gt;, do you think you can take a look at this, please? -I am having the same problem with the dates again&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 19:20:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4237543#M167715</guid>
      <dc:creator>Andiko</dc:creator>
      <dc:date>2024-10-10T19:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Progression Sum with existing and non existing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4238172#M167716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822924" data-lia-user-login="Andiko" class="lia-mention lia-mention-user"&gt;Andiko&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the following measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE =
VAR ActualSR =
    CALCULATE (
        SUMX ( 'Input Data', 'Input Data'[Actual SR] ),
        FILTER ( ALLSELECTED ( InputDB ), InputDB[Close_Date] = TODAY () )
    )
VAR MonthsPassed =
    DATEDIFF ( TODAY (), MAX ( 'Calendar'[Date] ), MONTH )
VAR MaxDateInputDB =
    CALCULATE ( MAX ( InputDB[Close_Date] ), ALLSELECTED ( InputDB ) )
VAR MonthlyMultiplier =
    1
        + ( AVERAGEX ( 'Input Data', 'Input Data'[Annual Headcount Growth Rate] ) ) / 12
RETURN
    IF (
        SUM ( 'InputDB'[Cummulative Recurring Revenue] ) &amp;lt;&amp;gt; BLANK (),
        IF (
            MAX ( 'Calendar'[Date] ) &amp;gt;= TODAY ()
                &amp;amp;&amp;amp; MAX ( 'Calendar'[Date] ) &amp;lt;= MaxDateInputDB,
            CEILING ( ActualSR * POWER ( MonthlyMultiplier, MonthsPassed ), 1 )
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then 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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 05:43:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4238172#M167716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-11T05:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Progression Sum with existing and non existing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4238884#M167717</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822924" data-lia-user-login="Andiko" class="lia-mention lia-mention-user"&gt;Andiko&lt;/a&gt; , I can see that head count is 123 for month october. I have tried to find out manually. There is relationship between input data and inputDB using Country level. Your ActualSR for current Date which is 10/11/2024 should be 137. See Image below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For country level B and D, I have found head count in Input Data :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try below code (If close date present in calendar table, then do calculation otherwise not) :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Heads Serv Grow=
VAR ActualSR = CALCULATE(
    SUMX('Input Data', 'Input Data'[Actual SR]),
    FILTER(
        ALLSELECTED(InputDB),
        InputDB[Close_Date] = TODAY()
    )
)

VAR MonthsPassed = DATEDIFF(TODAY(), MAX('Calendar'[Date]), MONTH)

VAR MaxDateInputDB = CALCULATE(MAX(InputDB[Close_Date]), ALLSELECTED(InputDB))

VAR MonthlyMultiplier = 1 + (AVERAGEX(
    'Input Data', 'Input Data'[Annual Headcount Growth Rate]
) / 12)

VAR HasCloseDate = CALCULATE(
    COUNTROWS(InputDB),
    FILTER(
        ALLSELECTED(InputDB),
        InputDB[Close_Date] = MAX('Calendar'[Date])
    )
) &amp;gt; 0

RETURN

IF(
    HasCloseDate,
    IF(
        MAX('Calendar'[Date]) &amp;gt;= TODAY() &amp;amp;&amp;amp;
        MAX('Calendar'[Date]) &amp;lt;= MaxDateInputDB,
        CEILING(ActualSR * POWER(MonthlyMultiplier, MonthsPassed), 1),
        BLANK()
    ),
    BLANK()
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shahariar Hafiz&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 13:29:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4238884#M167717</guid>
      <dc:creator>shafiz_p</dc:creator>
      <dc:date>2024-10-11T13:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Progression Sum with existing and non existing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4239407#M167755</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="736379" data-lia-user-login="shafiz_p" class="lia-mention lia-mention-user"&gt;shafiz_p&lt;/a&gt;,&amp;nbsp;thank so much for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to solve the &lt;STRONG&gt;problem with the dates.&lt;/STRONG&gt; Now, I am having problems with the actual &lt;STRONG&gt;values&lt;/STRONG&gt; as you mentioned. The &lt;STRONG&gt;total sum&lt;/STRONG&gt; is fine when there is &lt;STRONG&gt;no filter&lt;/STRONG&gt; on the &lt;STRONG&gt;Country_Level.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I activate the filter (choose one country), the numbers do not change. This should not be like that as it should work dynamically (please refer to the images attached).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please take a look for me?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the File with the Updated formula:&lt;/STRONG&gt; &lt;A href="https://docs.google.com/spreadsheets/d/1X1_FQah7TXFKS5Z0fSM_FvSGt3VpV6md/edit?usp=sharing&amp;amp;ouid=114221063275347234544&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;Test File&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR ActualSR =
	SUMX( 'Input Data', 'Input Data'[Actual SR])
		
VAR MonthsPassed = DATEDIFF(min('Input Data'[Date]),MAX('Calendar'[Date]),MONTH)

VAR MaxDateInputDB = CALCULATE(MAX(InputDB[Close_Date]), ALL(InputDB))
	
VAR MonthlyMultiplier = 1+ (AVERAGEX('Input Data', 'Input Data'[Annual Headcount Growth Rate]))/12

Return 

IF( 
	MAX([Close_Date]) &amp;gt;=min('Input Data'[Date]) &amp;amp;&amp;amp;
	MAX([Close_Date])  &amp;lt;= MaxDateInputDB,
	CEILING(ActualSR * POWER(MonthlyMultiplier,MonthsPassed),1),
	BLANK()

)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;All filters selected:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- One Filter Selected:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 00:49:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4239407#M167755</guid>
      <dc:creator>Andiko</dc:creator>
      <dc:date>2024-10-12T00:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Progression Sum with existing and non existing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4239410#M167756</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&amp;nbsp;thank so much for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to solve the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;problem with the dates.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Now, I am having problems with the actual&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;values&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as you mentioned. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;total sum&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is fine when there is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;no filter&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Country_Level.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I activate the filter (choose one country), the numbers do not change. This should not be like that as it should work dynamically (please refer to the images attached).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please take a look for me?&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;STRONG&gt;Here is the File with the Updated formula:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1X1_FQah7TXFKS5Z0fSM_FvSGt3VpV6md/edit?usp=sharing&amp;amp;ouid=114221063275347234544&amp;amp;rtpof=true&amp;amp;sd=true" target="_self" rel="nofollow noopener noreferrer"&gt;Test File&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;PRE&gt;VAR ActualSR =
	SUMX( 'Input Data', 'Input Data'[Actual SR])
		
VAR MonthsPassed = DATEDIFF(min('Input Data'[Date]),MAX('Calendar'[Date]),MONTH)

VAR MaxDateInputDB = CALCULATE(MAX(InputDB[Close_Date]), ALL(InputDB))
	
VAR MonthlyMultiplier = 1+ (AVERAGEX('Input Data', 'Input Data'[Annual Headcount Growth Rate]))/12

Return 

IF( 
	MAX([Close_Date]) &amp;gt;=min('Input Data'[Date]) &amp;amp;&amp;amp;
	MAX([Close_Date])  &amp;lt;= MaxDateInputDB,
	CEILING(ActualSR * POWER(MonthlyMultiplier,MonthsPassed),1),
	BLANK()

)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;All filters selected:&lt;/STRONG&gt;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- One Filter Selected:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 12 Oct 2024 00:51:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4239410#M167756</guid>
      <dc:creator>Andiko</dc:creator>
      <dc:date>2024-10-12T00:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Progression Sum with existing and non existing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4239447#M167759</link>
      <description>&lt;P&gt;You are using country level from InputDB as a slicer to propagate. But relationship goes downhill from 'Input Data' to InputDB. See image :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;aggregating from upper table but trying filter from down table without defining relationship is not possible. Use country level as a slicer from 'Input Data' table. See image below for changes after using country level from 'Input Data' table:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggesting you to pay attention to your relationship and how they working.&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 03:36:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progression-Sum-with-existing-and-non-existing-dates/m-p/4239447#M167759</guid>
      <dc:creator>shafiz_p</dc:creator>
      <dc:date>2024-10-12T03:36:39Z</dc:date>
    </item>
  </channel>
</rss>

