<?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: DAX function to apply OR condition on multiple columns based on Slicers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4662272#M178540</link>
    <description>&lt;P&gt;Need a all() to remove the current filter context&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SelectedEmployees =&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; COUNTROWS(tblData),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; FILTER(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;All( 'tblData' ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (tblData[Location] in VALUES(tbLocations[Locations]) ||&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tblData[Gender] in VALUES(tblGender[Gender]) ||&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tblData[Age] in VALUES(tblAge[AgeGroups]))&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2025 06:22:34 GMT</pubDate>
    <dc:creator>Deku</dc:creator>
    <dc:date>2025-04-22T06:22:34Z</dc:date>
    <item>
      <title>DAX function to apply OR condition on multiple columns based on Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4662269#M178539</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have multiple slicers (Location, Gender, Age, etc). I want to count all rows for any value which matches with the slicer selection.&lt;BR /&gt;&lt;BR /&gt;Example - If user selected Location=US, UK + Gender=Female + Age=18-24 Years, the output should be anyone who is from Locations = US or UK, OR Gender is Female OR Age is 18-24 Years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried below formula but not working.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SelectedEmployees =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&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;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tblData&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;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'tblData'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN&gt;tblData&lt;/SPAN&gt;&lt;SPAN&gt;[Location]&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;tbLocations&lt;/SPAN&gt;&lt;SPAN&gt;[Locations]&lt;/SPAN&gt;&lt;SPAN&gt;) ||&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;tblData&lt;/SPAN&gt;&lt;SPAN&gt;[Gender]&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;tblGender&lt;/SPAN&gt;&lt;SPAN&gt;[Gender]&lt;/SPAN&gt;&lt;SPAN&gt;) ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tblData[Age] in VALUES(tblAge[AgeGroups]))&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Apr 2025 06:20:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4662269#M178539</guid>
      <dc:creator>Kosh</dc:creator>
      <dc:date>2025-04-22T06:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX function to apply OR condition on multiple columns based on Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4662272#M178540</link>
      <description>&lt;P&gt;Need a all() to remove the current filter context&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SelectedEmployees =&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; COUNTROWS(tblData),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; FILTER(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;All( 'tblData' ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (tblData[Location] in VALUES(tbLocations[Locations]) ||&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tblData[Gender] in VALUES(tblGender[Gender]) ||&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tblData[Age] in VALUES(tblAge[AgeGroups]))&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 06:22:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4662272#M178540</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-04-22T06:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX function to apply OR condition on multiple columns based on Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4662553#M178548</link>
      <description>&lt;P&gt;Make sure these 3 tables&amp;nbsp;&lt;SPAN&gt;tbLocations,&amp;nbsp;tblGender,&amp;nbsp;tblAge DON'T filter each other. If so, the measure is fairly simple,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 12:29:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4662553#M178548</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2025-04-22T12:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX function to apply OR condition on multiple columns based on Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4662592#M178549</link>
      <description>&lt;P&gt;Thanks for the reply. How to show this data in a table/matrix with breadkdown by any field? Using ALL in filter is giving same value for all rows table/matrix.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 08:22:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4662592#M178549</guid>
      <dc:creator>Kosh</dc:creator>
      <dc:date>2025-04-22T08:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX function to apply OR condition on multiple columns based on Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4662812#M178557</link>
      <description>&lt;LI-CODE lang="markup"&gt;SelectedEmployees = 
CALCULATE(
    COUNTROWS(tblData),
        ALL('tbLocations'),ALL(tblGender), ALL(tblAge),
        OR(OR(tblData[Location] in VALUES(tbLocations[Locations]),
                tblData[Gender] in VALUES(tblGender[Gender])), 
            tblData[Age] in VALUES(tblAge[AgeGroups]))   
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Apr 2025 10:04:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4662812#M178557</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2025-04-22T10:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX function to apply OR condition on multiple columns based on Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4665156#M178671</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="594698" data-lia-user-login="Kosh" class="lia-mention lia-mention-user"&gt;Kosh&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Chaithanya.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 14:25:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4665156#M178671</guid>
      <dc:creator>v-kathullac</dc:creator>
      <dc:date>2025-04-23T14:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: DAX function to apply OR condition on multiple columns based on Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4670957#M178917</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/594698" target="_blank"&gt;@Kosh&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Chaithanya.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 12:18:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4670957#M178917</guid>
      <dc:creator>v-kathullac</dc:creator>
      <dc:date>2025-04-28T12:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX function to apply OR condition on multiple columns based on Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4866745#M185583</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Thanks for your reply. Not sure where the issue is but the formula is not giving correct output. Example - When I select Male in Gender filter the count is 1000+, so if I select any other filter the value should either remain same or increase (as using OR filter) but the count is going down.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;CALCULATE(&lt;BR /&gt;COUNTROWS(tblDnI), ALL(tblGender),ALL(tblSexualOrientation),ALL(tblReligion),ALL(tblDisability),all(tblOccupation),all(tblEthnicity), &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;(tblDnI[Gender] in VALUES(tblGender[Gender])&lt;BR /&gt;||&lt;BR /&gt;tblDnI[Sexual Orientation] in VALUES(tblSexualOrientation[Sexual Orientation])&lt;BR /&gt;||&lt;BR /&gt;tblDnI[Religion] in VALUES(tblReligion[Religion])&lt;BR /&gt;||&lt;BR /&gt;tblDnI[Disabled] in VALUES(tblDisability[Disabled])&lt;BR /&gt;||&lt;BR /&gt;tblDnI[Household Occupation] in VALUES(tblOccupation[SEB])&lt;BR /&gt;||&lt;BR /&gt;tblDnI[Ethnic Origin] in VALUES(tblEthnicity[Ethnicity])&lt;BR /&gt;))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 07:49:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-to-apply-OR-condition-on-multiple-columns-based-on/m-p/4866745#M185583</guid>
      <dc:creator>Kosh</dc:creator>
      <dc:date>2025-11-05T07:49:15Z</dc:date>
    </item>
  </channel>
</rss>

