<?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: Converting annual budget to monthly budget based on previous year's sales data. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-annual-budget-to-monthly-budget-based-on-previous/m-p/4256338#M168624</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="195725" data-lia-user-login="sanalytics" class="lia-mention lia-mention-user"&gt;sanalytics&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please see here a dropbox link with some dummy data:&lt;BR /&gt;&lt;A href="https://www.dropbox.com/scl/fi/olb4a2l4pcttcvyzb76ec/Dummy-Data.pbix?rlkey=2c5vfm9s096y43kkhf877uk58&amp;amp;st=fdpgcnc6&amp;amp;dl=0" target="_blank"&gt;https://www.dropbox.com/scl/fi/olb4a2l4pcttcvyzb76ec/Dummy-Data.pbix?rlkey=2c5vfm9s096y43kkhf877uk58&amp;amp;st=fdpgcnc6&amp;amp;dl=0&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The previous year's sales data will come from the sales table which includes individual transactions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need anything else!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2024 13:00:40 GMT</pubDate>
    <dc:creator>ED864</dc:creator>
    <dc:date>2024-10-24T13:00:40Z</dc:date>
    <item>
      <title>Converting annual budget to monthly budget based on previous year's sales data.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-annual-budget-to-monthly-budget-based-on-previous/m-p/4256167#M168611</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of sales budgets (targets) which are written by brand per year. I would like to break these down into monthly budgets based on the previous year's sales data (not jsut divided by 12) to account for seasonal trends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems like it should be straightforward but I've been going round in cicrcles for ages and haven't gotten anywhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some dummy data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The columns in black already exist in my model. The columns in red are the steps I would like to take.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1: Calculate the total sales for the previous year based on brand.&lt;/P&gt;&lt;P&gt;Step 2: Calculate the total sales for the previous year based on brand and split by month.&lt;/P&gt;&lt;P&gt;Step 3: Divide the Monthly Sales PY by the Total Sales PY to get the percentage split of sales for each month per brand.&lt;/P&gt;&lt;P&gt;Step 4: Multiply the Total Sales Budget by the % Total Sales PY to get the Monthly Budget for the current year by brand.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if this can all be done in one Measure or maybe just adding calculated columns to my table would be better.&lt;/P&gt;&lt;P&gt;Here is my model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help and advice.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 10:23:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-annual-budget-to-monthly-budget-based-on-previous/m-p/4256167#M168611</guid>
      <dc:creator>ED864</dc:creator>
      <dc:date>2024-10-24T10:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Converting annual budget to monthly budget based on previous year's sales data.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-annual-budget-to-monthly-budget-based-on-previous/m-p/4256283#M168619</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="830211" data-lia-user-login="ED864" class="lia-mention lia-mention-user"&gt;ED864&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you calcuate previous year's total sales.&lt;BR /&gt;I dont see any 2023 data in your shared screenshot.&lt;BR /&gt;It will be better if you share a dummay data with your pbix file so that we can try from our end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sanalytics&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 12:14:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-annual-budget-to-monthly-budget-based-on-previous/m-p/4256283#M168619</guid>
      <dc:creator>sanalytics</dc:creator>
      <dc:date>2024-10-24T12:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting annual budget to monthly budget based on previous year's sales data.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-annual-budget-to-monthly-budget-based-on-previous/m-p/4256338#M168624</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="195725" data-lia-user-login="sanalytics" class="lia-mention lia-mention-user"&gt;sanalytics&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please see here a dropbox link with some dummy data:&lt;BR /&gt;&lt;A href="https://www.dropbox.com/scl/fi/olb4a2l4pcttcvyzb76ec/Dummy-Data.pbix?rlkey=2c5vfm9s096y43kkhf877uk58&amp;amp;st=fdpgcnc6&amp;amp;dl=0" target="_blank"&gt;https://www.dropbox.com/scl/fi/olb4a2l4pcttcvyzb76ec/Dummy-Data.pbix?rlkey=2c5vfm9s096y43kkhf877uk58&amp;amp;st=fdpgcnc6&amp;amp;dl=0&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The previous year's sales data will come from the sales table which includes individual transactions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need anything else!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 13:00:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-annual-budget-to-monthly-budget-based-on-previous/m-p/4256338#M168624</guid>
      <dc:creator>ED864</dc:creator>
      <dc:date>2024-10-24T13:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Converting annual budget to monthly budget based on previous year's sales data.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-annual-budget-to-monthly-budget-based-on-previous/m-p/4257585#M168688</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="830211" data-lia-user-login="ED864" class="lia-mention lia-mention-user"&gt;ED864&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached the demo file.&lt;/P&gt;
&lt;P&gt;You can create several columns or you can also write them all in one single column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Monthly Bugdet = 
VAR _brand = [Brand]
VAR _month = [Month]
VAR _total_sales_PY = CALCULATE(SUM(Sales[Line Revenue]), FILTER(ALL(Sales), Sales[Brand] = _brand))
VAR _monthly_sales_PY = CALCULATE(SUM(Sales[Line Revenue]), FILTER(ALL(Sales), Sales[Brand] = _brand &amp;amp;&amp;amp; Sales[Month] = _month))
RETURN
[Annual Sales Budget]* (DIVIDE( _monthly_sales_PY, _total_sales_PY))
// bugdet * monthly_sale%_PY&lt;/LI-CODE&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;Feel free to let me know if any questions. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Joyce&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 07:17:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-annual-budget-to-monthly-budget-based-on-previous/m-p/4257585#M168688</guid>
      <dc:creator>isjoycewang</dc:creator>
      <dc:date>2024-10-25T07:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Converting annual budget to monthly budget based on previous year's sales data.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-annual-budget-to-monthly-budget-based-on-previous/m-p/4257898#M168702</link>
      <description>&lt;P&gt;That works great! Nice and simple too! Thanks very much.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 10:18:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-annual-budget-to-monthly-budget-based-on-previous/m-p/4257898#M168702</guid>
      <dc:creator>ED864</dc:creator>
      <dc:date>2024-10-25T10:18:09Z</dc:date>
    </item>
  </channel>
</rss>

