<?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: Struggling with disconnected slicer and ALLSELECTED in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-disconnected-slicer-and-ALLSELECTED/m-p/1375252#M25080</link>
    <description>&lt;P&gt;I had to switch this around to get it working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MIN Calls per Hour In/ User UserJob Peer = 
            CALCULATE(  
                       [MIN Calls per Hour In/ User],
                       FILTER(
                            EXCEPT(
                                    ALL(AdviserRole[Name]), 
                                    ALLSELECTED(AdviserRole[Name])),
                                    NOT(AdviserRole[Name] IN ALLSELECTED(PeerAdvisers[Name]))
                            )
                    )
                    &lt;/LI-CODE&gt;&lt;P&gt;However problme now is if you dont select anything in the PeerAdviser[Name] slicer it defaults to All so removes every name and returns a blank.&amp;nbsp; There doesnt seem to be anyway to make the slicer retrun null if you dont pick something. So is there a way to make ALLSELECTED (Peeradvisers[Name] retrun a null if there number of slected names is less than 1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2020 13:51:25 GMT</pubDate>
    <dc:creator>masplin</dc:creator>
    <dc:date>2020-09-16T13:51:25Z</dc:date>
    <item>
      <title>Struggling with disconnected slicer and ALLSELECTED</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-disconnected-slicer-and-ALLSELECTED/m-p/1372801#M25030</link>
      <description>&lt;P&gt;I'm sure this is easy, but just cant work it out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before COVID we did performace assessment by picking a user and comparing certian metrics to to all the other users doing the same role as every had similar work loads.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MIN Calls per Hour In/ User UserJob Peer = 
            CALCULATE(  
                       [MIN Calls per Hour In/ User],
                       EXCEPT(
                            ALL(AdviserRole[Name]), 
                            ALLSELECTED(AdviserRole[Name])
                                )
                    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This coded worked fine as pick the user from the Adviserrole dropdown and calcuates by getting all users and excluding the one you choose.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have now been asked to allow the removal of certian users from the peer group as some peopel are working in different ways.&amp;nbsp; i though the solution was to create a duplicate of the AdviseRole table (PeerAdvisers) and have this as a second name slicer. Then somehow use ALLSELECTED(PeerAdvisers[Names]) to filter the ALL(Advisers[Name]) table as well. I created an inactive relationship between AdvisdeRole and PeerAdviser as assume I need to somehow take the names selected on PeerAdvisers and filter out the related names on the AdviserRole as that is the table that drives all the metrics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My DAX grammar is not very good and work things out by bute force so hoping someone can help me with how to use a disconnected list of names to filter the main list of names? Plus preferably also exclude the name chose in AdviserRole[Name]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afraid the model is enromous so no idea how to even post an example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any advice&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 17:28:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-disconnected-slicer-and-ALLSELECTED/m-p/1372801#M25030</guid>
      <dc:creator>masplin</dc:creator>
      <dc:date>2020-09-15T17:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with disconnected slicer and ALLSELECTED</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-disconnected-slicer-and-ALLSELECTED/m-p/1373862#M25056</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="27040" data-lia-user-login="masplin" class="lia-mention lia-mention-user"&gt;masplin&lt;/a&gt; , What i got if from independent slicer you have take name and use a not in &lt;/P&gt;
&lt;P&gt;something like this&lt;/P&gt;
&lt;P&gt;MIN Calls per Hour In/ User UserJob Peer =&lt;/P&gt;
&lt;P&gt;CALCULATE( &lt;BR /&gt;[MIN Calls per Hour In/ User],&lt;BR /&gt;filter(AdviserRole , not( AdviserRole[peer name] in allselected(AdviserRole_slicer[peer name])))&lt;BR /&gt;EXCEPT(&lt;BR /&gt;AdviserRole[Name], &lt;BR /&gt;ALLSELECTED(AdviserRole[Name])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 03:30:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-disconnected-slicer-and-ALLSELECTED/m-p/1373862#M25056</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-16T03:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with disconnected slicer and ALLSELECTED</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-disconnected-slicer-and-ALLSELECTED/m-p/1375252#M25080</link>
      <description>&lt;P&gt;I had to switch this around to get it working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MIN Calls per Hour In/ User UserJob Peer = 
            CALCULATE(  
                       [MIN Calls per Hour In/ User],
                       FILTER(
                            EXCEPT(
                                    ALL(AdviserRole[Name]), 
                                    ALLSELECTED(AdviserRole[Name])),
                                    NOT(AdviserRole[Name] IN ALLSELECTED(PeerAdvisers[Name]))
                            )
                    )
                    &lt;/LI-CODE&gt;&lt;P&gt;However problme now is if you dont select anything in the PeerAdviser[Name] slicer it defaults to All so removes every name and returns a blank.&amp;nbsp; There doesnt seem to be anyway to make the slicer retrun null if you dont pick something. So is there a way to make ALLSELECTED (Peeradvisers[Name] retrun a null if there number of slected names is less than 1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 13:51:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-disconnected-slicer-and-ALLSELECTED/m-p/1375252#M25080</guid>
      <dc:creator>masplin</dc:creator>
      <dc:date>2020-09-16T13:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with disconnected slicer and ALLSELECTED</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-disconnected-slicer-and-ALLSELECTED/m-p/1375264#M25081</link>
      <description>&lt;P&gt;I tried this but doenst work despite peers=321 if nothing selected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MIN Calls per Hour In/ User UserJob Peer = 
VAR
Peers=CALCULATE(COUNTROWS(ALLSELECTED(PeerAdvisers[Name])))
RETURN
            CALCULATE(  
                       [MIN Calls per Hour In/ User],
                       FILTER(
                            EXCEPT(
                                    ALL(AdviserRole[Name]), 
                                    ALLSELECTED(AdviserRole[Name])),
                            IF(
                                Peers&amp;lt;=10,
                                NOT(AdviserRole[Name] IN ALLSELECTED(PeerAdvisers[Name])),
                                BLANK()
                                )
                              )
                            )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Sep 2020 14:03:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-disconnected-slicer-and-ALLSELECTED/m-p/1375264#M25081</guid>
      <dc:creator>masplin</dc:creator>
      <dc:date>2020-09-16T14:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with disconnected slicer and ALLSELECTED</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-disconnected-slicer-and-ALLSELECTED/m-p/1375269#M25082</link>
      <description>&lt;P&gt;this works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MIN Calls per Hour In/ User UserJob Peer = 
VAR
Peers=CALCULATE(COUNTROWS(ALLSELECTED(PeerAdvisers[Name])))
RETURN
            CALCULATE(  
                       [MIN Calls per Hour In/ User],
                       FILTER(
                            EXCEPT(
                                    ALL(AdviserRole[Name]), 
                                    ALLSELECTED(AdviserRole[Name])),
                            IF(
                                Peers&amp;lt;=10,
                                NOT(AdviserRole[Name] IN ALLSELECTED(PeerAdvisers[Name])),
                                AdviserRole[Name] IN ALLSELECTED(PeerAdvisers[Name])
                                )
                              )
                            )
                    &lt;/LI-CODE&gt;&lt;P&gt;. Never used NOT IN before so very helpful thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 14:06:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-disconnected-slicer-and-ALLSELECTED/m-p/1375269#M25082</guid>
      <dc:creator>masplin</dc:creator>
      <dc:date>2020-09-16T14:06:40Z</dc:date>
    </item>
  </channel>
</rss>

