<?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: Dax help needed with outlier case for all selected groups (ALLSELECTED) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-help-needed-with-outlier-case-for-all-selected-groups/m-p/2719556#M82873</link>
    <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% sales of selected group =
VAR currentSales = [Sales]
VAR selectedGroupSales =
    CALCULATE ( [Sales], ALLEXCEPT ( 'Product', 'Product'[Group] ) )
RETURN
    DIVIDE ( currentSales, selectedGroupSales )
&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 23 Aug 2022 08:45:59 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2022-08-23T08:45:59Z</dc:date>
    <item>
      <title>Dax help needed with outlier case for all selected groups (ALLSELECTED)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-help-needed-with-outlier-case-for-all-selected-groups/m-p/2719472#M82865</link>
      <description>&lt;P&gt;I have a case where I would have to calculate a % of total of sales for 2 selected groups but only one of them is in visual.&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.imgur.com/SkoQl4e.png" target="_blank" rel="noopener"&gt;Here's my data in picture&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So I would like to first select Groups B and C, then select products only from C (Green and Yellow grapes). Then I would like to see the percentage of sales Green and Yellow Grapes contributed to Total sales of Groups B and C.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So Desired outcome would be for Green grapes (30 / 70) ~43% and for Yellow Grapes (10/70) ~14%.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I tried using ALLSELECTED but it does not work when I only have Group C products selected in visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This video got me pretty close, but it's not working since there are only Group C products in visual:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=_k_Qxb6pyCc" target="_blank" rel="noopener"&gt;DAX Fridays! #118:&amp;nbsp; Get selected or multiple values from slicers using DAX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any ideas is this even possible or how to proceed?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 08:29:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-help-needed-with-outlier-case-for-all-selected-groups/m-p/2719472#M82865</guid>
      <dc:creator>Jameli</dc:creator>
      <dc:date>2022-08-23T08:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dax help needed with outlier case for all selected groups (ALLSELECTED)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-help-needed-with-outlier-case-for-all-selected-groups/m-p/2719556#M82873</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% sales of selected group =
VAR currentSales = [Sales]
VAR selectedGroupSales =
    CALCULATE ( [Sales], ALLEXCEPT ( 'Product', 'Product'[Group] ) )
RETURN
    DIVIDE ( currentSales, selectedGroupSales )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Aug 2022 08:45:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-help-needed-with-outlier-case-for-all-selected-groups/m-p/2719556#M82873</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-23T08:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dax help needed with outlier case for all selected groups (ALLSELECTED)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-help-needed-with-outlier-case-for-all-selected-groups/m-p/2719594#M82875</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your dataset looks like, but one of ways to create a solution is to have dimension table for Group, like below. In this case, Group slicer won't be influenced by the product selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Percent of sales from selected groups: = 
VAR _sales = [Sales measure:]
VAR _selectedgroup =
    VALUES ( 'Group'[Group] )
VAR _grouptotal =
    CALCULATE (
        [Sales measure:],
        FILTER ( ALL ( Data ), Data[Group] IN _selectedgroup )
    )
RETURN
    DIVIDE ( _sales, _grouptotal )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Aug 2022 08:52:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-help-needed-with-outlier-case-for-all-selected-groups/m-p/2719594#M82875</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-23T08:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dax help needed with outlier case for all selected groups (ALLSELECTED)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-help-needed-with-outlier-case-for-all-selected-groups/m-p/2719854#M82890</link>
      <description>&lt;P&gt;Thanks, this is how I would like it to work.&lt;BR /&gt;&lt;BR /&gt;This unfortunately doesn't work straight away in my case since the dimension table is not joined by Group -field but another field. I could solve this by creating a another separate dimension which is joined by the Group field, but I'll have to think if I want to create a separate solution for this.&lt;BR /&gt;&lt;BR /&gt;Maybe creating an inactive relation by group and using it in your solution with USERRELATIONSHIP would work as well.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 10:01:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-help-needed-with-outlier-case-for-all-selected-groups/m-p/2719854#M82890</guid>
      <dc:creator>Jameli</dc:creator>
      <dc:date>2022-08-23T10:01:27Z</dc:date>
    </item>
  </channel>
</rss>

