<?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: Return Max Value on One Side of Relationship in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Max-Value-on-One-Side-of-Relationship/m-p/1461943#M27591</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="90550" data-lia-user-login="Jerid421" class="lia-mention lia-mention-user"&gt;Jerid421&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what you are trying to do with the RELATED( ). Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;0YrAvgDaystoPlace = CALCULATE( MAX( factJobOpenings[AvgStatePlacementDays] ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2020 21:45:40 GMT</pubDate>
    <dc:creator>AlB</dc:creator>
    <dc:date>2020-10-28T21:45:40Z</dc:date>
    <item>
      <title>Return Max Value on One Side of Relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Max-Value-on-One-Side-of-Relationship/m-p/1461868#M27590</link>
      <description>&lt;P&gt;I am trying to populate a calculated column on the one side (dimState) of a relationship with the MAX() of all the values associated to those records on the many side (factJobOpenings) of the relationship.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this so far but it is returning the MAX of &lt;STRONG&gt;ALL&lt;/STRONG&gt; the values in the fact table column ([AvgStatePlacementDays], not for each of the States:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;20YrAvgDaystoPlace = CALCULATE(MAX(factJobOpenings[AvgStatePlacementDays]), FILTER(factJobOpenings,factJobOpenings[StateID] = RELATED(dimState[StateID])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Oct 2020 01:10:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Max-Value-on-One-Side-of-Relationship/m-p/1461868#M27590</guid>
      <dc:creator>Jerid421</dc:creator>
      <dc:date>2020-10-29T01:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Return Max Value on One Side of Relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Max-Value-on-One-Side-of-Relationship/m-p/1461943#M27591</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="90550" data-lia-user-login="Jerid421" class="lia-mention lia-mention-user"&gt;Jerid421&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what you are trying to do with the RELATED( ). Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;0YrAvgDaystoPlace = CALCULATE( MAX( factJobOpenings[AvgStatePlacementDays] ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 21:45:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Max-Value-on-One-Side-of-Relationship/m-p/1461943#M27591</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-10-28T21:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Return Max Value on One Side of Relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Max-Value-on-One-Side-of-Relationship/m-p/1462142#M27609</link>
      <description>&lt;P&gt;I changed the title of the post as it incorrectly said "Many" instead of "One".&amp;nbsp; That might explain what I'm trying yo do with the Related() function.&amp;nbsp; Sorry!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 01:09:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Max-Value-on-One-Side-of-Relationship/m-p/1462142#M27609</guid>
      <dc:creator>Jerid421</dc:creator>
      <dc:date>2020-10-29T01:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Return Max Value on One Side of Relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Max-Value-on-One-Side-of-Relationship/m-p/1462472#M27623</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="90550" data-lia-user-login="Jerid421" class="lia-mention lia-mention-user"&gt;Jerid421&lt;/a&gt;&amp;nbsp;if the calculated column is in DimState table,try this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MAXX(RELATEDTABLE(factJobOpenings),factJobOpenings[AvgStatePlacementDays])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 04:33:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Max-Value-on-One-Side-of-Relationship/m-p/1462472#M27623</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-10-29T04:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Return Max Value on One Side of Relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Max-Value-on-One-Side-of-Relationship/m-p/1466518#M27747</link>
      <description>&lt;P&gt;This worked perfectly.&amp;nbsp; I tried MAXX() (becuase I thought I needed and iterator) but I must not have used it correctly.&amp;nbsp;&amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 19:04:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Max-Value-on-One-Side-of-Relationship/m-p/1466518#M27747</guid>
      <dc:creator>Jerid421</dc:creator>
      <dc:date>2020-10-30T19:04:41Z</dc:date>
    </item>
  </channel>
</rss>

