<?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: Using measure shows records that should be excluded (sample file included) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-measure-shows-records-that-should-be-excluded-sample-file/m-p/4086635#M162208</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your semantic model correctly, but I suggest to try to start from the below measure. And then, I believe you can get to the goal that you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Weight Category Measure =
SWITCH (
    TRUE (),
    COUNTROWS ( Residents ) &amp;gt;= 1
        &amp;amp;&amp;amp; ISBLANK ( MAX ( Residents[Weight] ) ), "No recorded weight",
    COUNTROWS ( Residents ) &amp;gt;= 1
        &amp;amp;&amp;amp; MAX ( Residents[Weight] ) &amp;lt; 30, "Under 30kg in weight",
    COUNTROWS ( Residents ) &amp;gt;= 1
        &amp;amp;&amp;amp; MAX ( Residents[Weight] ) &amp;gt; 130, "Over 130kg in weight",
    COUNTROWS ( Residents ) &amp;gt;= 1, "Normal weight"
)
&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 07 Aug 2024 11:42:10 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2024-08-07T11:42:10Z</dc:date>
    <item>
      <title>Using measure shows records that should be excluded (sample file included)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-measure-shows-records-that-should-be-excluded-sample-file/m-p/4086512#M162199</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The attached PBIX file shows the issue. In essence, when using the measure (shown in the lower table), the slicer doesn't exclude any people. In the image below, I picked a specific facility (ID = 9), and as you can see, the top table shows only residents from that facility, whereas the lower table still shows residents from other facilities.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I can solve the problem using a calculated column, but I am trying to NOT create a calculated column if I can help it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Click &lt;A href="https://drive.google.com/file/d/123IHwyQLf6Rom0YmdZUgKZaeT2paUHz1/view?usp=sharing" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt; to open the PBIX file. Then click the download button at top right to download the file. (See green arrow for download button).&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;Thank you in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 10:15:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-measure-shows-records-that-should-be-excluded-sample-file/m-p/4086512#M162199</guid>
      <dc:creator>DataSkills</dc:creator>
      <dc:date>2024-08-07T10:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using measure shows records that should be excluded (sample file included)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-measure-shows-records-that-should-be-excluded-sample-file/m-p/4086635#M162208</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your semantic model correctly, but I suggest to try to start from the below measure. And then, I believe you can get to the goal that you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Weight Category Measure =
SWITCH (
    TRUE (),
    COUNTROWS ( Residents ) &amp;gt;= 1
        &amp;amp;&amp;amp; ISBLANK ( MAX ( Residents[Weight] ) ), "No recorded weight",
    COUNTROWS ( Residents ) &amp;gt;= 1
        &amp;amp;&amp;amp; MAX ( Residents[Weight] ) &amp;lt; 30, "Under 30kg in weight",
    COUNTROWS ( Residents ) &amp;gt;= 1
        &amp;amp;&amp;amp; MAX ( Residents[Weight] ) &amp;gt; 130, "Over 130kg in weight",
    COUNTROWS ( Residents ) &amp;gt;= 1, "Normal weight"
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Aug 2024 11:42:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-measure-shows-records-that-should-be-excluded-sample-file/m-p/4086635#M162208</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-08-07T11:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using measure shows records that should be excluded (sample file included)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-measure-shows-records-that-should-be-excluded-sample-file/m-p/4086653#M162209</link>
      <description>&lt;P&gt;Hi Jihwan_Kim, thank you for that solution. That seems to have done the trick!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":hugging_face:"&gt;🤗&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 11:52:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-measure-shows-records-that-should-be-excluded-sample-file/m-p/4086653#M162209</guid>
      <dc:creator>DataSkills</dc:creator>
      <dc:date>2024-08-07T11:52:51Z</dc:date>
    </item>
  </channel>
</rss>

