<?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 Average / Divide - changes with drill down. I don't want that in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Divide-changes-with-drill-down-I-don-t-want-that/m-p/4331143#M171929</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot get the right answer;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've a simple table with per day - week - yyyy-mm - year a number of orders.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to have an average per week for the years regardless of the drilldown level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 15:06:55 GMT</pubDate>
    <dc:creator>hansreivers</dc:creator>
    <dc:date>2024-12-16T15:06:55Z</dc:date>
    <item>
      <title>Average / Divide - changes with drill down. I don't want that</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Divide-changes-with-drill-down-I-don-t-want-that/m-p/4331143#M171929</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot get the right answer;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've a simple table with per day - week - yyyy-mm - year a number of orders.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to have an average per week for the years regardless of the drilldown level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 15:06:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Divide-changes-with-drill-down-I-don-t-want-that/m-p/4331143#M171929</guid>
      <dc:creator>hansreivers</dc:creator>
      <dc:date>2024-12-16T15:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Average / Divide - changes with drill down. I don't want that</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Divide-changes-with-drill-down-I-don-t-want-that/m-p/4331156#M171932</link>
      <description>&lt;P&gt;Please send a sample of how your data is stored within the tables we need to use.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need any more guidance on how to get answers quickly please see this post:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/m-p/1626726#M32906" target="_blank"&gt;https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/m-p/1626726#M32906&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 15:13:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Divide-changes-with-drill-down-I-don-t-want-that/m-p/4331156#M171932</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-12-16T15:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Average / Divide - changes with drill down. I don't want that</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Divide-changes-with-drill-down-I-don-t-want-that/m-p/4332133#M171991</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="637705" data-lia-user-login="hansreivers" class="lia-mention lia-mention-user"&gt;hansreivers&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try creating a measure with week in year.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ALLEXCEPT&lt;/FONT&gt; ensures the measure filters only the Year column and removes any other drilldown context&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Weeks in Year = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CALCULATE(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;DISTINCTCOUNT('Calendar'[WeekNum]),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ALLEXCEPT('Calendar', 'Calendar'[Year]))&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Divide it by total orders.&lt;/FONT&gt;&lt;BR /&gt;Avg Orders per Week =&lt;BR /&gt;DIVIDE([Total Orders],[Weeks in Year])&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 05:38:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Divide-changes-with-drill-down-I-don-t-want-that/m-p/4332133#M171991</guid>
      <dc:creator>dharmendars007</dc:creator>
      <dc:date>2024-12-17T05:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Average / Divide - changes with drill down. I don't want that</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Divide-changes-with-drill-down-I-don-t-want-that/m-p/4332864#M172017</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have come to the solution myself (with help from the forums)!&lt;/P&gt;&lt;P&gt;Solution for me is;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVG total per week-year&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;A&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Year]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;B&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[total]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Last week of year]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Year]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;A&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;B&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last week of year, looks to the weeknumber of the specific year. When this is 30, the number will be divided by 30 (for the "running" year).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help, and sorry for the "bad" explanation from my side &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 10:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Divide-changes-with-drill-down-I-don-t-want-that/m-p/4332864#M172017</guid>
      <dc:creator>hansreivers</dc:creator>
      <dc:date>2024-12-17T10:45:55Z</dc:date>
    </item>
  </channel>
</rss>

