<?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: Asset Life Cycle Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/1756819#M36690</link>
    <description>&lt;P&gt;Power Query; probably can be done in a fancier way than I did it but works.&lt;/P&gt;&lt;P&gt;see m code below.&lt;/P&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;LI-CODE lang="markup"&gt;let
    Source = Excel.CurrentWorkbook(){[Name="tblAsset"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Asset No", type text}, {"RepCost($M)", type number}, {"Last Replaced", Int64.Type}, {"Expected Life", Int64.Type}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each tblYear),
    #"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"year"}, {"year"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Expanded Custom",{{"year", Int64.Type}}),
    #"Added Custom1" = Table.AddColumn(#"Changed Type1", "Mod", each Number.Mod([year] - [Last Replaced],[Expected Life]), type number),
    #"Added Custom2" = Table.AddColumn(#"Added Custom1", "Quotient", each (([year]-[Last Replaced]) / [Expected Life]), type number),
    #"Added Custom3" = Table.AddColumn(#"Added Custom2", "Replacement", each if [Mod] &amp;lt;&amp;gt; 0 then 0 else 
if [Quotient] &amp;lt; 1 then 0 else [#"RepCost($M)"], type number),
    #"Removed Columns" = Table.RemoveColumns(#"Added Custom3",{"RepCost($M)", "Last Replaced", "Expected Life", "Mod", "Quotient"}),
    #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Removed Columns", {{"year", type text}}, "en-AU"), List.Distinct(Table.TransformColumnTypes(#"Removed Columns", {{"year", type text}}, "en-AU")[year]), "year", "Replacement", List.Sum)
in
    #"Pivoted Column"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 08:26:56 GMT</pubDate>
    <dc:creator>rfigtree</dc:creator>
    <dc:date>2021-03-31T08:26:56Z</dc:date>
    <item>
      <title>Asset Life Cycle Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/1755894#M36676</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following dataset that shows basic information of several assets:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Asset No&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Whole asset replacement cost&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Last Replaced&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Expected Life&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;End of Life&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Subsequent End of Life&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Asset A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;$1M&lt;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t;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The End of Life column is calculated, ie. End of Life = Last Replaced + Expected Life.&lt;/P&gt;&lt;P&gt;I have difficulty thinking of the best solution for the Subsequent End of Life and link it to the Whole Asset Replacement Cost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i need to produce is the following table - in particular the total row - and use it to produce graphs to show forecast spending in the next 10 years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2021&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2022&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2023&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2024&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2025&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2026&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2027&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2028&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2029&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRON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;&lt;/P&gt;&lt;P&gt;Peter&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 00:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/1755894#M36676</guid>
      <dc:creator>PSak</dc:creator>
      <dc:date>2021-03-31T00:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Life Cycle Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/1756819#M36690</link>
      <description>&lt;P&gt;Power Query; probably can be done in a fancier way than I did it but works.&lt;/P&gt;&lt;P&gt;see m code below.&lt;/P&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;LI-CODE lang="markup"&gt;let
    Source = Excel.CurrentWorkbook(){[Name="tblAsset"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Asset No", type text}, {"RepCost($M)", type number}, {"Last Replaced", Int64.Type}, {"Expected Life", Int64.Type}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each tblYear),
    #"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"year"}, {"year"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Expanded Custom",{{"year", Int64.Type}}),
    #"Added Custom1" = Table.AddColumn(#"Changed Type1", "Mod", each Number.Mod([year] - [Last Replaced],[Expected Life]), type number),
    #"Added Custom2" = Table.AddColumn(#"Added Custom1", "Quotient", each (([year]-[Last Replaced]) / [Expected Life]), type number),
    #"Added Custom3" = Table.AddColumn(#"Added Custom2", "Replacement", each if [Mod] &amp;lt;&amp;gt; 0 then 0 else 
if [Quotient] &amp;lt; 1 then 0 else [#"RepCost($M)"], type number),
    #"Removed Columns" = Table.RemoveColumns(#"Added Custom3",{"RepCost($M)", "Last Replaced", "Expected Life", "Mod", "Quotient"}),
    #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Removed Columns", {{"year", type text}}, "en-AU"), List.Distinct(Table.TransformColumnTypes(#"Removed Columns", {{"year", type text}}, "en-AU")[year]), "year", "Replacement", List.Sum)
in
    #"Pivoted Column"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 08:26:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/1756819#M36690</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-03-31T08:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Life Cycle Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/1757160#M36701</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251383" data-lia-user-login="PSak" class="lia-mention lia-mention-user"&gt;PSak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think it might be easier to have all&amp;nbsp;Expected Life End years in one column.&lt;/P&gt;&lt;P&gt;I assumed that you need a chart with a forecast for the years 2021-2030.&amp;nbsp;So my first thought was about the loop (while year &amp;lt;=2030, count next replacement year). I did it with Power Query as well, but using a bit different approach:&lt;/P&gt;&lt;P&gt;1. Create a function that will provide a list of replacement years for each&amp;nbsp;Last Replaced year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(endyear as number, life as number, maxYear as number, optional results as list) =&amp;gt;
let
firstValue = endyear+life,
output = List.Generate(
    ()=&amp;gt;firstValue,
    each _&amp;lt;= maxYear, each _+life,
    each _
)
in
output&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Optional: You can duplicate your query to have only 3 columns as a result (assuming your initial query has more columns, etc.).&lt;/P&gt;&lt;P&gt;3. Add column - Invoke the function from the previous step:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;New column name - provide the name you prefer&lt;/LI&gt;&lt;LI&gt;Function query - name of the function from step 1&lt;/LI&gt;&lt;LI&gt;endyear -&amp;nbsp;Last Replaced column&lt;/LI&gt;&lt;LI&gt;life - Expected Life column&lt;/LI&gt;&lt;LI&gt;maxYear - put the max year for the chart. In provided example - 2030&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As a result you will get a list of years for each row in the new column.&lt;/P&gt;&lt;P&gt;4. &lt;SPAN&gt;Use the expand icon in the upper-right corner of the column label and select&amp;nbsp;&lt;/SPAN&gt;Expand to New Rows.&lt;/P&gt;&lt;P&gt;5. Optional: delete all unnecessary columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 10:23:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/1757160#M36701</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-03-31T10:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Life Cycle Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/1758525#M36758</link>
      <description>&lt;P&gt;Thanks... i applied this and it worked!!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 00:03:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/1758525#M36758</guid>
      <dc:creator>PSak</dc:creator>
      <dc:date>2021-04-01T00:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Life Cycle Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/2784692#M87231</link>
      <description>&lt;P&gt;Hi, thanks for your solution. Your solution looks great and does exactly what I want as well. Unfortunately I can't get it working properly. I’ve rebuild the example of your solution. Hopefully you can help me with a solution? Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scource data is all in numbers:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The calculation gives an error when I use:&lt;/P&gt;&lt;P&gt;each _&amp;lt;= [endyear], each _+[life],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I place fixes values then it works fine:&lt;/P&gt;&lt;P&gt;each _&amp;lt;= 2050, each _+5,&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
output = List.Generate(
    ()=&amp;gt;[firstValue],
    each _&amp;lt;= [endyear], each _+[life],
    each _
)
in
output&lt;/LI-CODE&gt;&lt;P&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;The result is as follows:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Bron = Excel.Workbook(File.Contents("C:\Assetplanning.xlsx"), null, true),
    Blad1_Sheet = Bron{[Item="Blad1",Kind="Sheet"]}[Data],
    #"Headers met verhoogd niveau" = Table.PromoteHeaders(Blad1_Sheet, [PromoteAllScalars=true]),
    #"Aangepaste kolom toegevoegd1" = Table.AddColumn(#"Headers met verhoogd niveau", "firstValue", each [endyear]+[life]),
    #"Type gewijzigd" = Table.TransformColumnTypes(#"Aangepaste kolom toegevoegd1",{{"Assetcost", type number}, {"endyear", Int64.Type}, {"life", Int64.Type}, {"firstValue", Int64.Type}}),
    #"Aangepaste kolom toegevoegd" = Table.AddColumn(#"Type gewijzigd", "LTAPlist", each let
output = List.Generate(
    ()=&amp;gt;[firstValue],
    each _&amp;lt;= [endyear], each _+[life],
    each _
)
in
output),
    #"LTAPlist uitgevouwen" = Table.ExpandListColumn(#"Aangepaste kolom toegevoegd", "LTAPlist"),
    #"Type gewijzigd1" = Table.TransformColumnTypes(#"LTAPlist uitgevouwen",{{"LTAPlist", Int64.Type}})
in
    #"Type gewijzigd1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I expand to new rows I get the following error.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the error message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Expression.Error: We cannot apply field access to the type Number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I place a fixe value for endyear the I get the following message.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Expression.Error: We cannot apply field access to the type Number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 19:38:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/2784692#M87231</guid>
      <dc:creator>Deem</dc:creator>
      <dc:date>2022-10-02T19:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Life Cycle Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/2790477#M87593</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the asset life cycle calculation still work fine what was suggested in the solution? Unfortunately I can't get it work properly. Hope to hear from you. Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Damon&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 19:09:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asset-Life-Cycle-Calculation/m-p/2790477#M87593</guid>
      <dc:creator>Deem</dc:creator>
      <dc:date>2022-09-23T19:09:08Z</dc:date>
    </item>
  </channel>
</rss>

