<?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 vs VALUES in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-vs-VALUES/m-p/1680776#M34478</link>
    <description>&lt;P&gt;It's way more complex than you might ever think. For a full explanation of all the quirks about ALLSELECTED, please refer to this article:&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/" target="_blank"&gt;The definitive guide to ALLSELECTED - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 11:56:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-02-22T11:56:02Z</dc:date>
    <item>
      <title>ALLSELECTED vs VALUES</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-vs-VALUES/m-p/1680409#M34467</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a simple&amp;nbsp; way of explanation, what is the different between ALLSELECTED and VALUES ? as I understand correctly and going through all the resources, the "ALL....." is for us to use if we want to alter filter context, means VALUES is not. I still failed to see when actually we should use ALLSELECTED and when we could use VALUES. Because it looks like why there is VALUES after all ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have a slicer consist of my items, then I want to either count how many is selected or if I want to use it in some CALCULATE function, probably filter my FACT table with items which is selected in that slicer, then which one I should use ? again it looks like I should use ALLSELECTED, and I think it is better everytime I want to get the selected items from my slicer, I will always use it, no need to bother about VALUES.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help me to understand more on this ? in what case actually we can consider using VALUES ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 09:22:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-vs-VALUES/m-p/1680409#M34467</guid>
      <dc:creator>admin_xlsior</dc:creator>
      <dc:date>2021-02-22T09:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED vs VALUES</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-vs-VALUES/m-p/1680421#M34468</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="113010" data-lia-user-login="admin_xlsior" class="lia-mention lia-mention-user"&gt;admin_xlsior&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;I think how they return the values&lt;/P&gt;
&lt;P&gt;Values&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;This function cannot be used to Return values into a cell or column on a worksheet; rather, you use it as an intermediate function, nested in a formula, to get a list of distinct values that can be counted or used to filter or sum other values.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Allselected&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;The context of the query without any column and row filters.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Averagex(Values(Table[Col1]), [Measure])&lt;/P&gt;
&lt;P&gt;Will take an Average of the measure after it is grouped at Table[Col1]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;while&lt;/P&gt;
&lt;P&gt;Averagex(allselected(Table[Col1]), [Measure]) is measure value across all selected values of col1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 09:28:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-vs-VALUES/m-p/1680421#M34468</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-22T09:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED vs VALUES</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-vs-VALUES/m-p/1680461#M34470</link>
      <description>&lt;P&gt;Just based on my understanding, if anyone felt incorrect please point out：&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;When they are used as table functions,&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;ALLSELECTED: It returns the table after it has been filtered by an external filter(SLicer, Page filter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VALUES : It returns a list of distinct values of a column (include blank)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;When they are used as calculate parameters,&lt;BR /&gt;&lt;FONT color="#000000"&gt;ALLSELECTED:&amp;nbsp;Remove internal filters from tables or columns, but keep external filters&lt;BR /&gt;VALUES: Restore filters for column&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 09:38:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-vs-VALUES/m-p/1680461#M34470</guid>
      <dc:creator>jameszhang0805</dc:creator>
      <dc:date>2021-02-22T09:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED vs VALUES</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-vs-VALUES/m-p/1680776#M34478</link>
      <description>&lt;P&gt;It's way more complex than you might ever think. For a full explanation of all the quirks about ALLSELECTED, please refer to this article:&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/" target="_blank"&gt;The definitive guide to ALLSELECTED - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 11:56:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-vs-VALUES/m-p/1680776#M34478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-22T11:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED vs VALUES</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-vs-VALUES/m-p/1695570#M34887</link>
      <description>&lt;P&gt;thank you, this has helped me understand how to use these functions. I was always a little confused.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 08:49:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-vs-VALUES/m-p/1695570#M34887</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-03-01T08:49:52Z</dc:date>
    </item>
  </channel>
</rss>

