<?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: budget calculation for categories along 4 years in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2251614#M54226</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240828" data-lia-user-login="pedroccamaraDBI" class="lia-mention lia-mention-user"&gt;pedroccamaraDBI&lt;/a&gt; , I think what you need&amp;nbsp; like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ADDCOLUMNS( &lt;BR /&gt;generate(&lt;BR /&gt;Summarize(Table, Table[Year], Table[Month], "_sales", calculate(Sum(Table[Net Sales]), FIlter(Table, Table[Year] =2020))),&lt;BR /&gt;union(row("_year", 2019),row("_year", 2020),row("_year", 2018))&lt;BR /&gt;), "Sales", Switch(true(), _year =2019, _sales *1.2, _year =2020, _sales *1.5, _sales))&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 09:20:21 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-12-22T09:20:21Z</dc:date>
    <item>
      <title>budget calculation for categories along 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2251549#M54221</link>
      <description>&lt;P&gt;Hello all&lt;BR /&gt;I would like to do a budget table that has only 2 columns : budgets and month &amp;amp; Year.&lt;BR /&gt;But for year 2018, i want to add 20%, for year 2019 50%, year 2020 70% and so on.&lt;BR /&gt;I came up with this but i don' t know how to go further.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Budget = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'Tab Dates'[Month &amp;amp; Year]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Budgets"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;[Net Sales]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Tab Dates'[Year]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;2018&lt;/SPAN&gt;&lt;SPAN&gt;) *&lt;/SPAN&gt;&lt;SPAN&gt;1.2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;BR /&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 08:44:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2251549#M54221</guid>
      <dc:creator>pedroccamaraDBI</dc:creator>
      <dc:date>2021-12-22T08:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: budget calculation for categories along 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2251614#M54226</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240828" data-lia-user-login="pedroccamaraDBI" class="lia-mention lia-mention-user"&gt;pedroccamaraDBI&lt;/a&gt; , I think what you need&amp;nbsp; like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ADDCOLUMNS( &lt;BR /&gt;generate(&lt;BR /&gt;Summarize(Table, Table[Year], Table[Month], "_sales", calculate(Sum(Table[Net Sales]), FIlter(Table, Table[Year] =2020))),&lt;BR /&gt;union(row("_year", 2019),row("_year", 2020),row("_year", 2018))&lt;BR /&gt;), "Sales", Switch(true(), _year =2019, _sales *1.2, _year =2020, _sales *1.5, _sales))&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 09:20:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2251614#M54226</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-12-22T09:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: budget calculation for categories along 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2251929#M54242</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you very much for you reply. I'm not sure if this is the expected result. Could i have it all budgets in the same column?&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 12:16:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2251929#M54242</guid>
      <dc:creator>pedroccamaraDBI</dc:creator>
      <dc:date>2021-12-22T12:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: budget calculation for categories along 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2251967#M54245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240828" data-lia-user-login="pedroccamaraDBI" class="lia-mention lia-mention-user"&gt;pedroccamaraDBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Budget =
VAR _A =
    SWITCH(
        TRUE(),
        'Tab Dates'[Year] = 2018, 1.2,
        'Tab Dates'[Year] = 2019, 1.5,
        'Tab Dates'[Year] = 2020, 1.7
    )
RETURN
    ADDCOLUMNS( VALUES( 'Tab Dates'[Month &amp;amp; Year] ), "Budgets", [Net Sales] * _A )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 12:36:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2251967#M54245</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-22T12:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: budget calculation for categories along 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2251968#M54246</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240828" data-lia-user-login="pedroccamaraDBI" class="lia-mention lia-mention-user"&gt;pedroccamaraDBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Budget =
VAR _A =
    SWITCH(
        TRUE(),
        'Tab Dates'[Year] = 2018, 1.2,
        'Tab Dates'[Year] = 2019, 1.5,
        'Tab Dates'[Year] = 2020, 1.7
    )
RETURN
    ADDCOLUMNS( VALUES( 'Tab Dates'[Month &amp;amp; Year] ), "Budgets", [Net Sales] * _A )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 12:36:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2251968#M54246</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-22T12:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: budget calculation for categories along 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2252025#M54249</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you very much for helping me.&lt;BR /&gt;I can't enter tab dates [Year] = 2018, 1.2 and so on&lt;BR /&gt;I've tried using calculate here but it won't let me. Can you help me?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 13:07:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2252025#M54249</guid>
      <dc:creator>pedroccamaraDBI</dc:creator>
      <dc:date>2021-12-22T13:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: budget calculation for categories along 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2252043#M54250</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240828" data-lia-user-login="pedroccamaraDBI" class="lia-mention lia-mention-user"&gt;pedroccamaraDBI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you share a samle of your PBIX file? after removing sensetive data&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 13:22:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2252043#M54250</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-22T13:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: budget calculation for categories along 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2252772#M54324</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240828" data-lia-user-login="pedroccamaraDBI" class="lia-mention lia-mention-user"&gt;pedroccamaraDBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share a sample of your data in text format and with all value and columns?&lt;BR /&gt;and expected result as well.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 23:22:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2252772#M54324</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-12-22T23:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: budget calculation for categories along 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2253488#M54352</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I'm attaching and excel file with my data.&lt;BR /&gt;Let me remind what i need:&lt;BR /&gt;I want to know the budget for any column i choose in the fact table, product, family, sub family or zone or any date, as long as if the sales of the year is:&lt;BR /&gt;2018 then multiply sales of 2018 by 1&lt;BR /&gt;2019 then multiply sales of 2018 by 1.2&lt;BR /&gt;2020 then multiply sales of 2019 by 1.3&lt;BR /&gt;2021 then multiply sales of 2020 by 1.4&lt;BR /&gt;2022 then multiply sales of 2021 by 1.5&lt;BR /&gt;I hope it's clear.&lt;BR /&gt;Thanks a lot&lt;BR /&gt;&lt;A title="My sample Restaurant Data" href="https://drive.google.com/file/d/18mxzktGBs_lNIi7fCu8qF4uL9M2l7YMb/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/18mxzktGBs_lNIi7fCu8qF4uL9M2l7YMb/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 10:08:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2253488#M54352</guid>
      <dc:creator>pedroccamaraDBI</dc:creator>
      <dc:date>2021-12-23T10:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: budget calculation for categories along 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2258048#M54548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240828" data-lia-user-login="pedroccamaraDBI" class="lia-mention lia-mention-user"&gt;pedroccamaraDBI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you only have the value of 2018 in the table, you will need to create multiple columns for each year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 08:59:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/budget-calculation-for-categories-along-4-years/m-p/2258048#M54548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-28T08:59:27Z</dc:date>
    </item>
  </channel>
</rss>

