<?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 Calculate benchmark average with filter by group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-benchmark-average-with-filter-by-group/m-p/3032726#M103739</link>
    <description>&lt;P&gt;I am trying to add a field called "Benchmark" to the visual below (left).&lt;/P&gt;&lt;P&gt;The "Benchmark" field needs to be separated by Sex as can be seen in the right table (female = 11, male = 11.88).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final output should be the first left table with "Benchmark" added; when female = 11 and when male 11.88.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;When I add the field I have created it expands out the table and creates a series of empty records (i.e. Count of Year with blank values), but gets the benchmark correct.&lt;/P&gt;&lt;P&gt;&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;This is the calculation I am using the calculate the benchmark. It should take the average of performance "Points" where the "Rank" is = 3 and account for Sex.&lt;/P&gt;&lt;P&gt;&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;This is the model schema.&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 02:00:27 GMT</pubDate>
    <dc:creator>JFG1234</dc:creator>
    <dc:date>2023-01-20T02:00:27Z</dc:date>
    <item>
      <title>Calculate benchmark average with filter by group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-benchmark-average-with-filter-by-group/m-p/3032726#M103739</link>
      <description>&lt;P&gt;I am trying to add a field called "Benchmark" to the visual below (left).&lt;/P&gt;&lt;P&gt;The "Benchmark" field needs to be separated by Sex as can be seen in the right table (female = 11, male = 11.88).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final output should be the first left table with "Benchmark" added; when female = 11 and when male 11.88.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;When I add the field I have created it expands out the table and creates a series of empty records (i.e. Count of Year with blank values), but gets the benchmark correct.&lt;/P&gt;&lt;P&gt;&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;This is the calculation I am using the calculate the benchmark. It should take the average of performance "Points" where the "Rank" is = 3 and account for Sex.&lt;/P&gt;&lt;P&gt;&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;This is the model schema.&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 02:00:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-benchmark-average-with-filter-by-group/m-p/3032726#M103739</guid>
      <dc:creator>JFG1234</dc:creator>
      <dc:date>2023-01-20T02:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate benchmark average with filter by group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-benchmark-average-with-filter-by-group/m-p/3032802#M103747</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501851" data-lia-user-login="JFG1234" class="lia-mention lia-mention-user"&gt;JFG1234&lt;/a&gt; , Try Measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;calculate(Average(Table[Points]), filter(allselected(Table) , Table[Rank] = 3 &amp;amp;&amp;amp; Table[Sex]=max(Table[Sex])))&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 02:29:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-benchmark-average-with-filter-by-group/m-p/3032802#M103747</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-01-20T02:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate benchmark average with filter by group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-benchmark-average-with-filter-by-group/m-p/3032907#M103762</link>
      <description>&lt;P&gt;Sex isn't in the same table as Points, it is connected by a many:1 relationship through the Athlete_ID as the last picture shows. Is it possible to do through the relationship?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 03:14:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-benchmark-average-with-filter-by-group/m-p/3032907#M103762</guid>
      <dc:creator>JFG1234</dc:creator>
      <dc:date>2023-01-20T03:14:55Z</dc:date>
    </item>
  </channel>
</rss>

