<?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: Hi! Challenging Problem with PreviousMonth() using a measure as a filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-Challenging-Problem-with-PreviousMonth-using-a-measure-as-a/m-p/1091484#M15793</link>
    <description>&lt;P&gt;It's hard to tell without seeing your model, but it looks like you are filtering the whole fact table - Filter(Sales_All), ...&lt;/P&gt;&lt;P&gt;What field/column do you calculate incentive winners on usually (employees, departments, etc.)?&amp;nbsp; I would have expected you had Filter(All(Sales_All[Employee]), [Incentive_AchievementRate]&amp;gt;1) instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solution works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2020 11:38:41 GMT</pubDate>
    <dc:creator>mahoneypat</dc:creator>
    <dc:date>2020-05-15T11:38:41Z</dc:date>
    <item>
      <title>Hi! Challenging Problem with PreviousMonth() using a measure as a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-Challenging-Problem-with-PreviousMonth-using-a-measure-as-a/m-p/1090803#M15766</link>
      <description>&lt;P&gt;Hi everyone!,&lt;/P&gt;&lt;P&gt;I am trying to calculate the following but I just obtain a blank space: It is defined the following:&lt;/P&gt;&lt;P&gt;==&amp;gt; These measures works fine:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SalesLastMonth:=calculate([Sales],PREVIOUSMONTH(Calendar[Day]))&lt;/LI&gt;&lt;LI&gt;Incentive_AchievementRate:=divide(calculate([Sales],filter(Target_Table,Target_Table[Target]&amp;gt;0)),sumx(Target_Table,Target_Table[Target]))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;==&amp;gt;BUT This doesn't work!!:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SalesOfWinners_LastMonth:=calculate([SalesLastMonth],filter(Sales_All,[Incentive_AchievementRate]&amp;gt;1))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need to know is the sales of the last month, but only of the ones that won the incentive this month. The structure works when I use as a filter a column that exists in a Table instead of a measure (as [Incentive_AchievementRate])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 05:33:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-Challenging-Problem-with-PreviousMonth-using-a-measure-as-a/m-p/1090803#M15766</guid>
      <dc:creator>PowerBIUser1995</dc:creator>
      <dc:date>2020-05-15T05:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hi! Challenging Problem with PreviousMonth() using a measure as a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-Challenging-Problem-with-PreviousMonth-using-a-measure-as-a/m-p/1091484#M15793</link>
      <description>&lt;P&gt;It's hard to tell without seeing your model, but it looks like you are filtering the whole fact table - Filter(Sales_All), ...&lt;/P&gt;&lt;P&gt;What field/column do you calculate incentive winners on usually (employees, departments, etc.)?&amp;nbsp; I would have expected you had Filter(All(Sales_All[Employee]), [Incentive_AchievementRate]&amp;gt;1) instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solution works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 11:38:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-Challenging-Problem-with-PreviousMonth-using-a-measure-as-a/m-p/1091484#M15793</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-05-15T11:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hi! Challenging Problem with PreviousMonth() using a measure as a filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-Challenging-Problem-with-PreviousMonth-using-a-measure-as-a/m-p/1091987#M15847</link>
      <description>&lt;P&gt;Indeed, the problem was the table. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 17:16:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hi-Challenging-Problem-with-PreviousMonth-using-a-measure-as-a/m-p/1091987#M15847</guid>
      <dc:creator>PowerBIUser1995</dc:creator>
      <dc:date>2020-05-15T17:16:53Z</dc:date>
    </item>
  </channel>
</rss>

