<?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: ALLSELECTED OR NOT? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3862445#M150891</link>
    <description>&lt;P&gt;That's a "wash me but don't make me wet"&amp;nbsp; scenario.&amp;nbsp; You need to use disconnected tables and measures.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 13:14:53 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-04-23T13:14:53Z</dc:date>
    <item>
      <title>ALLSELECTED OR NOT?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3857148#M150683</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some help please, I have a simple tabular model.&lt;BR /&gt;3 tables Portfolio, Position &amp;amp; Date.&lt;BR /&gt;&lt;BR /&gt;The Portfolio table is pretty much a type 1 dimension, Position is a fact table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The visual I have contains data from mainly the portfolio table and 2 measures from the Position and a date selected. There is only one filter from the Portfolio table, where they selected 2 companies out of the list of 5 companies.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;TD&gt;Investment&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Overall Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;1100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;1100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the data i get and its fine, but the issue is that, I want to be able to keep selecting the 2 companies and if I put an extra filter to select 1 investment, id like to see the overall value stay as 1100 because ive selected the 2 companies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DAX I have used for Overall Value = CALCULATE( SUM(Value), REMOVEFILTERS(Portfolio), ALLSELECTED(Portfolio[Company]))&lt;BR /&gt;&lt;BR /&gt;This works fine, when all investments appear, but when filtering down to 1, it only gives me the overall value of the company within the investment. Dont understand why? It looks like the below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;TD&gt;Investment&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Overall Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I would like to keep seeing 1100 in the overall value.&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 21:44:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3857148#M150683</guid>
      <dc:creator>faldiwan</dc:creator>
      <dc:date>2024-04-21T21:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED OR NOT?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3857188#M150684</link>
      <description>&lt;P&gt;You need to do&amp;nbsp; REMOVEFILTERS/ALLSELECTED on the investment as well. And if you have a sort column then you need to include that too etc.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 23:16:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3857188#M150684</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-21T23:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED OR NOT?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3858018#M150701</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did CALCULATE( SUM(Amont), Removefilters(InvestmentCode), ALLSELECTED(Company))&lt;BR /&gt;&lt;BR /&gt;Still only returns the amount within the company in the investment&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 06:40:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3858018#M150701</guid>
      <dc:creator>faldiwan</dc:creator>
      <dc:date>2024-04-22T06:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED OR NOT?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3858788#M150731</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 10:53:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3858788#M150731</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-22T10:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED OR NOT?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3859066#M150734</link>
      <description>&lt;P&gt;Position table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;PortfolioId&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;TotalValue&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Portfolio table:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Id&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Company&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Investment&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Test1&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Test2&lt;/TD&gt;&lt;TD&gt;Amazon&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Test3&lt;/TD&gt;&lt;TD&gt;Arm&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;TD&gt;Investment&lt;/TD&gt;&lt;TD&gt;Total Value&lt;/TD&gt;&lt;TD&gt;Overall&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Test1&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;4000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Test3&lt;/TD&gt;&lt;TD&gt;Arm&lt;/TD&gt;&lt;TD&gt;3000&lt;/TD&gt;&lt;TD&gt;4000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the following day for Overall:&lt;BR /&gt;CALCULATE( SUM(TotalValue), REMOVEFILTERS(Portfolio[Investment]), ALLSELECTED(Portfolio[Company])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the Report table above, which is great, BUT if i only select "Investment = A" in the filter "Filters on this visual" I only get Overall = 1000, because it looks like its summing within the selected investments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Model example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works when selecting 2 companies and all investments within the companies.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When then selecting only 1 investment, should expect to see 4000, but shows only value within the 1 investment selected, need to see the 4000&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 11:50:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3859066#M150734</guid>
      <dc:creator>faldiwan_ar</dc:creator>
      <dc:date>2024-04-22T11:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED OR NOT?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3862315#M150879</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 12:33:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3862315#M150879</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-23T12:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED OR NOT?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3862337#M150882</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im expecting to see 4000, not 6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So ive selected Apple like you did and in the company filters selected Company Test1 &amp;amp; Test2, so i should expect to see the sum of the values for both Test1 &amp;amp; Test2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your result is returning all 3 companies, when i only selected 2 in my filter&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 12:38:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3862337#M150882</guid>
      <dc:creator>faldiwan_ar</dc:creator>
      <dc:date>2024-04-23T12:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED OR NOT?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3862445#M150891</link>
      <description>&lt;P&gt;That's a "wash me but don't make me wet"&amp;nbsp; scenario.&amp;nbsp; You need to use disconnected tables and measures.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 13:14:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3862445#M150891</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-23T13:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED OR NOT?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3862451#M150892</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping I wouldnt need to remodel, but i assumed that would be the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 13:18:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-OR-NOT/m-p/3862451#M150892</guid>
      <dc:creator>faldiwan_ar</dc:creator>
      <dc:date>2024-04-23T13:18:22Z</dc:date>
    </item>
  </channel>
</rss>

