<?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: How to sum the monthly average sales when the sales periods are different? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-the-monthly-average-sales-when-the-sales-periods-are/m-p/3219246#M117617</link>
    <description>&lt;P&gt;Thank you so much. I thought it would be the only solution.&lt;/P&gt;&lt;P&gt;Your logic is working.&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 06:22:19 GMT</pubDate>
    <dc:creator>Young_G_Han</dc:creator>
    <dc:date>2023-05-04T06:22:19Z</dc:date>
    <item>
      <title>How to sum the monthly average sales when the sales periods are different?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-the-monthly-average-sales-when-the-sales-periods-are/m-p/3219125#M117611</link>
      <description>&lt;P&gt;&amp;nbsp;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a very difficult issue...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to sum monthly average sales of many different items sold in different periods.&lt;/P&gt;&lt;P&gt;Periods are from each sales start date to today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product&amp;nbsp; Sales Start Date&amp;nbsp; Transaction Date Q'ty&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2022-01-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2021-02-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-03-12&amp;nbsp; &amp;nbsp; &amp;nbsp; 2021-04-11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2022-01-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2023-02-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-03-12&amp;nbsp; &amp;nbsp; &amp;nbsp; 2022-04-11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the case of product A, the period from 2022-01-01 to 2023-05-04, so the average of the monthly sales I want is 200 / 17months = 11.76.&lt;/P&gt;&lt;P&gt;Product B, the&amp;nbsp;period from 2022-03-01 to 2023-05-04,&amp;nbsp;so the average of the monthly sales I want is 250 / 15months = 16.67.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the sum of each product's monthly average sales like 11.76 + 16.67.&lt;/P&gt;&lt;P&gt;Of course, I want to make a table and graphs showing the average monthly sales by product.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already add a column in the table with the DATEDIFF( start date, today(), month) to get the period and divide the sales quantity by the month.&lt;/P&gt;&lt;P&gt;I could see the quantity in the table, but I could not sum the values. The visualization shows N/a as the answer.&lt;/P&gt;&lt;P&gt;How can I solve the problem...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 04:12:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-the-monthly-average-sales-when-the-sales-periods-are/m-p/3219125#M117611</guid>
      <dc:creator>Young_G_Han</dc:creator>
      <dc:date>2023-05-04T04:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum the monthly average sales when the sales periods are different?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-the-monthly-average-sales-when-the-sales-periods-are/m-p/3219176#M117614</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="173709" data-lia-user-login="Young_G_Han" class="lia-mention lia-mention-user"&gt;Young_G_Han&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my understanding, you need the sum of the product value. I have added the screenshot please loot it&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added a new column in the Data View&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Differen = &lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Qty]&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Sdate]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this only you need&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the answer is Happy Give a Like &amp;amp; are satisfied with the Answer Make the question Resolved&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks/Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/iamnkannan/" target="_self"&gt;Kannan. N&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 05:25:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-the-monthly-average-sales-when-the-sales-periods-are/m-p/3219176#M117614</guid>
      <dc:creator>Kannan_n</dc:creator>
      <dc:date>2023-05-04T05:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum the monthly average sales when the sales periods are different?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-the-monthly-average-sales-when-the-sales-periods-are/m-p/3219246#M117617</link>
      <description>&lt;P&gt;Thank you so much. I thought it would be the only solution.&lt;/P&gt;&lt;P&gt;Your logic is working.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 06:22:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-the-monthly-average-sales-when-the-sales-periods-are/m-p/3219246#M117617</guid>
      <dc:creator>Young_G_Han</dc:creator>
      <dc:date>2023-05-04T06:22:19Z</dc:date>
    </item>
  </channel>
</rss>

