<?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: Selecting data excluded from slicer filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selecting-data-excluded-from-slicer-filter/m-p/2605913#M75449</link>
    <description>&lt;P&gt;I get an error "The syntax for 'RETURN' is incorrect."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also suspect that using "&lt;SPAN&gt;in allselected" will include the selected office, not exclude it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 07:18:02 GMT</pubDate>
    <dc:creator>Musashi01</dc:creator>
    <dc:date>2022-06-28T07:18:02Z</dc:date>
    <item>
      <title>Selecting data excluded from slicer filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selecting-data-excluded-from-slicer-filter/m-p/2604910#M75394</link>
      <description>&lt;P&gt;Each one of our projects and staff members are allocated to a (single) cost centre (say 01, 02 and 03) and region (A, B and C).&amp;nbsp; Any person can book time to any project, irrespective of region or cost centre.&amp;nbsp; I have the time entry data for the projects, something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Project cost center&lt;/TD&gt;&lt;TD&gt;Project region&lt;/TD&gt;&lt;TD&gt;Employee cost center&lt;/TD&gt;&lt;TD&gt;Employee region&lt;/TD&gt;&lt;TD&gt;Cost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;03&lt;/T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/TD&gt;&lt;TD&gt;01&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;865&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;03&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;690&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;03&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;801&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;01&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;281&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;01&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;436&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user will select one or more cost centers and one or more regions.&amp;nbsp; I then want to show the sum of cost (split by cost centre) from people outside the selected cost center/region combination booked to the projects in the selected cost center/region combination.&amp;nbsp; The next step would be to show the sum of cost from people in the&amp;nbsp;selected cost center/region combination booked to projects outside&amp;nbsp;the selected cost center/region combination.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first idea was to somehow identify the records not selected in the sliders by creating automatic hidden slicers but I can't find a way to do this.&amp;nbsp; Then I tried to identify (for each row) whether that row should be included in the analysis or not (some IF formula) but again get stuck.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd appreciate it if anyone can point me in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 18:18:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selecting-data-excluded-from-slicer-filter/m-p/2604910#M75394</guid>
      <dc:creator>Musashi01</dc:creator>
      <dc:date>2022-06-27T18:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting data excluded from slicer filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selecting-data-excluded-from-slicer-filter/m-p/2605633#M75436</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="406137" data-lia-user-login="Musashi01" class="lia-mention lia-mention-user"&gt;Musashi01&lt;/a&gt; , Create an independent Table with Employee cost center&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cost center = distinct(Table[Employee cost center])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then create a measure like&lt;/P&gt;
&lt;P&gt;Measure =&lt;/P&gt;
&lt;P&gt;var _tab = summarize(Filter(Table, Table[Employee cost center] in allselected('cost center'[Employee cost center])), Table[Project region])&lt;/P&gt;
&lt;P&gt;return&amp;nbsp;&lt;/P&gt;
&lt;P&gt;calculate(sum(Table[Cost]), filter( Table, Table[Project region] in _tab) )&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 05:37:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selecting-data-excluded-from-slicer-filter/m-p/2605633#M75436</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-06-28T05:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting data excluded from slicer filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selecting-data-excluded-from-slicer-filter/m-p/2605913#M75449</link>
      <description>&lt;P&gt;I get an error "The syntax for 'RETURN' is incorrect."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also suspect that using "&lt;SPAN&gt;in allselected" will include the selected office, not exclude it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 07:18:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selecting-data-excluded-from-slicer-filter/m-p/2605913#M75449</guid>
      <dc:creator>Musashi01</dc:creator>
      <dc:date>2022-06-28T07:18:02Z</dc:date>
    </item>
  </channel>
</rss>

