<?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: Measure  that uses Calculate and filter on year gives same value for every month in table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-uses-Calculate-and-filter-on-year-gives-same-value/m-p/2328669#M58412</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am not sure if I follow but you&amp;nbsp;&lt;STRONG&gt;want&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;to&amp;nbsp;&lt;/STRONG&gt;have the calculation on a monthly basis? Now your ALL removes all the filters from your datetable. Afterwards you specify that the year in you calculation needs to be this year, but you don't define the month filter context back. Try this: ALL(Datumtabel[jaar]). This will only remove the year context. For LY you can use YEAR(TODAY())-1 in the measure. One alternative way to do this is to add month selection to your FILTER e.g. Datumtable[Maand]=MAX(Datumtable[Maand]).&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 15:58:59 GMT</pubDate>
    <dc:creator>ValtteriN</dc:creator>
    <dc:date>2022-02-09T15:58:59Z</dc:date>
    <item>
      <title>Measure  that uses Calculate and filter on year gives same value for every month in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-uses-Calculate-and-filter-on-year-gives-same-value/m-p/2328626#M58409</link>
      <description>&lt;P&gt;I have a measure that does a calculate of a sum of revenue in a sales table on filtered ledger accounts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use a date table with date, quarter and year. The date has a relationship with the date of sales of the salestable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I created a second measure, that calculate's the first measure on the year in the datetable:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Omzet HJ = CALCULATE(
[Omzet],
FILTER(ALL(Datumtabel), Datumtabel[Jaar] = YEAR(TODAY()))&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I add this measure in a table with month and year it shows the same value every month. When adding the&amp;nbsp;[Omzet] measure it does calculate the value per month / year. So why doesn't it work with the [Omzet HJ] measure?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The ultimate goal is creating a table with per month: revenue last year / revenue last year + 10% (as the target) / revenue current year / difference between last year + 10% and current year. And then those values per month and quarter. It will be used as a sales target dashboard so each sales manager can see their target and whether they have reached it or not.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help, tips or solutions are very welcome. Thank you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 15:49:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-uses-Calculate-and-filter-on-year-gives-same-value/m-p/2328626#M58409</guid>
      <dc:creator>JoyceW</dc:creator>
      <dc:date>2022-02-09T15:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Measure  that uses Calculate and filter on year gives same value for every month in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-uses-Calculate-and-filter-on-year-gives-same-value/m-p/2328669#M58412</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am not sure if I follow but you&amp;nbsp;&lt;STRONG&gt;want&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;to&amp;nbsp;&lt;/STRONG&gt;have the calculation on a monthly basis? Now your ALL removes all the filters from your datetable. Afterwards you specify that the year in you calculation needs to be this year, but you don't define the month filter context back. Try this: ALL(Datumtabel[jaar]). This will only remove the year context. For LY you can use YEAR(TODAY())-1 in the measure. One alternative way to do this is to add month selection to your FILTER e.g. Datumtable[Maand]=MAX(Datumtable[Maand]).&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 15:58:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-uses-Calculate-and-filter-on-year-gives-same-value/m-p/2328669#M58412</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-09T15:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Measure  that uses Calculate and filter on year gives same value for every month in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-uses-Calculate-and-filter-on-year-gives-same-value/m-p/2328749#M58422</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;, thank you! adding the Maand to the filter worked like a charm!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:24:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-uses-Calculate-and-filter-on-year-gives-same-value/m-p/2328749#M58422</guid>
      <dc:creator>JoyceW</dc:creator>
      <dc:date>2022-02-09T16:24:33Z</dc:date>
    </item>
  </channel>
</rss>

