<?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: All Selected is not working properly, I have to include another Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Selected-is-not-working-properly-I-have-to-include-another/m-p/4633903#M177399</link>
    <description>&lt;P&gt;Same. I struggled with this for HOURS and this post helped me fix it. Thank you!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 19:58:11 GMT</pubDate>
    <dc:creator>therynk</dc:creator>
    <dc:date>2025-04-01T19:58:11Z</dc:date>
    <item>
      <title>All Selected is not working properly, I have to include another Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Selected-is-not-working-properly-I-have-to-include-another/m-p/3165685#M113848</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a fact table that has multiple colums:&lt;/P&gt;&lt;P&gt;Item,Period_Name,Period_ID,Sales&lt;/P&gt;&lt;P&gt;Period name is like Jan 2022 , Feb 2022 etc&lt;/P&gt;&lt;P&gt;Period_ID is like 202201 , 202202 etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created one slicer in the dashboard that has "Period_Name" Field and created 1 grid in the dashboard in which I want to include 4 columns:&amp;nbsp; Item, Period, Sales Value, Sales value (for the all selected periods) , Sales Value (for all the periods selected and unselected)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the measures like this&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Value Sales = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Fact_Sales&lt;/SPAN&gt;&lt;SPAN&gt;[Value Sales]&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Value Sales (Selected Period) = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Total Value Sales], &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;(Fact_Sales[Period]))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Value Sales (Ignore Period) = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Total Value Sales], &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(Fact_Sales[Period]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But I got wrong results like the image&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried so much to solve it and solved successfully by changing in the measures&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Value Sales (Selected Period) = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Total Value Sales], &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(Fact_Sales[Period]),&lt;/SPAN&gt;&lt;STRONG&gt;ALLSELECTED&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;(Fact_Sales[PERIOD_ID])&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Value Sales (Ignore Period) = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Total Value Sales], &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(Fact_Sales[Period]),&lt;/SPAN&gt;&lt;STRONG&gt;ALL&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;(Fact_Sales[PERIOD_ID])&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;As you can see, numbers now are reflecting correctly... but I am unable to understand the behaviour, why it didn't work although I am not using this Period_ID column anywhere?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;also I wanted to create another sheet with dummy data to upload here to the community to make things easier, but surprisingly it worked successfully without adding the second condition.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Does anyone have a clue?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;DIV&gt;John Elmasry&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 31 Mar 2023 11:58:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Selected-is-not-working-properly-I-have-to-include-another/m-p/3165685#M113848</guid>
      <dc:creator>john_elmasry</dc:creator>
      <dc:date>2023-03-31T11:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: All Selected is not working properly, I have to include another Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Selected-is-not-working-properly-I-have-to-include-another/m-p/3165825#M113853</link>
      <description>&lt;P&gt;I found the solution to whom it may concern.&lt;/P&gt;&lt;P&gt;The reason is because the Period Column was sorted by Period ID Column, in this situation you have to include both columns in ALL and ALLSELECTED.&lt;/P&gt;&lt;P&gt;Refer to this video&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/rvpKSH3zRcg?t=465" target="_blank"&gt;https://youtu.be/rvpKSH3zRcg?t=465&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 12:40:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Selected-is-not-working-properly-I-have-to-include-another/m-p/3165825#M113853</guid>
      <dc:creator>john_elmasry</dc:creator>
      <dc:date>2023-03-31T12:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: All Selected is not working properly, I have to include another Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Selected-is-not-working-properly-I-have-to-include-another/m-p/4256761#M168651</link>
      <description>&lt;P&gt;Wow, thank you for this. Never would have found this out if not for this post. I had the same problem.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 18:14:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Selected-is-not-working-properly-I-have-to-include-another/m-p/4256761#M168651</guid>
      <dc:creator>idonthaveaim</dc:creator>
      <dc:date>2024-10-24T18:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: All Selected is not working properly, I have to include another Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Selected-is-not-working-properly-I-have-to-include-another/m-p/4633903#M177399</link>
      <description>&lt;P&gt;Same. I struggled with this for HOURS and this post helped me fix it. Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 19:58:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Selected-is-not-working-properly-I-have-to-include-another/m-p/4633903#M177399</guid>
      <dc:creator>therynk</dc:creator>
      <dc:date>2025-04-01T19:58:11Z</dc:date>
    </item>
  </channel>
</rss>

