<?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: DAX Week to week difference to calculate an average usage in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4650241#M177997</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927350" data-lia-user-login="mdennis05" class="lia-mention lia-mention-user"&gt;mdennis05&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.&lt;/P&gt;
&lt;P&gt;If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.&lt;BR /&gt;Thank you for your patience and look forward to hearing from you.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Apr 2025 15:56:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-04-13T15:56:01Z</dc:date>
    <item>
      <title>DAX Week to week difference to calculate an average usage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4602162#M176181</link>
      <description>&lt;P&gt;I am developing an inventory dashboard. Each week there will be a weekly count. I would like to calculation the average usage. I know I need to calculate the difference from each week's count for an item then average this. However, I am getting nowhere on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Last Week = CALCULATE(DISTINCTCOUNT('Count'[Product Name]), 'Calendar'[Week Num] = MAX('Calendar'[Week Num])-1)


Weekly Average = AVERAGEX(SUMMARIZE('Count','Count'[Quantity], "toAverage",[Last Week]),[Last Week])&lt;/PRE&gt;&lt;P&gt;This is returning 1 for values. which is correct then blank for others that should have a value.&lt;/P&gt;&lt;P&gt;My end goal is to use this as a minimum ordering level for 2 months. Multiplying the average weekly usage by 8.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 17:29:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4602162#M176181</guid>
      <dc:creator>mdennis05</dc:creator>
      <dc:date>2025-03-09T17:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Week to week difference to calculate an average usage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4602695#M176197</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927350" data-lia-user-login="mdennis05" class="lia-mention lia-mention-user"&gt;mdennis05&lt;/a&gt;&amp;nbsp;try v2 below&lt;/P&gt;
&lt;P&gt;Last Week v2 =&lt;/P&gt;
&lt;P&gt;VAR __week_filt= MAX('Calendar'[Week Num])-1&lt;/P&gt;
&lt;P&gt;CALCULATE(DISTINCTCOUNT('Count'[Product Name]), 'Calendar'[Week Num] = __week_filt)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Weekly Average = AVERAGEX(SUMMARIZE('Count','Count'[Quantity], "toAverage",[Last Week]),[Last Week])&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 07:03:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4602695#M176197</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2025-03-10T07:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Week to week difference to calculate an average usage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4602700#M176199</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927350" data-lia-user-login="mdennis05" class="lia-mention lia-mention-user"&gt;mdennis05&lt;/a&gt;&amp;nbsp;Try using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculate the previous week's count:&lt;/P&gt;
&lt;P&gt;LastWeekCount = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Count'[Quantity]),&lt;BR /&gt;'Calendar'[Week Num] = MAX('Calendar'[Week Num]) - 1&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculate the difference from the previous week:&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;WeekDifference = &lt;BR /&gt;SUM('Count'[Quantity]) - [LastWeekCount]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculate the average of these differences:&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;AverageWeeklyUsage = &lt;BR /&gt;AVERAGEX(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'Count',&lt;BR /&gt;'Calendar'[Week Num],&lt;BR /&gt;"WeeklyDiff", [WeekDifference]&lt;BR /&gt;),&lt;BR /&gt;[WeeklyDiff]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculate the minimum ordering level for 2 months (8 weeks):&lt;/P&gt;
&lt;P&gt;MinOrderingLevel = [AverageWeeklyUsage] * 8&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 07:07:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4602700#M176199</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-03-10T07:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Week to week difference to calculate an average usage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4644882#M177827</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927350" data-lia-user-login="mdennis05" class="lia-mention lia-mention-user"&gt;mdennis05&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft fabric community forum.&lt;/P&gt;
&lt;P&gt;It looks like you want to calculate the average of usage from your inventory dashboard. As&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;both responded to your query, please go through their responses and mark the helpful reply as solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also take a moment to thank &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;and &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Hammad.&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please mark it as a solution, so that other members find it more quickly.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 11:22:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4644882#M177827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-09T11:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Week to week difference to calculate an average usage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4650241#M177997</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927350" data-lia-user-login="mdennis05" class="lia-mention lia-mention-user"&gt;mdennis05&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.&lt;/P&gt;
&lt;P&gt;If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.&lt;BR /&gt;Thank you for your patience and look forward to hearing from you.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Apr 2025 15:56:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4650241#M177997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-13T15:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Week to week difference to calculate an average usage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4659401#M178400</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927350" data-lia-user-login="mdennis05" class="lia-mention lia-mention-user"&gt;mdennis05&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution so that other community members can find it easily.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2025 13:20:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4659401#M178400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-19T13:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Week to week difference to calculate an average usage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4665432#M178678</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927350" data-lia-user-login="mdennis05" class="lia-mention lia-mention-user"&gt;mdennis05&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 17:26:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-to-week-difference-to-calculate-an-average-usage/m-p/4665432#M178678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-23T17:26:50Z</dc:date>
    </item>
  </channel>
</rss>

