<?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: Cost break down percentages per year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2859050#M92005</link>
    <description>&lt;P&gt;File attached.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 11:46:09 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-10-24T11:46:09Z</dc:date>
    <item>
      <title>Cost break down percentages per year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2853657#M91610</link>
      <description>&lt;P&gt;Hello &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a cost breakdown where the price reduces yearly for 4 years, each year 50% of the previous year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The benefit1 of 100$ starts in 2018&lt;/P&gt;&lt;P&gt;- Cost in 2018 is 50$&lt;/P&gt;&lt;P&gt;- Cost in 2019 is 25$&lt;/P&gt;&lt;P&gt;- Cost in 2020 is 12,5$&lt;/P&gt;&lt;P&gt;- Cost in 2021 is 6,25$&lt;/P&gt;&lt;P&gt;- Cost in 2022 is 0 (because the benefit only last 4 years)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I need to know the sum of all benefits in each year&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data I have is the total benefit (100$ in the example) and the date on which the benefit will start counting.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 12:40:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2853657#M91610</guid>
      <dc:creator>bibiubiali</dc:creator>
      <dc:date>2022-10-20T12:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cost break down percentages per year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2854782#M91711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="459548" data-lia-user-login="bibiubiali" class="lia-mention lia-mention-user"&gt;bibiubiali&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you explain in details and tell me what's your expected output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your efforts &amp;amp; time in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Yadong Fang&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 03:11:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2854782#M91711</guid>
      <dc:creator>v-yadongf-msft</dc:creator>
      <dc:date>2022-10-21T03:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cost break down percentages per year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2855231#M91740</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the SUM per year of all benefits to be automatized according to new data entry (considering also the future gains in the 4 years period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this data entry:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need the 50% breakdown yearly to be calculated (for 4 years since the beginning of the benefit), like in this example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So I can have the SUM of total benefits in $ that I will have yearly&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;(Remembering the only data in the file is the befit and the data it started or should start)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to calculate it using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;2019 = &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;var year2019 = IF('Project savings'[Benefits Start date].[Year] = 2019, 'Project savings'[Saving]/2)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;var year2018 = IF('Project savings'[Benefits Start date].[Year] = 2018, 'Project savings'[Saving]/2)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;var total2019 = year2018+year2019&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;return&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;total2019&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But this way I need to create one column per year every time&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It is a bit complex to explain, hope I was more clear now &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Thanks =D&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 08:11:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2855231#M91740</guid>
      <dc:creator>bibiubiali</dc:creator>
      <dc:date>2022-10-21T08:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cost break down percentages per year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2855515#M91765</link>
      <description>&lt;P&gt;hello not really sure but mind if you try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2019 =
var curryear =  'Project savings'[Saving]/2
var preyear = calculate( 'Project savings'[Saving]/2),previousyear(date))
return
curryear + preyear&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if no then i think you should use the new offset function&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 10:32:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2855515#M91765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-21T10:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cost break down percentages per year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2858566#M91961</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way works the same as the solution I found, it won't automatically calculate all the new entries for upcoming years unless I create a new column, which is not ideal for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will check about offset, thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 08:30:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2858566#M91961</guid>
      <dc:creator>bibiubiali</dc:creator>
      <dc:date>2022-10-24T08:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cost break down percentages per year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2859050#M92005</link>
      <description>&lt;P&gt;File attached.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 11:46:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2859050#M92005</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-10-24T11:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cost break down percentages per year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2863477#M92248</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="459548" data-lia-user-login="bibiubiali" class="lia-mention lia-mention-user"&gt;bibiubiali&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has your problem been solved? If solved, please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Yadong Fang&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 05:31:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-break-down-percentages-per-year/m-p/2863477#M92248</guid>
      <dc:creator>v-yadongf-msft</dc:creator>
      <dc:date>2022-10-26T05:31:54Z</dc:date>
    </item>
  </channel>
</rss>

