<?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: 1 Slicer for 1 Filter and 1 opposite filter applied in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015153#M158209</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;I realised that I did not put link for bookbarks, check &lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-bookmarks?tabs=powerbi-desktop" target="_self"&gt;link&lt;/A&gt; if could be usefull in your case (check part&amp;nbsp;&lt;SPAN&gt;Assign bookmarks to buttons)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 08:46:46 GMT</pubDate>
    <dc:creator>some_bih</dc:creator>
    <dc:date>2024-06-28T08:46:46Z</dc:date>
    <item>
      <title>1 Slicer for 1 Filter and 1 opposite filter applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4013470#M158075</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a financial reports on Intercompany accounting I have 1 slicer that drives the choice on&amp;nbsp; the Company.&lt;/P&gt;&lt;P&gt;With this same slicer I would like to remove the lines that have the same Intercompany code (INTERCO_CD) as the Company Code selected.&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create a measure and to applied the second filter with it on the table.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;test filter =&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;SWITCH(&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; TRUE(),&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; ISFILTERED('COMPANY'[COMPANY_CD]) &amp;amp;&amp;amp; VALUES('GL'[INTERCO_CD]) &amp;nbsp;IN &amp;nbsp;VALUES ('COMPANY'[COMPANY_CD]), &lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; 0,1)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It does not work...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The final goal is to have a buton that activate this filter or not.&lt;BR /&gt;&lt;BR /&gt;many thanks for your suggestion&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Jun 2024 12:48:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4013470#M158075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-27T12:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: 1 Slicer for 1 Filter and 1 opposite filter applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4014817#M158187</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;based on your data, without model and other details, possible solution&lt;/P&gt;
&lt;P&gt;- as you mentioned button is to use bookmark features in Power BI, check link or&lt;/P&gt;
&lt;P&gt;- create separate column for intercompany flag with yes / no values (I am reporter for Intercompany :))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 06:07:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4014817#M158187</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-06-28T06:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: 1 Slicer for 1 Filter and 1 opposite filter applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015110#M158204</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;The data model is pretty simple on this part. I got a fact table 'GL' and a dimension table 'COMPANY'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If add a new column Yes/No based on inter company code , I will remove ALL inter company lines and not specifically the chosen company selected in the Company Slicer.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 08:28:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015110#M158204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-28T08:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: 1 Slicer for 1 Filter and 1 opposite filter applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015153#M158209</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;I realised that I did not put link for bookbarks, check &lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-bookmarks?tabs=powerbi-desktop" target="_self"&gt;link&lt;/A&gt; if could be usefull in your case (check part&amp;nbsp;&lt;SPAN&gt;Assign bookmarks to buttons)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 08:46:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015153#M158209</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-06-28T08:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: 1 Slicer for 1 Filter and 1 opposite filter applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015265#M158211</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;,Thanks for your quick reply, I will add more.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;/P&gt;
&lt;P&gt;1. Use the following DAX expression to create a table&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = VALUES('Table'[COMPANY_CD])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2.Put field into slicer.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3.Use the following DAX expression to create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _company_cd = VALUES('Table 2'[COMPANY_CD])
VAR _interco_cd = SELECTEDVALUE('Table'[INTERCO_CD])
RETURN 
 IF( NOT ISFILTERED('Table 2'[COMPANY_CD]),
 SUM('Table'[AMOUNT]),
    IF(_interco_cd IN _company_cd,BLANK(),SUM('Table'[AMOUNT]))
 )&lt;/LI-CODE&gt;
&lt;P&gt;4.Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 09:17:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015265#M158211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-28T09:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: 1 Slicer for 1 Filter and 1 opposite filter applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015306#M158214</link>
      <description>&lt;P&gt;thanks&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; that's half of the expected result&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;you exclude the selected Company Code.&lt;BR /&gt;&lt;BR /&gt;the expected result is this one,&amp;nbsp; based on you example :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to have 1 Slicer that combine 2 filters :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the standard one that select the right Company code&lt;/LI&gt;&lt;LI&gt;the opposite one (what you did) that exludes the INTERCO_CD based on the chosen company in the main slicer&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 28 Jun 2024 09:55:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015306#M158214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-28T09:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: 1 Slicer for 1 Filter and 1 opposite filter applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015334#M158218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Try this.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _company_cdForSlicer = VALUES('Table 2'[COMPANY_CD])
VAR _interco_cd = SELECTEDVALUE('Table'[INTERCO_CD])
VAR _compant_cd = SELECTEDVALUE('Table'[COMPANY_CD])
RETURN 
 IF( NOT ISFILTERED('Table 2'[COMPANY_CD]),
 SUM('Table'[AMOUNT]),
    IF( NOT _compant_cd IN _company_cdForSlicer,BLANK(),
        IF(_interco_cd IN _company_cdForSlicer,BLANK(),SUM('Table'[AMOUNT]))
    )
 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 09:58:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015334#M158218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-28T09:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: 1 Slicer for 1 Filter and 1 opposite filter applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015815#M158267</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;this solution works but... I can't use the orginal slicer which is a hierarchy slicer. I have to click the COMPANY_CD of the unlinked table.&lt;BR /&gt;I continue to look for an acceptable solution for users.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 14:17:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Slicer-for-1-Filter-and-1-opposite-filter-applied/m-p/4015815#M158267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-28T14:17:18Z</dc:date>
    </item>
  </channel>
</rss>

