<?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: Matrix Slicer with OR condition instead of AND in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2649263#M78065</link>
    <description>&lt;P&gt;I watched his video already. I downloaded his file and noticed something that seems to be an error (Or at least not what I am looking for).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you select JUST one (Professional), you get a single count of 53&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;If you select JUST one from the other slicer (Tailspin), you get 375 units.&amp;nbsp;&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;You should see 53 + 375 (428) but we don't.&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;It would appear that it is EXCLUDING the AND conditions (There are 24 units that are under the AND condition and 428 - 24 = 404).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I need the total to be 428.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;That is a great video though, as are all of his videos.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2022 05:10:50 GMT</pubDate>
    <dc:creator>jwin2424</dc:creator>
    <dc:date>2022-07-20T05:10:50Z</dc:date>
    <item>
      <title>Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2648839#M78040</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have looked all over and can't seem to find what I need. I am looking to use an OR condition with filtering. I have attached a sample file for help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables: Sales and Territory. I am trying to get a matrix that shows the sum of revenue based on either the End Customer Name or the Territory.&amp;nbsp;&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;Here is what I would like:&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;I would like to be able to see all sales from Ray as well as all sales from Territory C. I found a workaround that almost works. (&lt;A href="https://apexinsights.net/blog/or-xor-slicing#:~:text=The%20way%20that%20slicers%20work%20by%20default%20is,use%20those%20conditions%20to%20filter%20the%20data%20model." target="_blank"&gt;Applying filters with OR and XOR conditions in Power BI — Apex Insights: Power BI tips &amp;amp; tricks&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;The downside to the link is that I MUST select criteria from both slicers. I would like to be able to see Territory C only, Ray only, or both combined.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://fortive-my.sharepoint.com/:u:/r/personal/joseph_winton_tektronix_com/Documents/OR%20Conidtion%20Help.pbix?csf=1&amp;amp;web=1&amp;amp;e=M6jhuK" target="_blank"&gt;OR Conidtion Help.pbix&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I can't figure it out. Any help would be great!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 23:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2648839#M78040</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2022-07-19T23:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2649126#M78057</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343802" data-lia-user-login="jwin2424" class="lia-mention lia-mention-user"&gt;jwin2424&lt;/a&gt; , both slicer need to be from independent tables &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;meausre&amp;nbsp; =&lt;/P&gt;
