<?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: AVERAGEX with RELATEDTABLE and 2 filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVERAGEX-with-RELATEDTABLE-and-2-filters/m-p/4781094#M183090</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1324668" data-lia-user-login="aafvincent" class="lia-mention lia-mention-user"&gt;aafvincent&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you for reaching out to Microst Fabric Community Forum.&lt;BR /&gt;&lt;BR /&gt;To accurately determine Product Readiness, calculate the average readiness of the associated Constituents, making sure to exclude any constituents marked as "No longer applicable" and those linked via an "Optional" relationship type.&lt;BR /&gt;Use the following &lt;STRONG&gt;Measure&lt;/STRONG&gt; to achieve this result.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Product Readiness = &lt;/STRONG&gt;&lt;BR /&gt;AVERAGEX(&lt;BR /&gt;FILTER(&lt;BR /&gt;RELATEDTABLE(Constituent),&lt;BR /&gt;Constituent[Constituent Status] &amp;lt;&amp;gt; "No longer applicable" &amp;amp;&amp;amp;&lt;BR /&gt;RELATED(System[RelationshipType]) &amp;lt;&amp;gt; "Optional"&lt;BR /&gt;),&lt;BR /&gt;Constituent[Constituent Readiness]&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Explanation -&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;FILTER: Limits the Constituent table to entries where Constituent Status is not "No longer applicable" and RelationshipType in the System table is not "Optional".&lt;/P&gt;
&lt;P&gt;AVERAGEX: Calculates the average Constituent Readiness after these filters.&lt;/P&gt;
&lt;P&gt;This measure now accurately reflects Product Readiness by including only valid Constituents.&lt;BR /&gt;&lt;BR /&gt;Please find the attached .pbix file for your reference.&lt;BR /&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jul 2025 09:34:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-07-30T09:34:34Z</dc:date>
    <item>
      <title>AVERAGEX with RELATEDTABLE and 2 filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVERAGEX-with-RELATEDTABLE-and-2-filters/m-p/4780987#M183082</link>
      <description>&lt;P&gt;I would like to compute the&amp;nbsp;&lt;EM&gt;Readiness&amp;nbsp;&lt;/EM&gt;of a &lt;EM&gt;Product&lt;/EM&gt; based on the average of the &lt;EM&gt;Readiness&amp;nbsp;&lt;/EM&gt;of the related &lt;EM&gt;Constituents&lt;/EM&gt;. &lt;EM&gt;Products&lt;/EM&gt; are related to &lt;EM&gt;Systems&lt;/EM&gt; which in turn are related to &lt;EM&gt;Constituents&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Product Readiness = AVERAGEX(RELATEDTABLE(Constituent),[Constituent Readiness])&lt;/LI-CODE&gt;&lt;P&gt;What I need to add to the formula above is 2 filters:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Filtering out all &lt;EM&gt;Constituents&lt;/EM&gt; which &lt;EM&gt;Constituents Status&lt;/EM&gt;&amp;nbsp;attribute is &lt;EM&gt;No longer applicable&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;2) Filtering out all &lt;EM&gt;Constituents &lt;/EM&gt;which are related to &lt;EM&gt;Products&lt;/EM&gt; through a Product/System relationship where&amp;nbsp;&lt;EM&gt;RelationshipType&lt;/EM&gt; attribute is O&lt;EM&gt;ptional&lt;/EM&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Please find the link to the &lt;A href="https://docs.google.com/spreadsheets/d/1dovZuM28xnDL6Uf8rjNO-ODw9ws_GKvL/edit?usp=sharing&amp;amp;ouid=104349560930969457916&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;Excel data&amp;nbsp;&lt;/A&gt;and the &lt;A href="https://drive.google.com/file/d/1GSmKfqWzvslIy8AuDavV_GcjGcEKs2WX/view?usp=sharing" target="_self"&gt;PowerBI&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antoine&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 08:21:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVERAGEX-with-RELATEDTABLE-and-2-filters/m-p/4780987#M183082</guid>
      <dc:creator>aafvincent</dc:creator>
      <dc:date>2025-07-30T08:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: AVERAGEX with RELATEDTABLE and 2 filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVERAGEX-with-RELATEDTABLE-and-2-filters/m-p/4781021#M183083</link>
      <description>&lt;P&gt;RELATEDTABLE is actually syntax sugar for CALCULATETABLE with no additional filter arguments, which means that you can use CALCULATETABLE and add in the filters you require, e.g.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Product Readiness =
AVERAGEX (
    CALCULATETABLE (
        Constituent,
        Constituent[Constituents Status] &amp;lt;&amp;gt; "No longer applicable",
        'Relationship Product-System'[RelationshipType] &amp;lt;&amp;gt; "Optional"
    ),
    Constituent[Constituent Readiness]
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Jul 2025 08:50:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVERAGEX-with-RELATEDTABLE-and-2-filters/m-p/4781021#M183083</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-07-30T08:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: AVERAGEX with RELATEDTABLE and 2 filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVERAGEX-with-RELATEDTABLE-and-2-filters/m-p/4781039#M183084</link>
      <description>&lt;P&gt;Thank you for the clear answer.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 09:05:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVERAGEX-with-RELATEDTABLE-and-2-filters/m-p/4781039#M183084</guid>
      <dc:creator>aafvincent</dc:creator>
      <dc:date>2025-07-30T09:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: AVERAGEX with RELATEDTABLE and 2 filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVERAGEX-with-RELATEDTABLE-and-2-filters/m-p/4781094#M183090</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1324668" data-lia-user-login="aafvincent" class="lia-mention lia-mention-user"&gt;aafvincent&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you for reaching out to Microst Fabric Community Forum.&lt;BR /&gt;&lt;BR /&gt;To accurately determine Product Readiness, calculate the average readiness of the associated Constituents, making sure to exclude any constituents marked as "No longer applicable" and those linked via an "Optional" relationship type.&lt;BR /&gt;Use the following &lt;STRONG&gt;Measure&lt;/STRONG&gt; to achieve this result.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Product Readiness = &lt;/STRONG&gt;&lt;BR /&gt;AVERAGEX(&lt;BR /&gt;FILTER(&lt;BR /&gt;RELATEDTABLE(Constituent),&lt;BR /&gt;Constituent[Constituent Status] &amp;lt;&amp;gt; "No longer applicable" &amp;amp;&amp;amp;&lt;BR /&gt;RELATED(System[RelationshipType]) &amp;lt;&amp;gt; "Optional"&lt;BR /&gt;),&lt;BR /&gt;Constituent[Constituent Readiness]&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Explanation -&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;FILTER: Limits the Constituent table to entries where Constituent Status is not "No longer applicable" and RelationshipType in the System table is not "Optional".&lt;/P&gt;
&lt;P&gt;AVERAGEX: Calculates the average Constituent Readiness after these filters.&lt;/P&gt;
&lt;P&gt;This measure now accurately reflects Product Readiness by including only valid Constituents.&lt;BR /&gt;&lt;BR /&gt;Please find the attached .pbix file for your reference.&lt;BR /&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 09:34:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVERAGEX-with-RELATEDTABLE-and-2-filters/m-p/4781094#M183090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-07-30T09:34:34Z</dc:date>
    </item>
  </channel>
</rss>

