<?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 Can one slicer filter be selectively applied while other not? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-one-slicer-filter-be-selectively-applied-while-other-not/m-p/3688953#M143330</link>
    <description>&lt;P&gt;I have a fact table which is something like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Project&lt;/TD&gt;&lt;TD&gt;Metric&lt;/TD&gt;&lt;TD&gt;Revenue&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Services&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Services&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Services&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two measures as follows:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total =&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;Pipeline&lt;/SPAN&gt;&lt;SPAN&gt;[Revenue]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Services Total = CALCULATE([Total], Table[Metric] = "Services")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I create a matrix:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I put the rows as Project and the values as Services, Services Total. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I also add two slicers: Year and Metric&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So, when I put my year as 2023 (for example) and metric as Product,&lt;BR /&gt;The value of Total changes with the filter as 2023 and metric as Product. However, the Total Services gives&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;me the Total with the filter only as year 2023 for each project. It doesn't apply the filter of metric as Product&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;which should give me the total services as 0 to my understanding but it doesn't. When I change the slicer year to 2022 (let's say), &lt;/SPAN&gt;&lt;SPAN&gt;the Total Services gives me Services value for the year 2022 only but changing the slicer for metric to Product doesn't&lt;BR /&gt;change anything to the Services Total.&lt;BR /&gt;&lt;BR /&gt;I am trying to understand why this happens. My initial thought was because the initial filter context was being&lt;BR /&gt;reset by CALCULATE but this doesn't seem to be the case as it is still being applied to Total and Services&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total for the year slicer. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;Thank you in advance.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 08 Feb 2024 17:00:41 GMT</pubDate>
    <dc:creator>afaro</dc:creator>
    <dc:date>2024-02-08T17:00:41Z</dc:date>
    <item>
      <title>Can one slicer filter be selectively applied while other not?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-one-slicer-filter-be-selectively-applied-while-other-not/m-p/3688953#M143330</link>
      <description>&lt;P&gt;I have a fact table which is something like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Project&lt;/TD&gt;&lt;TD&gt;Metric&lt;/TD&gt;&lt;TD&gt;Revenue&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Services&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Services&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Services&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two measures as follows:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total =&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;Pipeline&lt;/SPAN&gt;&lt;SPAN&gt;[Revenue]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Services Total = CALCULATE([Total], Table[Metric] = "Services")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I create a matrix:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I put the rows as Project and the values as Services, Services Total. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I also add two slicers: Year and Metric&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So, when I put my year as 2023 (for example) and metric as Product,&lt;BR /&gt;The value of Total changes with the filter as 2023 and metric as Product. However, the Total Services gives&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;me the Total with the filter only as year 2023 for each project. It doesn't apply the filter of metric as Product&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;which should give me the total services as 0 to my understanding but it doesn't. When I change the slicer year to 2022 (let's say), &lt;/SPAN&gt;&lt;SPAN&gt;the Total Services gives me Services value for the year 2022 only but changing the slicer for metric to Product doesn't&lt;BR /&gt;change anything to the Services Total.&lt;BR /&gt;&lt;BR /&gt;I am trying to understand why this happens. My initial thought was because the initial filter context was being&lt;BR /&gt;reset by CALCULATE but this doesn't seem to be the case as it is still being applied to Total and Services&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total for the year slicer. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;Thank you in advance.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Feb 2024 17:00:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-one-slicer-filter-be-selectively-applied-while-other-not/m-p/3688953#M143330</guid>
      <dc:creator>afaro</dc:creator>
      <dc:date>2024-02-08T17:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can one slicer filter be selectively applied while other not?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-one-slicer-filter-be-selectively-applied-while-other-not/m-p/3689654#M143370</link>
      <description>&lt;P&gt;If you want independent slicers you need to feed your slicers from disconnected tables.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 01:03:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-one-slicer-filter-be-selectively-applied-while-other-not/m-p/3689654#M143370</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-09T01:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can one slicer filter be selectively applied while other not?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-one-slicer-filter-be-selectively-applied-while-other-not/m-p/3693349#M143579</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687567" data-lia-user-login="afaro" class="lia-mention lia-mention-user"&gt;afaro&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;To ensure that the slicer correctly affects and measure, you can adjust the measure to follow the slicer selection. The following are ways to modify the measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Services Total =
CALCULATE (
    [Total],
    FILTER ( ALLSELECTED ( Table[Metric] ), Table[Metric] = "Services" )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;This measure is used to keep the slicer selection in context while still filtering for "Services". This way, if "Products" is selected in the slicer, 0 should be displayed correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired out put and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ada Wang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 05:45:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-one-slicer-filter-be-selectively-applied-while-other-not/m-p/3693349#M143579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-12T05:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can one slicer filter be selectively applied while other not?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-one-slicer-filter-be-selectively-applied-while-other-not/m-p/3694620#M143656</link>
      <description>&lt;P&gt;This gives me blank data for this measure since it removes all the initial filter context. But this works as using ALLEXCEPT worked for my specific use.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 17:54:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-one-slicer-filter-be-selectively-applied-while-other-not/m-p/3694620#M143656</guid>
      <dc:creator>afaro</dc:creator>
      <dc:date>2024-02-12T17:54:03Z</dc:date>
    </item>
  </channel>
</rss>

