<?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: Filtering on amount &amp;gt;= in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2687766#M80818</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;Thanks for the suggestion. I'll give that a go and see if anything comes up!&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2022 15:24:22 GMT</pubDate>
    <dc:creator>Tob_P</dc:creator>
    <dc:date>2022-08-08T15:24:22Z</dc:date>
    <item>
      <title>Filtering on amount &gt;=</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2687140#M80763</link>
      <description>&lt;P&gt;I have been working off a piece of DAX that I used previously whereby I only wanted to show sales after a certain date which worked well and wanted to adapt it so that only sales after a certain amount where shown. Here's the DAX...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Product Target Filtered Sales (MSM Amount) = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sumx&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'tblProductTargets'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;BonusStartAmount&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;'tblProductTargets'[Start Amount]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Nav_Sales History MASTER'[Amount (LCY)]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;KEEPFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Nav_Sales History MASTER'[Amount (LCY)]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;BonusStartAmount&lt;/SPAN&gt;&lt;SPAN&gt;)))+&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To test it out, I reset the [start amount] to zero, fully expecting to see the full amount but get this result...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there a reason why this would work on dates, but not on amounts? I thought it would be fairly straightforward.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Aug 2022 11:12:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2687140#M80763</guid>
      <dc:creator>Tob_P</dc:creator>
      <dc:date>2022-08-08T11:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on amount &gt;=</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2687442#M80784</link>
      <description>&lt;P&gt;If [Amount (LCY)] is a measure rather than a column I think you will need to use the FILTER function rather than just passing it as a parameter to CALCULATE. Without the FILTER iterator it has no row context in which to evaluate the measure&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 13:14:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2687442#M80784</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-08T13:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on amount &gt;=</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2687466#M80788</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt; - Thanks for coming back to me. It's a column, not a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 13:19:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2687466#M80788</guid>
      <dc:creator>Tob_P</dc:creator>
      <dc:date>2022-08-08T13:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on amount &gt;=</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2687507#M80793</link>
      <description>&lt;P&gt;Then the problem would seem to be in other filters which may be being applied. Is there a relationship from the targets table to sales history?&lt;/P&gt;&lt;P&gt;A good way to see which filters are being applied to a visual is to get the DAX code generated for it from Performance Analyzer and look at that in DAX Studio. Might point you in the right direction&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 13:32:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2687507#M80793</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-08T13:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on amount &gt;=</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2687766#M80818</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;Thanks for the suggestion. I'll give that a go and see if anything comes up!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 15:24:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2687766#M80818</guid>
      <dc:creator>Tob_P</dc:creator>
      <dc:date>2022-08-08T15:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on amount &gt;=</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2694213#M81212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="399872" data-lia-user-login="Tob_P" class="lia-mention lia-mention-user"&gt;Tob_P&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have your questions been resolved and can you share them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 06:41:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2694213#M81212</guid>
      <dc:creator>ChenwuZhu_Gmail</dc:creator>
      <dc:date>2022-08-11T06:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on amount &gt;=</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2694313#M81220</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="423409" data-lia-user-login="ChenwuZhu_Gmail" class="lia-mention lia-mention-user"&gt;ChenwuZhu_Gmail&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm afraid not - still looking for a solution. Nothing flagged up in Performance Analyser and there is a direct relationship between Sales History and Target&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 07:28:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-on-amount-gt/m-p/2694313#M81220</guid>
      <dc:creator>Tob_P</dc:creator>
      <dc:date>2022-08-11T07:28:13Z</dc:date>
    </item>
  </channel>
</rss>