&lt;P&gt;var _tab1 = values(Territory1[Territory])&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var _tab2 = values(Customer1[End Customer])&lt;/P&gt;
&lt;P&gt;return&amp;nbsp;&lt;/P&gt;
&lt;P&gt;calculate(Sum(Table[Value]), filter( Table, Table[Territory] in _tab1 || Table[End Customer] in _tab2) )&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 03:43:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2649126#M78057</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-20T03:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2649207#M78062</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343802" data-lia-user-login="jwin2424" class="lia-mention lia-mention-user"&gt;jwin2424&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can follow&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/l5JX3G5Ntzk" target="_blank"&gt;https://youtu.be/l5JX3G5Ntzk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 04:40:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2649207#M78062</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-20T04:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2649263#M78065</link>
      <description>&lt;P&gt;I watched his video already. I downloaded his file and noticed something that seems to be an error (Or at least not what I am looking for).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you select JUST one (Professional), you get a single count of 53&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;If you select JUST one from the other slicer (Tailspin), you get 375 units.&amp;nbsp;&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;You should see 53 + 375 (428) but we don't.&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;It would appear that it is EXCLUDING the AND conditions (There are 24 units that are under the AND condition and 428 - 24 = 404).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I need the total to be 428.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;That is a great video though, as are all of his videos.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 05:10:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2649263#M78065</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2022-07-20T05:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2649290#M78066</link>
      <description>&lt;P&gt;I tried this a few different ways, and I don't get any results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Territory is a seperate table with a one way relationship to Sales.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Territory already has distinct values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to see if the formula worked, I only used the Sales table and not the Territory table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The slicers below are directly from the Sales table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I should be seeing 92, but instead it returns nothing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am curious if you are able to try in the pbix file I downloaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 05:25:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2649290#M78066</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2022-07-20T05:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2650420#M78109</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343802" data-lia-user-login="jwin2424" class="lia-mention lia-mention-user"&gt;jwin2424&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have 2 sets, A and B, and they do intersect, then to calculate the number of elements in A+B, you have to use this formula: |A| + |B| - |A*B|. If you don't remove the intersection, you'll count some elements twice. So, I think what you get is correct. In your case the number is less than the sum because there are some "elements" that belong to both "categories": Professional and Tailspin Toys.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 12:47:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2650420#M78109</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-07-20T12:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2650422#M78110</link>
      <description>&lt;P&gt;By the way.... the file cannot be accessed from outside.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 12:49:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2650422#M78110</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-07-20T12:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2651141#M78158</link>
      <description>&lt;P&gt;Maybe I shared the wrong link. What about this?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://fortive-my.sharepoint.com/:u:/g/personal/joseph_winton_tektronix_com/EYzkwevot8dAnsurhaETCbIBl4QIWhqAyPPVaW2S6ad9vQ?e=GbtccK" target="_blank"&gt;OR Conidtion Help.pbix&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 17:49:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2651141#M78158</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2022-07-20T17:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2651215#M78172</link>
      <description>&lt;P&gt;I see what you're saying. It calculates as not to double add the values. That makes sense.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 18:37:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2651215#M78172</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2022-07-20T18:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2651228#M78174</link>
      <description>&lt;P&gt;I followed the video again and have a few questions:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1: The formula relies on two tables outside of the fact table.&amp;nbsp;&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;The end customer table for me is bogging down my actual report. I already have the end customer in the fact table (Sales), so why can't I use the values from this table? Can I avoid making a seperate table for this and just use to two fields as shown?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;2: This DAX works ONLY when two criteria are selected. Some of the end users of the report only need one of the slicers (End Customer/Territory) and some end users of the report need to use both slicers.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;With two slicers in use, I see data in both the AND and OR conidtion&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;But with one criteria, my measure breaks and doesn't show 64.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Is there a way to put an IF statement that says like "If one slicer is used, return the value. If two slicers are used, use the measure?"&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 18:45:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2651228#M78174</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2022-07-20T18:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2651687#M78201</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;new table:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;R_ID = &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dw_orders[restaurant_id]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YYYYMM = &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dw_orders[YYYYMM]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;new Measure&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dw_orders[restaurant_id]&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;R_ID[restaurant_id]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;) +&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dw_orders[YYYYMM]&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;YYYYMM[YYYYMM]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;filter measure is greater than 0.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Jul 2022 02:56:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2651687#M78201</guid>
      <dc:creator>vapid128</dc:creator>
      <dc:date>2022-07-21T02:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2652390#M78241</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343802" data-lia-user-login="jwin2424" class="lia-mention lia-mention-user"&gt;jwin2424&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, is the formula right in your report now?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 08:45:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2652390#M78241</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-07-21T08:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2653973#M78329</link>
      <description>&lt;P&gt;The video worked previously, I just didn't understand that it was excluding double-counting. I reran the formula, but I still have the issue that it only works when two criteria are selected. I would love to select from either one slicer or both slicers and get a correct total. In the video formula, the total is incorrect if just one slicer is selected.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 17:37:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2653973#M78329</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2022-07-21T17:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2654359#M78362</link>
      <description>&lt;P&gt;I'm so close, but I don't see where I am going wrong in my formula.&amp;nbsp;&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;In the above formula, I can get a working OR function with the highlighted DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select one item, I get the correct result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;When I select two criteria, my standalone formula works correctly, but my IF statement breaks.&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;&lt;BR /&gt;&lt;BR /&gt;I don't know why it won't return the correct answer &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 22:34:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2654359#M78362</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2022-07-21T22:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Slicer with OR condition instead of AND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2654372#M78367</link>
      <description>&lt;P&gt;I figured it out!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OR #2 = 
VAR Terr = VALUES(Territory[Territory Code (PK)])
VAR EndC = VALUES('End Customer Name'[End Customer])
VAR _ORSum =
    CALCULATE(
        sum(Sales[Sales Net Revenue]),     
            CALCULATETABLE(
                FILTER (
                    Sales,
                    OR (
                        RELATED ('End Customer Name'[End Customer]) IN EndC,
                        RELATED (Territory[Territory Code (PK)]) IN Terr
                    )
                ),
                ALL ( Territory[Territory Code (PK)] ),
                ALL ('End Customer Name'[End Customer])
            )     
    )
RETURN
IF( 
    AND(
        ISFILTERED('End Customer Name'[End Customer]),
        ISFILTERED(Territory[Territory Code (PK)])
    ), _ORSum, sum(Sales[Sales Net Revenue])
    
    )
  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure why reversing the IF argument worked, but it did!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;And if I select a second criteria:&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;So there you go.. the more you select, the more you get.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 22:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Slicer-with-OR-condition-instead-of-AND/m-p/2654372#M78367</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2022-07-21T22:52:53Z</dc:date>
    </item>
  </channel>
</rss>

