<?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: Calculate average for rows not included in slicer selections in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-for-rows-not-included-in-slicer-selections/m-p/4278855#M169785</link>
    <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="844800" data-lia-user-login="chatals" class="lia-mention lia-mention-user"&gt;chatals&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try like:&lt;/P&gt;
&lt;P&gt;1. duplicate all dim tables and keep them disconnected, e.g&lt;/P&gt;
&lt;P&gt;age2 = age&lt;/P&gt;
&lt;P&gt;2.plot all slicers with columns from the dulpicate dim tables&lt;/P&gt;
&lt;P&gt;3. wrap expressions with opposite condition like below in your meausre:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;facttable[age]&amp;lt;MIN(age2[age])&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp;facttable[age]&amp;gt;MAX(age2[age])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;facttable[gender]&amp;lt;&amp;gt;SELECTEDVALUE(gender2[gender])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2024 01:33:37 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2024-11-12T01:33:37Z</dc:date>
    <item>
      <title>Calculate average for rows not included in slicer selections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-for-rows-not-included-in-slicer-selections/m-p/4278641#M169776</link>
      <description>&lt;P&gt;I'm working on a clinical trials study. I have a column "Symptom Progression Rate (SPR)" which is a numeric value that describes the speed at which an illness is progressing. For study participants, I'm trying to compare an average of that value, when filtered by a one or more demographic slicers such as gender, age, and ethnicity as well as clinical slicers that includes medications and nutrients, to the average SPR for participants who are not included in the slicer selections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, out of 1,500 study participants, if I select 400 male participants between the age of 40-50 that are taking a particular drug, I want to calculate the average SPR for the 1,100 that are not selected by any of the slicers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Model&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DIM&lt;BR /&gt;Participant Table&lt;BR /&gt;-Participant ID&lt;BR /&gt;-Age&lt;BR /&gt;-Gender&lt;BR /&gt;-Ethnicity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1:1)&lt;/P&gt;&lt;P&gt;Slope Table&lt;BR /&gt;-Participant ID&lt;BR /&gt;-SPR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1:Many)&lt;BR /&gt;Drug Table&lt;BR /&gt;-ParticipantID&lt;BR /&gt;-Name of Drug&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1:Many)&lt;BR /&gt;Nutrient Table&lt;BR /&gt;-Participant ID&lt;BR /&gt;-Nutrient Name&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 18:58:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-for-rows-not-included-in-slicer-selections/m-p/4278641#M169776</guid>
      <dc:creator>chatals</dc:creator>
      <dc:date>2024-11-11T18:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average for rows not included in slicer selections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-for-rows-not-included-in-slicer-selections/m-p/4278855#M169785</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="844800" data-lia-user-login="chatals" class="lia-mention lia-mention-user"&gt;chatals&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try like:&lt;/P&gt;
&lt;P&gt;1. duplicate all dim tables and keep them disconnected, e.g&lt;/P&gt;
&lt;P&gt;age2 = age&lt;/P&gt;
&lt;P&gt;2.plot all slicers with columns from the dulpicate dim tables&lt;/P&gt;
&lt;P&gt;3. wrap expressions with opposite condition like below in your meausre:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;facttable[age]&amp;lt;MIN(age2[age])&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp;facttable[age]&amp;gt;MAX(age2[age])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;facttable[gender]&amp;lt;&amp;gt;SELECTEDVALUE(gender2[gender])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 01:33:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-for-rows-not-included-in-slicer-selections/m-p/4278855#M169785</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-12T01:33:37Z</dc:date>
    </item>
  </channel>
</rss>

