<?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: Calculated Measure Not Working With Filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Measure-Not-Working-With-Filter/m-p/929969#M9516</link>
    <description>&lt;P&gt;Can you add sample tables (in format that can be copied to PowerBI) from your model with anonymised data? Like this (just copy and paste into the post window).&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column1&lt;/TD&gt;&lt;TD&gt;Column2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2.5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 10:35:01 GMT</pubDate>
    <dc:creator>Stachu</dc:creator>
    <dc:date>2020-02-12T10:35:01Z</dc:date>
    <item>
      <title>Calculated Measure Not Working With Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Measure-Not-Working-With-Filter/m-p/914106#M8801</link>
      <description>&lt;P&gt;I am trying to calculate the percentage of "Spend" received for each "Item" per "Supplier" using the measure below. (For example, Item A has 60% Spend with Supplier1 and 40% Spend with Supplier2.) This measure calculates correctly until I apply a filter for Item... then all percentages show as 100%. How can I maintain the percentage when applying the filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Percentage of Spend Received by Supplier Per Item =&lt;/P&gt;&lt;P&gt;DIVIDE(&lt;BR /&gt;CALCULATE(SUM(TABLE1[Spend]),&lt;/P&gt;&lt;P&gt;FILTER(TABLE1,TABLE1[Supplier] = TABLE1[Supplier])),&lt;/P&gt;&lt;P&gt;CALCULATE(SUM(TABLE1[Spend]),&lt;BR /&gt;ALLSELECTED(TABLE1), TABLE1[Item] IN VALUES(TABLE1[Item])))&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 20:38:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Measure-Not-Working-With-Filter/m-p/914106#M8801</guid>
      <dc:creator>krodocker</dc:creator>
      <dc:date>2020-01-28T20:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Measure Not Working With Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Measure-Not-Working-With-Filter/m-p/929969#M9516</link>
      <description>&lt;P&gt;Can you add sample tables (in format that can be copied to PowerBI) from your model with anonymised data? Like this (just copy and paste into the post window).&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column1&lt;/TD&gt;&lt;TD&gt;Column2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2.5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 10:35:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Measure-Not-Working-With-Filter/m-p/929969#M9516</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2020-02-12T10:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Measure Not Working With Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Measure-Not-Working-With-Filter/m-p/933517#M9639</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202646" data-lia-user-login="krodocker" class="lia-mention lia-mention-user"&gt;krodocker&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try modifying yourcalculation to:&lt;/P&gt;&lt;P&gt;DIVIDE(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE(SUM(TABLE1[Spend]), FILTER(ALLSELECTED(TABLE1),TABLE1[Supplier] = TABLE1[Supplier])),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE(SUM(TABLE1[Spend]), ALLSELECTED(TABLE1), TABLE1[Item] IN VALUES(TABLE1[Item]))&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 16:12:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Measure-Not-Working-With-Filter/m-p/933517#M9639</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-02-14T16:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Measure Not Working With Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Measure-Not-Working-With-Filter/m-p/934520#M9684</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202646" data-lia-user-login="krodocker" class="lia-mention lia-mention-user"&gt;krodocker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TABLE1[Supplier] = TABLE1[Supplier]&lt;/LI-CODE&gt;
&lt;P&gt;it is a very strange condition for any filter, doesn't it? it will return you all the table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 16:35:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Measure-Not-Working-With-Filter/m-p/934520#M9684</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-16T16:35:48Z</dc:date>
    </item>
  </channel>
</rss>

