<?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: Display Values without including in calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Values-without-including-in-calculation/m-p/2420231#M64078</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="341575" data-lia-user-login="Gsar" class="lia-mention lia-mention-user"&gt;Gsar&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;Has &lt;EM&gt;Tamerj1&lt;/EM&gt; solved your problem? His method is correct, of course you also use the ISINSCOPE function, as follows:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;Measure = IF(ISINSCOPE('Table'[Group]),MAX([Value]),CALCULATE(SUM([Value]),'Table'[Group]=2))&lt;/LI-CODE&gt;
&lt;P&gt;The final output is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 03:16:21 GMT</pubDate>
    <dc:creator>v-yalanwu-msft</dc:creator>
    <dc:date>2022-03-28T03:16:21Z</dc:date>
    <item>
      <title>Display Values without including in calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Values-without-including-in-calculation/m-p/2413091#M63647</link>
      <description>&lt;P&gt;Hey Dax experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question for you that I could not find the answer to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say that I have the following data&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Group&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to achieve the following:&lt;/P&gt;&lt;P&gt;I want to include in my visualisation all the data, for both group 1 and 2, but I want only to include in my calculations only for value only the data that are in group 2.&lt;/P&gt;&lt;P&gt;So my end result when I would put it in a visual in power bi could look like that:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can use calculate to exclude the data in group 1 but this will also prevent them from showing them in the visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if my query makes sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Giorgio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 17:03:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Values-without-including-in-calculation/m-p/2413091#M63647</guid>
      <dc:creator>Gsar</dc:creator>
      <dc:date>2022-03-23T17:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Display Values without including in calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Values-without-including-in-calculation/m-p/2413165#M63652</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="341575" data-lia-user-login="Gsar" class="lia-mention lia-mention-user"&gt;Gsar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;IF ( HASEONEVALUE ( Table[Group] ), SUM ( Table[Value] ), CALCULATE (&amp;nbsp;&lt;SPAN&gt;SUM ( Table[Value] ), Table[Group] = 2 ))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 17:48:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Values-without-including-in-calculation/m-p/2413165#M63652</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-23T17:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Display Values without including in calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Values-without-including-in-calculation/m-p/2420231#M64078</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="341575" data-lia-user-login="Gsar" class="lia-mention lia-mention-user"&gt;Gsar&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;Has &lt;EM&gt;Tamerj1&lt;/EM&gt; solved your problem? His method is correct, of course you also use the ISINSCOPE function, as follows:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;Measure = IF(ISINSCOPE('Table'[Group]),MAX([Value]),CALCULATE(SUM([Value]),'Table'[Group]=2))&lt;/LI-CODE&gt;
&lt;P&gt;The final output is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 03:16:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Values-without-including-in-calculation/m-p/2420231#M64078</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-03-28T03:16:21Z</dc:date>
    </item>
  </channel>
</rss>

