<?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: Filter a measure based on a condition on another measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-measure-based-on-a-condition-on-another-measure/m-p/2139737#M49179</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this to find the Sale Amount:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Measure =
VAR _A =
    FILTER (
        ADDCOLUMNS (
            SALE,
            "Budget", LOOKUPVALUE ( BUDGET[AMOUNT], BUDGET[Customer_COD], SALE[Customer_COD] )
        ),
        [Budget] &amp;gt; 0
    )
RETURN
    SUMX ( _A, [AMOUNT] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 06:22:58 GMT</pubDate>
    <dc:creator>VahidDM</dc:creator>
    <dc:date>2021-10-18T06:22:58Z</dc:date>
    <item>
      <title>Filter a measure based on a condition on another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-measure-based-on-a-condition-on-another-measure/m-p/2139568#M49171</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have 2 facts based on 2 differents tables: SalesAmount and BudgetAmount.&lt;/P&gt;&lt;P&gt;I'd like to create a measure "SalesComparsion" &lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;which should&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; consider "SalesAmount" only if the Customer (dimension joined to both facts), has a budget, this measure should work though I do not use the "customer" as detail in the analysis, for instance a monthly analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I solve this?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 05:31:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-measure-based-on-a-condition-on-another-measure/m-p/2139568#M49171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-18T05:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a measure based on a condition on another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-measure-based-on-a-condition-on-another-measure/m-p/2139577#M49173</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you add a sample of your data n a table format, and result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 05:33:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-measure-based-on-a-condition-on-another-measure/m-p/2139577#M49173</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-10-18T05:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a measure based on a condition on another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-measure-based-on-a-condition-on-another-measure/m-p/2139661#M49178</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;some screenshots: the relations of the 3 involved, data contained and the actual results.&lt;/P&gt;&lt;P&gt;Thanks&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 05:56:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-measure-based-on-a-condition-on-another-measure/m-p/2139661#M49178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-18T05:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a measure based on a condition on another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-measure-based-on-a-condition-on-another-measure/m-p/2139737#M49179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this to find the Sale Amount:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Measure =
VAR _A =
    FILTER (
        ADDCOLUMNS (
            SALE,
            "Budget", LOOKUPVALUE ( BUDGET[AMOUNT], BUDGET[Customer_COD], SALE[Customer_COD] )
        ),
        [Budget] &amp;gt; 0
    )
RETURN
    SUMX ( _A, [AMOUNT] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 06:22:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-measure-based-on-a-condition-on-another-measure/m-p/2139737#M49179</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-10-18T06:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a measure based on a condition on another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-measure-based-on-a-condition-on-another-measure/m-p/2139758#M49180</link>
      <description>&lt;P&gt;Great!&lt;/P&gt;&lt;P&gt;It's exactly what I war looking for.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 06:31:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-measure-based-on-a-condition-on-another-measure/m-p/2139758#M49180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-18T06:31:00Z</dc:date>
    </item>
  </channel>
</rss>

