<?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 Performance Improve for Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Performance-Improve-for-Measure/m-p/3055177#M156658</link>
    <description>&lt;P&gt;Hello together,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to improve the performance for my measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in my data we have 6 different manager. All the manager have different costumers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every costumer has goals to achieve. When they achieve the goals, we pay them a bonus.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goals are for example retails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So all the manager have the sum of the costumers goals. For example&lt;/P&gt;&lt;P&gt;costumer 1: achieved 3 from 6 retails --&amp;gt; 50%&lt;/P&gt;&lt;P&gt;costumer 2: 4 from 10 --&amp;gt; 25%&lt;/P&gt;&lt;P&gt;costumer 3: 2 from 2 --&amp;gt; 100%&lt;/P&gt;&lt;P&gt;Then the manager has then achieved: 9 from 18 --&amp;gt; 50%&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when we take the average from the three costumers we have: 41,67%&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want the average, but Power BI gives me the 50%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when I calculated the bonus I then made a sum of every bonus from the costumer and got this:&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;so for every bonus I filtered after the costumer, which gives me a long measure and takes a lot of time to process.&lt;/P&gt;&lt;P&gt;When I do this I get the right bonus.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make it slimer:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here I filtered after the manager, but It does not work because I get the 50% (from above)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How Can I change the measure to improve performance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 12:52:49 GMT</pubDate>
    <dc:creator>Companyuser101</dc:creator>
    <dc:date>2023-02-01T12:52:49Z</dc:date>
    <item>
      <title>Performance Improve for Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Performance-Improve-for-Measure/m-p/3055177#M156658</link>
      <description>&lt;P&gt;Hello together,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to improve the performance for my measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in my data we have 6 different manager. All the manager have different costumers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every costumer has goals to achieve. When they achieve the goals, we pay them a bonus.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goals are for example retails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So all the manager have the sum of the costumers goals. For example&lt;/P&gt;&lt;P&gt;costumer 1: achieved 3 from 6 retails --&amp;gt; 50%&lt;/P&gt;&lt;P&gt;costumer 2: 4 from 10 --&amp;gt; 25%&lt;/P&gt;&lt;P&gt;costumer 3: 2 from 2 --&amp;gt; 100%&lt;/P&gt;&lt;P&gt;Then the manager has then achieved: 9 from 18 --&amp;gt; 50%&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when we take the average from the three costumers we have: 41,67%&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want the average, but Power BI gives me the 50%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when I calculated the bonus I then made a sum of every bonus from the costumer and got this:&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;so for every bonus I filtered after the costumer, which gives me a long measure and takes a lot of time to process.&lt;/P&gt;&lt;P&gt;When I do this I get the right bonus.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make it slimer:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here I filtered after the manager, but It does not work because I get the 50% (from above)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How Can I change the measure to improve performance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 12:52:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Performance-Improve-for-Measure/m-p/3055177#M156658</guid>
      <dc:creator>Companyuser101</dc:creator>
      <dc:date>2023-02-01T12:52:49Z</dc:date>
    </item>
  </channel>
</rss>

