<?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: How to exclude certain value within Filter (illustrated on the bottom DAX)? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-certain-value-within-Filter-illustrated-on-the/m-p/3769645#M147228</link>
    <description>&lt;P&gt;looks ok-ish. I don't remember if these tables are joined in the data model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, instead of IN VALUES() you can also use TREATAS.&amp;nbsp; Allegedly that is a little faster.&lt;/P&gt;</description>
    <pubDate>Sun, 17 Mar 2024 23:15:40 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-03-17T23:15:40Z</dc:date>
    <item>
      <title>How to exclude certain value within Filter (illustrated on the bottom DAX)?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-certain-value-within-Filter-illustrated-on-the/m-p/3762465#M146806</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;I have a Measure that has DAX code something like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Occupancy % Total Rest =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Divide&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;calculate&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; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tblTrend&lt;/SPAN&gt;&lt;SPAN&gt;[Ave Census]&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; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;tblTrend&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;tblTrend&lt;/SPAN&gt;&lt;SPAN&gt;[FacilityCode]&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;VALUES('tblKey'[FacilityCode])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ), &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tblOccupancy&lt;/SPAN&gt;&lt;SPAN&gt;[Capacity]&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;tblTrend&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;tblTrend&lt;/SPAN&gt;&lt;SPAN&gt;[FacilityCode]&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;VALUES&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;('tblKey'[FacilityCode]))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&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;&lt;SPAN&gt;I would like to &lt;U&gt;&lt;STRONG&gt;add&lt;/STRONG&gt;&lt;/U&gt; more excluded value of something like&amp;nbsp;&lt;STRONG&gt;tblKey'[FacilityCode] = " 61" &lt;/STRONG&gt;to it or&amp;nbsp;&lt;STRONG&gt;tblKey'[FacilityCode] = " 61" or "52"&amp;nbsp; along with&amp;nbsp;VALUES('tblKey'[FacilityCode]) &lt;/STRONG&gt;on certain Measures.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The reason that I am trying to do is, currently, this measure dynamically changes value by how user selects slicer called "Facility Name".&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But, I would like to modify the calculation of this measure by &lt;STRONG&gt;adding&lt;/STRONG&gt; another condition to exclude value(s).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In SQL, it would be like:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Where&lt;/STRONG&gt; &lt;STRONG&gt;tblKey'[FacilityCode] not in ('61') &lt;/STRONG&gt;or even like&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Where tblKey'[FacilityCode] not in ('61', '52') on other future scenario where multiple values need to be excluded.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I use slicer "Facility Name", and I want to show all Facilities (Valley, Ally, Jack) on &lt;STRONG&gt;rest&lt;/STRONG&gt; of visuals, but I would like to apply this exclusion on &lt;U&gt;only certain&lt;/U&gt; Measures.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How do I express that?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have attached &lt;A href="https://drive.google.com/file/d/1ZdpiAfkS3dmR_pIBLiDldG5d3RFBEJHX/view?usp=sharing" target="_self"&gt;PBI file here&lt;/A&gt; for reference:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This particular CARD (that shows 91.9%) is the code (measure called "Occupancy % Total Rest") shown on the top.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;So, in this case, instead of 91.9%, I would like to see &lt;STRONG&gt;80.9%&lt;/STRONG&gt; because FacilityCode of 61 (Jack) is excluded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Mar 2024 06:59:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-certain-value-within-Filter-illustrated-on-the/m-p/3762465#M146806</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2024-03-14T06:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude certain value within Filter (illustrated on the bottom DAX)?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-certain-value-within-Filter-illustrated-on-the/m-p/3764137#M146893</link>
      <description>&lt;P&gt;it's very similar syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;tblKey[FacilityCode] not in {"61", "52"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;tblKey[FacilityCode] not in VALUES(&amp;lt;enumerator&amp;gt;)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 16:59:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-certain-value-within-Filter-illustrated-on-the/m-p/3764137#M146893</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-14T16:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude certain value within Filter (illustrated on the bottom DAX)?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-certain-value-within-Filter-illustrated-on-the/m-p/3764178#M146896</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help again.&lt;/P&gt;&lt;P&gt;Does this look good?&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 18:58:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-certain-value-within-Filter-illustrated-on-the/m-p/3764178#M146896</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2024-03-14T18:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude certain value within Filter (illustrated on the bottom DAX)?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-certain-value-within-Filter-illustrated-on-the/m-p/3769645#M147228</link>
      <description>&lt;P&gt;looks ok-ish. I don't remember if these tables are joined in the data model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, instead of IN VALUES() you can also use TREATAS.&amp;nbsp; Allegedly that is a little faster.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 23:15:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-certain-value-within-Filter-illustrated-on-the/m-p/3769645#M147228</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-17T23:15:40Z</dc:date>
    </item>
  </channel>
</rss>

