<?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: Filter out values from Measure Iteration in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088655#M15659</link>
    <description>&lt;P&gt;Try this measure instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NewMeasure = calculate(averagex(values(prog_SiteAll[Project Name]), [% of Program Quantity]), prog_SiteAll[CareServices] = "True", Filter(All(prog_SiteAll[Gross Program]), prog_SiteAll[Gross Program]&amp;gt;0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2020 23:15:29 GMT</pubDate>
    <dc:creator>mahoneypat</dc:creator>
    <dc:date>2020-05-13T23:15:29Z</dc:date>
    <item>
      <title>Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088591#M15652</link>
      <description>&lt;P&gt;I have a measure that is almost working... I'm stuck on not being able to filter out values that don't match certain criteria.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll outline the logic first, then post my current measure:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;For a given site&lt;/LI&gt;&lt;LI&gt;For a specific project&lt;/LI&gt;&lt;LI&gt;Where CareServices = True&lt;/LI&gt;&lt;LI&gt;And Gross Program &amp;gt; 0&lt;/LI&gt;&lt;LI&gt;AVERAGEX [% of Program Category]&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, where the context strictly meets the criteria (Project 2) the measure currently works, but where the criteria are not strictly met, I don't get the "correct" answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the current measure:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;% Cat Avg = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CALCULATE(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;     AVERAGEX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         prog_SiteAll,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         [% of Program Category]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;     ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;     ALLEXCEPT(prog_SiteAll, site_Sites[Abbreviated Name], prog_SiteAll[Project Name]),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;     FILTER(prog_SiteAll, prog_SiteAll[Gross Program Area] &amp;gt; 0) // I don't think this line is currently doing much, if anything... at least nothing useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Thanks very much for looking! Spent serveral hours today watching videos and trying to better wrap my head around Evaluations and Filter Contexts particularly when you're in a measure, and I'm stuck!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 May 2020 22:02:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088591#M15652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-13T22:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088655#M15659</link>
      <description>&lt;P&gt;Try this measure instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NewMeasure = calculate(averagex(values(prog_SiteAll[Project Name]), [% of Program Quantity]), prog_SiteAll[CareServices] = "True", Filter(All(prog_SiteAll[Gross Program]), prog_SiteAll[Gross Program]&amp;gt;0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 23:15:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088655#M15659</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-05-13T23:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088668#M15661</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226208" data-lia-user-login="mahoneypat" class="lia-mention lia-mention-user"&gt;mahoneypat&lt;/a&gt;&amp;nbsp;thanks for trying, but that did not work either. The filtering clearly works, but I end up with the row value in the Measure. So for the ambulator row where the % of Program Category is 50.85% the result in the measure is the same value. Rows that don't meet the logic criteria show blank, so that is "good" in the sense that the logic is working, but not in the context of row that are not compliant, which means it is not getting out of the row context to iterate over multiple values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a previous iteration I had gone down the road of a virtual table, which I believe may still be where the solution lies, so I may try applying what you gave me to a virtual table, and see if that propegates as expected. Below is the code as I wrote it, there are a couple of relationships not readily apparent in my original post, though I don't think they have any bearing on the performance of this particular measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;  AVERAGEX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;      VALUES(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         prog_SiteAll[Project Name]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;      ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;      [% of Program Category]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;  ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; prog_Categories[CareServices] = TRUE(),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; FILTER(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    ALL(prog_SiteAll[Gross Program Area]),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    prog_SiteAll[Gross Program Area] &amp;gt; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for trying!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 May 2020 23:37:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088668#M15661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-13T23:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088685#M15664</link>
      <description>&lt;P&gt;Reread your post. Instead of iterate over Program Name, inside the Values() of my proposed measure try the Cat column instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 00:26:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088685#M15664</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-05-14T00:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088688#M15665</link>
      <description>&lt;P&gt;I assume you meant Project Name and not Program Name since that is the AVGX iteration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regardless, still no dice. Returns the same result as the row, rather than iterating over all the rows that meet the criteria. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 00:34:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088688#M15665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-14T00:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088692#M15667</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226208" data-lia-user-login="mahoneypat" class="lia-mention lia-mention-user"&gt;mahoneypat&lt;/a&gt;&amp;nbsp; you did get me a step closer! So this might work. If I take the Category out of the visual, it does properly average the valid values! So, now I'm into the space of why does the measure work in one context and not another. I haven't previously gotten to even work when the visual was simplified.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 May 2020 00:38:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088692#M15667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-14T00:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088697#M15668</link>
      <description>&lt;P&gt;Ok.&amp;nbsp; Let's try the brute force approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NewMeasure = var result = calculate(averagex(values(prog_SiteAll[Cat]), [% of Program Quantity]), prog_SiteAll[CareServices] = "True", Filter(All(prog_SiteAll[Gross Program]), prog_SiteAll[Gross Program]&amp;gt;0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;return if(and(min(prog_SiteAll[Gross Program])&amp;gt;0, min(prog_SiteAll[CareServices])="True"), result, blank())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think Cat in the Values, but sub that out if not right.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 00:43:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088697#M15668</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-05-14T00:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088737#M15671</link>
      <description>You are struggling because your model is... well, bad. If you reshape it so that it meets the rules of correct dimensional modelling, your measure will be very simple to write and fast. Currently, the model is simply non-workable.&lt;BR /&gt;&lt;BR /&gt;Here is something about good models in PBI:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=_quTwyvDfG0" target="_blank"&gt;https://www.youtube.com/watch?v=_quTwyvDfG0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=78d6mwR8GtA" target="_blank"&gt;https://www.youtube.com/watch?v=78d6mwR8GtA&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Thu, 14 May 2020 01:47:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088737#M15671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-14T01:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088758#M15672</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;I think it is pretty unfair to tell me that my model is bad when I've only shared a very small part and I'm dealing with a somewhat complex problem. If you'd care to let me know what part you think is bad, I'd be happy to further articulate what is driving the decisions I'm making and have made.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ultimate goal here is to flag dependent categories whose percentage of growth is not within a range based on the average of the growth of the independent categories. Meanwhile everything has to be done as running grand totals as the user could enter multiple projects over a 25 year time horizon and they want to see the impacts of their decisions around the size of those projects across each of their sites. Meanwhile there are existing benchmarkr over that 25 year time horizon that the proposed changes need to be compared against and lastly there are no fixed ratios or relationships between the categories of space, rather the point is to do comparitative analysis of possible decisions to determine their feasilibility. Furthermore the whole data source has to be contained within what amounts to a structured excel file and the users have to be able to enter or manipulate the data with relative ease within Excel. Could I further normalize "projects" possibly, but I don't think that would make a difference here, the other columns are also normalized. Should this be done in a full SQL database with straight-up application development, quite possilbe. The simple fact is my mandate is to provide the end users a great deal of flexibility using Excel and PowerBI. I'd be happy to spend an hour or more on Zoom with your taking you through the whole model if you want to offer free consulting services.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 02:01:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088758#M15672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-14T02:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088772#M15674</link>
      <description>Good dimensional models consist of facts and dimensions. What you have shown so far does not adhere to this.&lt;BR /&gt;&lt;BR /&gt;You are mixing many different entities in one table. This is BAD and there's nothing more to say. Hence your DAX is not easy to write.&lt;BR /&gt;&lt;BR /&gt;Please watch the vids I've given you links to.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Thu, 14 May 2020 02:05:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088772#M15674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-14T02:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088784#M15677</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the portion of the model under consideration. With the exception of "Project Name" being able to be normalized I open to suggestions on how else you would further normalize this data model into Facts &amp;amp; Dimensions.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 02:12:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088784#M15677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-14T02:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088800#M15679</link>
      <description>I can immediately see flaws in this design. Fact tables are measurements about processes (with the exception of factless fact tables). All their columns should be hidden. Only measures can be exposed. Slicing must be done only via dimensions.&lt;BR /&gt;&lt;BR /&gt;All columns in your fact table are exposed. BAD.&lt;BR /&gt;&lt;BR /&gt;Define your business entities. Extract them into dimensions where each row is a description of one unique item. Your fact table should consist only of keys to dimensions and measurements. All of this must be hidden. Please, just rethink this design. Make it CLEAN. Then we can think about simple and fast measures.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Thu, 14 May 2020 02:23:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1088800#M15679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-14T02:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out values from Measure Iteration</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1095166#M15961</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226208" data-lia-user-login="mahoneypat" class="lia-mention lia-mention-user"&gt;mahoneypat&lt;/a&gt;&amp;nbsp;thanks for trying to assist and being friendly about it! Since it needed it anyhow I did rebuild the data model and made a few small tweaks. I think though it should've still been able to work in the old data model. The final Measure looks like this, the use of "Values" was the keystone, ironically tripped myslef up on the conditional operators when manually cross checking the mathematical results (oh well):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Avg Cat Deviation Value = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR __Calc = //create a virtual table that filters to the context of the current row; Site, Project, and associate Space Categories that are Care Services. Include the caluclated measures for the % of Benchmark Program and the previous % of Benchmark Program&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CALCULATETABLE(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ADDCOLUMNS(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; SUMMARIZE( 'prog Proposed Project Program', Sites[Abbreviated Name], 'prog Projects'[ID], 'prog Space Categories'[ID] ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "% of Bnch", [Program % of Cat Benchmark Prog], "Prev %", [Prev % Bnch]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ALL('prog Proposed Project Program'), //get all rows from this table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; VALUES(Sites[Abbreviated Name]), //filter to the Site context of current row&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; VALUES('prog Projects'[Project Name]), //filter to the Project context of current row&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 'prog Proposed Project Program'[Program Area] &amp;gt; 0, //filter for only categories that have changed in this project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 'prog Space Categories'[CareServices] = TRUE() // filter for Space Categories that are only marked as "Care Services"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR AVGBnch = AVERAGEX( __Calc, [% of Bnch]) //calculate the Average of the rows in the filtered table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR AVGPrev = AVERAGEX( __Calc, [Prev %]) //calculate the Average of the rows in the filtered table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR PercRemainder = (AVGBnch - AVGPrev)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; PercRemainder&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 May 2020 00:39:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-values-from-Measure-Iteration/m-p/1095166#M15961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-19T00:39:38Z</dc:date>
    </item>
  </channel>
</rss>

