<?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: Have fixed sum fill out entire table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Have-fixed-sum-fill-out-entire-table/m-p/2971440#M99323</link>
    <description>&lt;P&gt;Thank you for your reply,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;I have modified my command according to your recommendation and it looks as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;100% = 
var curr =
CALCULATE(
    sum('Table'[SalesTotalEUR]),
    KEEPFILTERS(
        'Table'[Date]
    )
)

var refer =
CALCULATE(
    sum('Table'[SalesTotalEUR]),
    FILTER(
        All('Table'[Date]),
        YEAR('Table'[Date])=2021 &amp;amp;&amp;amp; MONTH('Table'[Date])=1
    )
)

var div=
DIVIDE(
    curr,
    refer,
    ""
)

return div&lt;/LI-CODE&gt;&lt;P&gt;As you can see, I was not able to recreate the line&amp;nbsp;&lt;SPAN&gt;Table[Date].[Year] = 2021 &amp;amp;&amp;amp; Table[Date].[MonthNo] = 1 but my workaround should not alter the result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately, my result is still as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The underlying table is a flat table i.e. the date column is in the same column as the&amp;nbsp;SalesTotalEUR column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what might be the issue here?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 16:50:35 GMT</pubDate>
    <dc:creator>Thomas_San</dc:creator>
    <dc:date>2022-12-15T16:50:35Z</dc:date>
    <item>
      <title>Have fixed sum fill out entire table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Have-fixed-sum-fill-out-entire-table/m-p/2968500#M99128</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a chart where all figures are normalized at the start point in order to track the relative deviation from it over time. It should look as follows:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I tried to use the following DAX command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;100% = 
var curr =
CALCULATE(
    sum(Table[SalesTotalEUR]),
    KEEPFILTERS(
        Table[Date]
    )
)

var refer =
CALCULATE(
    sum(Table[SalesTotalEUR]),
    FILTER(
        Table,
        Table[Date].[Year] = 2021 &amp;amp;&amp;amp; Table[Date].[MonthNo] =1
    )
)

var div=
DIVIDE(
    curr,
    refer,
    ""
)

return div  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it results in only row January 2021 being filled out as can be seen here:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just cannot figure out where my error is. Can someone please help me here?&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;</description>
      <pubDate>Wed, 14 Dec 2022 15:53:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Have-fixed-sum-fill-out-entire-table/m-p/2968500#M99128</guid>
      <dc:creator>ThomasSan</dc:creator>
      <dc:date>2022-12-14T15:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Have fixed sum fill out entire table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Have-fixed-sum-fill-out-entire-table/m-p/2968542#M99133</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329838" data-lia-user-login="ThomasSan" class="lia-mention lia-mention-user"&gt;ThomasSan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;VAR refer =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM ( Table[SalesTotalEUR] ),&lt;BR /&gt;FILTER(&lt;BR /&gt;All ( Table[Date] ),&lt;BR /&gt;Table[Date].[Year] = 2021 &amp;amp;&amp;amp; Table[Date].[MonthNo] = 1&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 16:09:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Have-fixed-sum-fill-out-entire-table/m-p/2968542#M99133</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-14T16:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Have fixed sum fill out entire table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Have-fixed-sum-fill-out-entire-table/m-p/2971440#M99323</link>
      <description>&lt;P&gt;Thank you for your reply,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;I have modified my command according to your recommendation and it looks as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;100% = 
var curr =
CALCULATE(
    sum('Table'[SalesTotalEUR]),
    KEEPFILTERS(
        'Table'[Date]
    )
)

var refer =
CALCULATE(
    sum('Table'[SalesTotalEUR]),
    FILTER(
        All('Table'[Date]),
        YEAR('Table'[Date])=2021 &amp;amp;&amp;amp; MONTH('Table'[Date])=1
    )
)

var div=
DIVIDE(
    curr,
    refer,
    ""
)

return div&lt;/LI-CODE&gt;&lt;P&gt;As you can see, I was not able to recreate the line&amp;nbsp;&lt;SPAN&gt;Table[Date].[Year] = 2021 &amp;amp;&amp;amp; Table[Date].[MonthNo] = 1 but my workaround should not alter the result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately, my result is still as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The underlying table is a flat table i.e. the date column is in the same column as the&amp;nbsp;SalesTotalEUR column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what might be the issue here?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:50:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Have-fixed-sum-fill-out-entire-table/m-p/2971440#M99323</guid>
      <dc:creator>Thomas_San</dc:creator>
      <dc:date>2022-12-15T16:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Have fixed sum fill out entire table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Have-fixed-sum-fill-out-entire-table/m-p/2971599#M99340</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="446448" data-lia-user-login="Thomas_San" class="lia-mention lia-mention-user"&gt;Thomas_San&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;are you using a date table? If not please try&lt;/P&gt;
&lt;P&gt;100% =&lt;BR /&gt;VAR curr =&lt;BR /&gt;SUM ( 'Table'[SalesTotalEUR] )&lt;BR /&gt;VAR refer =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( 'Table'[SalesTotalEUR] ),&lt;BR /&gt;YEAR ( 'Table'[Date] ) = 2021&lt;BR /&gt;&amp;amp;&amp;amp; MONTH ( 'Table'[Date] ) = 1,&lt;BR /&gt;ALLEXCEPT ( 'Table', 'Table'[Country Code] )&lt;BR /&gt;)&lt;BR /&gt;VAR div =&lt;BR /&gt;DIVIDE ( curr, refer, "" )&lt;BR /&gt;RETURN&lt;BR /&gt;div&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 18:23:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Have-fixed-sum-fill-out-entire-table/m-p/2971599#M99340</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-15T18:23:16Z</dc:date>
    </item>
  </channel>
</rss>

