<?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 carry over previous year value into year where value is not updated in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3017027#M102480</link>
    <description>&lt;P&gt;Hi Julian,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stuck with a customer, will be until tomorrow when I'll come back to you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;BR /&gt;Christian&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 14:41:37 GMT</pubDate>
    <dc:creator>scee07</dc:creator>
    <dc:date>2023-01-12T14:41:37Z</dc:date>
    <item>
      <title>How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2973360#M99469</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a report where I have a bar graph visual. The X-axis is Year and Y-axis is value. It is driven from TableA in my model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TableA&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;aaa&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;15/04/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;aaa&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;24/07/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;aaa&lt;/TD&gt;&lt;TD&gt;46&lt;/TD&gt;&lt;TD&gt;20/02/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;aaa&lt;/TD&gt;&lt;TD&gt;84&lt;/TD&gt;&lt;TD&gt;02/09/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;aaa&lt;/TD&gt;&lt;TD&gt;235&lt;/TD&gt;&lt;TD&gt;01/04/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;aaa&lt;/TD&gt;&lt;TD&gt;69&lt;/TD&gt;&lt;TD&gt;01/02/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;aaa&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;01/02/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;aaa&lt;/TD&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;TD&gt;21/10/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bbb&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;TD&gt;30/12/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bbb&lt;/TD&gt;&lt;TD&gt;95&lt;/TD&gt;&lt;TD&gt;28/11/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bbb&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;20/07/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bbb&lt;/TD&gt;&lt;TD&gt;66&lt;/TD&gt;&lt;TD&gt;16/07/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bbb&lt;/TD&gt;&lt;TD&gt;84&lt;/TD&gt;&lt;TD&gt;12/05/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bbb&lt;/TD&gt;&lt;TD&gt;64&lt;/TD&gt;&lt;TD&gt;01/02/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bbb&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;TD&gt;08/06/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bbb&lt;/TD&gt;&lt;TD&gt;36&lt;/TD&gt;&lt;TD&gt;02/04/2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As things stand today, the date is December 2022. I want to display the SUM of values split by year. The problem in my current bar chart is that each time a year starts, the sum for that year starts at zero. Also, previous years contain gaps where the value against a reference may not be declared in a year - so it is not carried over a year or two where there is no value update/change. So if I'm looking at 2023's total values on the 1st January 2023, 2023 will have a value of zero as it's a new year and no values with a date in that year have been made.&lt;/P&gt;&lt;P&gt;What I need is for values to carry through the years. In the case of Reference aaa in TableA above, the last value of the reference in 2018 was on 01/04/2018 for 235. I would want that 235 to be part of the amount summed for the year 2018, to also be summed for 2019 but not 2020 as in that year there are two reviews of the value. The latest value of 84 would then take priority for 2020&lt;/P&gt;&lt;P&gt;There's also a cross check needed with TableB to see whether the reference was actually purchased or sold. If it has been sold and the date of being sold was, say, in 2020, then you'd not want to carry the value of that reference into 2021:&lt;/P&gt;&lt;P&gt;TableB&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Purchase&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Transaction Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;aaa&lt;/TD&gt;&lt;TD&gt;Purchase&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;01/01/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bbb&lt;/TD&gt;&lt;TD&gt;Purchase&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;01/04/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ccc&lt;/TD&gt;&lt;TD&gt;Sale&lt;/TD&gt;&lt;TD&gt;28/07/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ddd&lt;/TD&gt;&lt;TD&gt;Sale&lt;/TD&gt;&lt;TD&gt;22/06/2022&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I achieve this? Grateful for any help.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 12:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2973360#M99469</guid>
      <dc:creator>julesdude</dc:creator>
      <dc:date>2022-12-16T12:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2974435#M99546</link>
      <description>&lt;P&gt;Hi, I will try to sketch my approach, hope this helps:&lt;/P&gt;&lt;P&gt;a) I assume that you want to create a base table in Power BI and then just apply the visual and this should give the right amounts per year in your bar chart.&lt;/P&gt;&lt;P&gt;b) the strategy will be to do create&amp;nbsp; an additional table to join them together (call it "carry over table") and then do result = UNION(Table A, "carry over table") and apply the visual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- create a work table temp = TableA&lt;/P&gt;&lt;P&gt;- esablish a key relationship between temp and TableB via reference&lt;/P&gt;&lt;P&gt;- in temp create a new column&amp;nbsp; purchaseRef = RELATED (TableB['Purchase']) this gives the information of TableB if to carry over or not.&lt;/P&gt;&lt;P&gt;- in temp create a new column:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;newDate = 
var transactionYear = year(temp['Transaction Date'])
var thisYear = year(today())
var thisRef = temp['purchaseRef']
return 
if(thisRef = "Purchase" &amp;amp;&amp;amp; transactionYear &amp;lt; thisYear, Date(transactionYear + 1, 1, 1)&lt;/LI-CODE&gt;&lt;P&gt;So, in the helper table the amount is carried over to the first of the next year if the criteria are met.&lt;/P&gt;&lt;P&gt;Final helper table:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;carry over table = selectcolumns(filter(temp, isblank([newDate] = false)), 
"Reference", temp['Reference'], 
"Value", temp['Value'], 
"Date", temp['newDate'])

&lt;/LI-CODE&gt;&lt;P&gt;result = UNION(Table A, "carry over table"). You name the result after your visual with "VIEW" or so, to make clear that this is solely attached to the visual.&lt;/P&gt;&lt;P&gt;So, basically artifical records for the visual are created that carry the first of the next year and the amount to carry over. Or your logic goes in the newDate table column of the helper table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The alternative is to create a table with the distinct years you have and do a more complicated calculated column to get the right amount per year. Matter of taste.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2022 07:12:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2974435#M99546</guid>
      <dc:creator>scee07</dc:creator>
      <dc:date>2022-12-17T07:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2977735#M99741</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="399757" data-lia-user-login="julesdude" class="lia-mention lia-mention-user"&gt;julesdude&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If these also don't help, please share more detailed information and description to help us clarify your scenario to test.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 01:58:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2977735#M99741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-20T01:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2978878#M99811</link>
      <description>&lt;P&gt;Hi Christian&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="97900" data-lia-user-login="scee07" class="lia-mention lia-mention-user"&gt;scee07&lt;/a&gt;&amp;nbsp;. Thank you so much for your approach on Friday. Apologies I have been away for a few days until now.&lt;/P&gt;&lt;P&gt;I am not sure if the base table approach will work. Would the base table update each time a user changes a date in the report? I ask because in the report I have a date picker slicer labelled As Of Date the user can select that enables them to go back in time to see what the visualisations would like like in the past. Basically it's a date range slicer but I've covered the start date as this needs to remain fixed. The 'to' date modifies all visuals to provide a point in time. So in the case of TableA above, if I selected a date in 2018 I would only get data displayed in my visualisations up until that point. I have not used a table built by DAX before so I'm not sure if it would update here.&lt;BR /&gt;The alternative option with the implementation of calculated column wouldn't work as I know that definitely wouldn't update with change of date.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 11:38:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2978878#M99811</guid>
      <dc:creator>julesdude</dc:creator>
      <dc:date>2022-12-20T11:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2978965#M99823</link>
      <description>&lt;P&gt;OK, understood. The approach above is then not working. One question: the transcaction date above is then the date somebody does some update for a certain reference number? If this is the case I will try do some measures to solve this. But presumably it wil be tomorrow as I am busy today.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 12:24:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2978965#M99823</guid>
      <dc:creator>scee07</dc:creator>
      <dc:date>2022-12-20T12:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2979401#M99850</link>
      <description>&lt;P&gt;Hi Christian&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="97900" data-lia-user-login="scee07" class="lia-mention lia-mention-user"&gt;scee07&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes that is correct. The transaction date is the date when the value of the reference is updated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;No problem as you are busy. I just thank you for your time on this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 15:21:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2979401#M99850</guid>
      <dc:creator>julesdude</dc:creator>
      <dc:date>2022-12-20T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2979745#M99869</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I now have modified the approach. I assume the following business rules/definitions, just to be clear:&lt;BR /&gt;- one reference number can occur an arbitrary number of times in the base table because the transaction date signifies the update date&lt;/P&gt;&lt;P&gt;- updates can be the change from "Purchase" to "Sales" or vice versa or an amount change&lt;/P&gt;&lt;P&gt;- the rule is "Purchase" appears in the same year, but is as well carried over to the next year&lt;/P&gt;&lt;P&gt;- there is data picker where a date is selected and then a snapshot in the past is calculated, disregarding everything after this date&lt;/P&gt;&lt;P&gt;- the aggregation is the year: target is the total sum of amount and carry over for the relevant years&lt;/P&gt;&lt;P&gt;- there is already a consolidated table that has as a transaction:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;transaction date, amount, [purchase or sale], reference number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I did the following steps:&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) create a date table: with 2 helper measures for the start date and the max date&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DateRange =
VAR a = [StartDate]
VAR b = [MaxDate]
VAR tmp =
    CALENDAR ( a, b )
VAR result =
    ADDCOLUMNS ( tmp, "Year", YEAR ( [Date] ) )
RETURN
    result

MaxDate = MAX(History[TransactionDate]) + 365
StartDate = date(2018,1,1)&lt;/LI-CODE&gt;&lt;P&gt;So, we have I dynamic range of dates from the base table and the corresponding year. The dates can be then used in a slicer visual to select the picked date.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Years =
DISTINCT ( SELECTCOLUMNS ( ALL ( DateRange ), "Year", DateRange[Year] ) )&lt;/LI-CODE&gt;&lt;P&gt;This gives the range of years that are relevant from the start date to the next year of as-is as carry over year.&lt;/P&gt;&lt;P&gt;b) Measures for in-year amount and next year amount from carry over&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YearAmount =
VAR thisYear =
    SELECTEDVALUE ( Years[Year] )
VAR transactionsBeforePickerDate =
    FILTER ( History, History[TransactionDate] &amp;lt;= [PickedDate] )
VAR extendedHistory =
    ADDCOLUMNS (
        transactionsBeforePickerDate,
        "MaxDateForTransaction",
            VAR thisReference = [Reference]
            RETURN
                CALCULATE (
                    MAX ( History[TransactionDate] ),
                    FILTER ( transactionsBeforePickerDate, [Reference] = thisReference )
                ),
        "Year", YEAR ( [TransactionDate] )
    )
VAR currentTransactionsInTheYear =
    FILTER (
        extendedHistory,
        [TransactionDate] = [MaxDateForTransaction]
            &amp;amp;&amp;amp; [Year] = thisYear
    )
RETURN
    CALCULATE ( SUM ( History[Amount] ), currentTransactionsInTheYear )

PickedDate =
SELECTEDVALUE ( DateRange[Date] )&lt;/LI-CODE&gt;&lt;P&gt;The measure will pick up the relevant year from the year table in the table visual. PickedDate is the selected date from the slicer put in a measure. Then only the transactions before the PickedDate are taken and the MaxDateForTransaction is created to later filter the latest transaction for the reference number in the relevant year&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CarryOverAmount =
VAR thisYear =
    SELECTEDVALUE ( Years[Year] )
VAR transactionsBeforePickerDate =
    FILTER ( History, History[TransactionDate] &amp;lt;= [PickedDate] )
VAR extendedHistory =
    ADDCOLUMNS (
        transactionsBeforePickerDate,
        "MaxDateForTransaction",
            VAR thisReference = [Reference]
            RETURN
                CALCULATE (
                    MAX ( History[TransactionDate] ),
                    FILTER ( transactionsBeforePickerDate, [Reference] = thisReference )
                ),
        "Year", YEAR ( [TransactionDate] )
    )
VAR currentTransactionsInTheYear =
    FILTER (
        extendedHistory,
        [TransactionDate] = [MaxDateForTransaction]
            &amp;amp;&amp;amp; [Year] = thisYear - 1
            &amp;amp;&amp;amp; [PurchaseOrSale] = "Purchase"
    )
RETURN
    CALCULATE ( SUM ( History[Amount] ), currentTransactionsInTheYear )&lt;/LI-CODE&gt;&lt;P&gt;Same thing, but now the transactions of type "Purchase" are carried over.&lt;/P&gt;&lt;P&gt;You can pull now the year from Years and the two measures in&amp;nbsp; a table visual.&amp;nbsp;&lt;BR /&gt;It goes without saying that this not extensively tested. Should give you in any case the flavor of one way how to approach this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone had a smarter way to to this I'd be curious.&amp;nbsp;&lt;BR /&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;BR /&gt;Christian&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 17:49:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/2979745#M99869</guid>
      <dc:creator>scee07</dc:creator>
      <dc:date>2022-12-20T17:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3012441#M102189</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="97900" data-lia-user-login="scee07" class="lia-mention lia-mention-user"&gt;scee07&lt;/a&gt;&amp;nbsp;Happy New Year, and thank you greatly for the above response at the end of last year. I was just about to take vacation so have not until now been able to try apply it!&lt;/P&gt;&lt;P&gt;I think it might be the right solution - or certainly nearly there. But I am struggling to apply the first section creating the calendar. I have a slicer linked to my built in date table, so am wondering do I need to bother at all with assigning the min and max date selections&lt;/P&gt;&lt;P&gt;I thought it might be a good idea to send a link to my pbix &lt;A href="https://www.dropbox.com/t/Ma31OIAzrRfs3iIq" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. - unable to upload on the forum.&lt;/P&gt;&lt;P&gt;It might help if I recap a little to make sure the solution you provided would work or if there is something missing, but also to illustrate a bit better what I was describing for others in a similar situation,&lt;/P&gt;&lt;P&gt;What I have on my report canvas currently is the following:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You will see the date picker already at the top (i hide the start date so user can't change). It's essentially linked to the [Date] of DateTable that I create in PQ. This provides the window of time to be viewed in the bar chart below it but also filters out any dates from other tables so data is not involved in the calculations and can be filtered out.&lt;/P&gt;&lt;P&gt;In the attachment pbix, there are four tables in the model at work:&lt;/P&gt;&lt;P&gt;1. DateTable - as described above&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Asset Transaction - this is the acquisition value of the asset so when a 'purchase' it contains the very first record of its value. If there is a stamp saying 'sale', it marks the final year you can count the last valuation of the asset. Values for the asset should not run forward of this date.&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Asset Reference&lt;/TD&gt;&lt;TD&gt;Transaction Type&lt;/TD&gt;&lt;TD&gt;Transaction Date&lt;/TD&gt;&lt;TD&gt;Net Transaction Price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA100&lt;/TD&gt;&lt;TD&gt;Purchase&lt;/TD&gt;&lt;TD&gt;12 July 2018&lt;/TD&gt;&lt;TD&gt;5175000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA103&lt;/TD&gt;&lt;TD&gt;Purchase&lt;/TD&gt;&lt;TD&gt;22 November 2013&lt;/TD&gt;&lt;TD&gt;37400000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA107&lt;/TD&gt;&lt;TD&gt;Purchase&lt;/TD&gt;&lt;TD&gt;20 May 2011&lt;/TD&gt;&lt;TD&gt;8750000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA130&lt;/TD&gt;&lt;TD&gt;Purchase&lt;/TD&gt;&lt;TD&gt;17 December 2002&lt;/TD&gt;&lt;TD&gt;3800000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA130&lt;/TD&gt;&lt;TD&gt;Sale&lt;/TD&gt;&lt;TD&gt;19 October 2021&lt;/TD&gt;&lt;TD&gt;6000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA107&lt;/TD&gt;&lt;TD&gt;Sale&lt;/TD&gt;&lt;TD&gt;10 March 2021&lt;/TD&gt;&lt;TD&gt;10000000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;3. Asset Valuation&lt;BR /&gt;This lists consequent reviews of the asset value through time. These are irregular times. Some years are empty.&lt;/P&gt;&lt;P&gt;Even if there is a year missed in the Valuation Date column, the DAX calculation should carry forward the last known valuation into any gap years and count it as the value for it.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Asset Reference&lt;/TD&gt;&lt;TD&gt;Valuation Date&lt;/TD&gt;&lt;TD&gt;Asset Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA100&lt;/TD&gt;&lt;TD&gt;30-Sep-18&lt;/TD&gt;&lt;TD&gt;5400000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA100&lt;/TD&gt;&lt;TD&gt;31-Dec-18&lt;/TD&gt;&lt;TD&gt;5400000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA100&lt;/TD&gt;&lt;TD&gt;31-Dec-19&lt;/TD&gt;&lt;TD&gt;5400000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA100&lt;/TD&gt;&lt;TD&gt;31-Mar-20&lt;/TD&gt;&lt;TD&gt;5250000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA100&lt;/TD&gt;&lt;TD&gt;30-Jun-19&lt;/TD&gt;&lt;TD&gt;5400000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA100&lt;/TD&gt;&lt;TD&gt;31-Mar-19&lt;/TD&gt;&lt;TD&gt;5400000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA100&lt;/TD&gt;&lt;TD&gt;30-Sep-19&lt;/TD&gt;&lt;TD&gt;5400000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA103&lt;/TD&gt;&lt;TD&gt;30-Sep-18&lt;/TD&gt;&lt;TD&gt;43900000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA103&lt;/TD&gt;&lt;TD&gt;31-Dec-18&lt;/TD&gt;&lt;TD&gt;43900000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA103&lt;/TD&gt;&lt;TD&gt;31-Dec-19&lt;/TD&gt;&lt;TD&gt;43900000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA103&lt;/TD&gt;&lt;TD&gt;31-Mar-20&lt;/TD&gt;&lt;TD&gt;43900000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA103&lt;/TD&gt;&lt;TD&gt;30-Jun-19&lt;/TD&gt;&lt;TD&gt;43900000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;4. Building&lt;/P&gt;&lt;P&gt;This lists the asset references and provides attributes for them that can be used in the bar chart to split the total values by categories.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Asset Reference&lt;/TD&gt;&lt;TD&gt;Risk Profile&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA100&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA103&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA107&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA130&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;It should be worth noting then that is a 'purchase' of an asset has been made in Asset Transaction table but there is no record of a review of the valuation in the Asset Valuation table, then the Asset Transaction value should be used. That's an extra point that I came to realise was absent before but needs to be part of the calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see in the bar chart visualisation, there are some years with complete gaps and that's because it is not currently carrying over the last known value from the Asset Valuation table for the asset into further years. I think my DAX code is inaccurate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ValueLastDate = Calculate(SUM('Asset Valuation'[Asset Value]), LASTDATE('Asset Valuation'[Valuation Date]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does your solution still work in this scenario? I was lost with the DAX created table you provided. I'm not sure if I need this, but was also confused about the reference to Years[Year] and whether I need both snippets of your code b and c?&lt;BR /&gt;Sorry for the confusion. This level of complexity is a hard one for me to grasp on this one! I am still open to the idea of adding columns to existing tables if that is something that would break down the complexity and work with the dynamic date picker the user can select in the report as shown above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 00:55:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3012441#M102189</guid>
      <dc:creator>julesdude</dc:creator>
      <dc:date>2023-01-11T00:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3012919#M102213</link>
      <description>&lt;P&gt;Hi Julian,&amp;nbsp;&lt;BR /&gt;Happy New Year to you to. Good to have the file. I will have time during the day (German Time) to look at this and come back to you. I remember that the table in the DAX expression comes from the requirement to have a snapshot in the past, this means that e.g. you&amp;nbsp; could say what was the situation beginning of last year. Never mind, I will look at the pbi and see what is going. I'll come back to you. Best regards&amp;nbsp;&lt;BR /&gt;Christian&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 06:01:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3012919#M102213</guid>
      <dc:creator>scee07</dc:creator>
      <dc:date>2023-01-11T06:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3013269#M102225</link>
      <description>&lt;P&gt;Hi Christian&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="97900" data-lia-user-login="scee07" class="lia-mention lia-mention-user"&gt;scee07&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for taking a look again.&lt;/P&gt;&lt;P&gt;I think I said before, but I believe a value labelled sale should not be included in any figures. So we would take the first recorded value in the Asset Transaction table when it is marked 'Purchased', and that would be the value for that year (unless there is an update to the value in the Asset Valuation table in which we take the last provided in that year). If available, we would not take the last value to be that marked 'Sale' for an asset in the Asset Transaction table.&lt;BR /&gt;This might be needed in future though.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 08:49:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3013269#M102225</guid>
      <dc:creator>julesdude</dc:creator>
      <dc:date>2023-01-11T08:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3013709#M102253</link>
      <description>&lt;P&gt;Hi Julian,&amp;nbsp;&lt;BR /&gt;I will now try to modify the approach and provide a link to the workbook for you to look at below.&lt;BR /&gt;Assets are buildings, that gives me better context.&amp;nbsp;&lt;BR /&gt;Firstly, the transaction and the valuation table should be married:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AllTransactions =
UNION (
    SELECTCOLUMNS (
        'Asset Transaction',
        "Asset Reference", 'Asset Transaction'[Asset Reference],
        "TransactionDate", 'Asset Transaction'[Transaction Date],
        "Type", 'Asset Transaction'[Transaction Type],
        "Amount", 'Asset Transaction'[Net Transaction Price]
    ),
    SELECTCOLUMNS (
        'Asset Valuation',
        "Asset Reference", 'Asset Valuation'[Asset Reference],
        "TransactionDate", 'Asset Valuation'[Valuation Date],
        "Type", "Validation",
        "Amount", 'Asset Valuation'[Asset Value]
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the full history is in the table from purchase to evaluation to potential sales is in one table.&lt;BR /&gt;I think to have understood that the date filter is only for defining the window that is shown in the visual. If this is the case then we can try a brute force approach with no very complicated measures. I come to the limitations later on.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;BruteForceCrossJoin =
CROSSJOIN (
    SELECTCOLUMNS ( DateTable, "Date", DateTable[Date] ),
    DISTINCT (
        SELECTCOLUMNS (
            'Asset Transaction',
            "Asset Reference", 'Asset Transaction'[Asset Reference]
        )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;These are all combinations of Date and Asset.&amp;nbsp; This will adress the problem that the visual does not carry over valuations to a the following years if there are no valuation dates. Now, the limitations: if you have thousands of assets this table is getting presumably to big. One thing, in any case is that you can restrict the date table to date with a new table Date which has a filter smaller than Today() on the date. Let's assume for the moment that this is working as the number of different assets is sufficiently small.&lt;BR /&gt;Now we can do a calculated column:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CurrentValue =
VAR thisAsset = BruteForceCrossJoin[Asset Reference]
VAR thisDate = BruteForceCrossJoin[Date]
VAR salesDate =
    CALCULATE (
        FIRSTNONBLANK ( AllTransactions[TransactionDate], 0 ),
        FILTER (
            AllTransactions,
            AllTransactions[TransactionDate] &amp;lt;= thisDate
                &amp;amp;&amp;amp; AllTransactions[Asset Reference] = thisAsset
                &amp;amp;&amp;amp; AllTransactions[Type] = "Sale"
        )
    )
VAR lastValuationDate =
    CALCULATE (
        MAX ( AllTransactions[TransactionDate] ),
        FILTER (
            AllTransactions,
            AllTransactions[TransactionDate] &amp;lt;= thisDate
                &amp;amp;&amp;amp; AllTransactions[Asset Reference] = thisAsset
                &amp;amp;&amp;amp; AllTransactions[Type] &amp;lt;&amp;gt; "Sale"
        )
    )
VAR lastValuationAmount =
    CALCULATE (
        FIRSTNONBLANK ( AllTransactions[Amount], 0 ),
        FILTER (
            AllTransactions,
            AllTransactions[TransactionDate] = lastValuationDate
                &amp;amp;&amp;amp; AllTransactions[Asset Reference] = thisAsset
        )
    )
RETURN
    IF ( ISBLANK ( salesDate ), lastValuationAmount, 0 )&lt;/LI-CODE&gt;&lt;P&gt;So, now are dates have a value for all assets. If an asset is sold the value is 0. What concerns the remark above I am not sure if I understand the business context: if an asset is sold the futere value is zero. However, if I would like to still see it in the history. Please clarify.&lt;BR /&gt;In the model there only 3 tables now Date, BruteForceCrossJoin and Building. Relationships are Date and BruteForce via the dates and BruteForce and Building via the asset reference.&amp;nbsp;&lt;BR /&gt;Now to the visual: I think the column year in the date table should be directly selected as the drill down of the date is essentially meaningless for the visual. Then we only want to show only the last valuation of the year summed over assets and risk class. Therefore we need a measure as value for the visual:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LatestValue =
VAR selectedYear =
    SELECTEDVALUE ( DateTable[Year] )
VAR maxDateInYear =
    CALCULATE (
        MAX ( DateTable[Date] ),
        FILTER ( DateTable, DateTable[Year] = selectedYear )
    )
VAR selectedMaxDate =
    SELECTEDVALUE ( DateTable[Date] ) //var maxDate = if (selectedMaxDate &amp;lt; maxDateInYear, selectedMaxDate, maxDateInYear)
RETURN
    CALCULATE (
        SUM ( BruteForceCrossJoin[CurrentValue] ),
        FILTER ( BruteForceCrossJoin, BruteForceCrossJoin[Date] = maxDateInYear )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;With a little helper filter for the assets, you see that the amount disappears, once sold:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://scheerenconsult-my.sharepoint.com/:u:/g/personal/christian_scheerenconsult_onmicrosoft_com/EZ-OJ90JlxlDo0He5UR_ofYBOoZ2bD56C9eY5b0hNzv-KA?e=w16agm" target="_blank"&gt;Assets_110123.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;is the one drive link to the workbook&amp;nbsp;&lt;BR /&gt;If this is roughly the requirement then the calculated column approch works in principle.&amp;nbsp;&lt;BR /&gt;Don't hesitate to reply: we will do this until we have both understood what is required.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christian&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 12:09:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3013709#M102253</guid>
      <dc:creator>scee07</dc:creator>
      <dc:date>2023-01-11T12:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3014152#M102296</link>
      <description>&lt;P&gt;Thank you so much again Christian&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="97900" data-lia-user-login="scee07" class="lia-mention lia-mention-user"&gt;scee07&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am testing now and it really does seem to work. The values are moving across the years where there is no update for a year and are being treated as part of the total for that 'blank' year.&lt;/P&gt;&lt;P&gt;And really liking the approach of merging the Transaction and Valuation tables. This makes a whole lot more sense and simplifies the calculations by essentially adding a balance sheet by date for all assets.&lt;BR /&gt;Repsonse to your comments:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I think to have understood that the date filter is only for defining the window that is shown in the visual.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It acts essentially as an As Of Date - a way of going back in time to see how things looked if I was to run the report at that time,&amp;nbsp; like it was today's date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;What concerns the remark above I am not sure if I understand the business context: if an asset is sold the futere value is zero. However, if I would like to still see it in the history. Please clarify.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I needed to get a bit more clarity on this. The change is - I no longer need to use the 'Purchased' amount in the Asset Transaction table. Nor should we use the value if it is marked 'Sale'.&lt;/P&gt;&lt;P&gt;If an amount is not in the Asset Valuation table we should just ignore the asset, even if there is a 'Purchased' record of it in the Transaction table. This is because it should not be treated as part of the portfolio until it's first and consecutive evaluations. It is not validated with any value until there is a log in the Asset Valuation table. In fact the only thing now we do need from the Transaction table is if it is a 'Sold'. We would need the date from that to put a stop on that asset value being included, depending on the date picker the user selects.&lt;/P&gt;&lt;P&gt;So if an asset had a value of 300,000 on 20th Jan 2013 but was sold on 25th Jan 2013 - if the date user picked is 21st Jan 2013, the asset is still part of the sum total for the year 2013. But if I was to pick date 26th Jan 2013, the asset value would not be part of the total now displaying for me for that year of 2013.&lt;/P&gt;&lt;P&gt;So, basically, we only count values as and when they are listed in the Valuation table, until the date marked sold in the Transaction table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About your question about number of assets. I am currently working with around a thousand. This will not increase quickly over time, but you never know. It's more likely to increase than decrease.&lt;/P&gt;&lt;P&gt;In regards to the granularity of the data - the solution might be a problem if it doesn't maintain data on a daily level. I am implementing a second drop down selection that will convert all values displayed to a currency of their choice (about 8 available). So values and their related dates in the Asset Valuation table will be looked up and converted from their native currency (this is available against the asset in the Building table) to selected currency. I bring in daily historic conversion rate data from ECB for this, but it means that each individual value has to be converted on the date the valuation occurred, it can't use the converstion rate on the date you are running the report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Given that we now no longer need the Asset Transaction table so much, perhaps a merging of tables is no longer needed?&lt;BR /&gt;Will it help if I provide the currency conversion in the pbix?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 14:53:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3014152#M102296</guid>
      <dc:creator>julesdude</dc:creator>
      <dc:date>2023-01-11T14:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3014232#M102303</link>
      <description>&lt;P&gt;Yes, please send what you have.&lt;BR /&gt;I will have time tomorrow to continue with this.&amp;nbsp; A few point upfront to check my understanding&lt;BR /&gt;- the transaction table is still needed as we need the potential sales dates of the assets?&lt;BR /&gt;- if we assume&amp;nbsp; that we can keep the brute force approach for the moment, I think that a date selection will exactly achieve what we want, because if a sales date is after the upper filter date, it will not appear in the sequence of valuations for the asset?&lt;BR /&gt;- yes, the currencies will mulitply&amp;nbsp; the table by 8 (if 8 currencies).&amp;nbsp;&lt;/P&gt;&lt;P&gt;- if the table size should become a problem, the approach would be to achieve a working brute force solution and then opimize the solution.&lt;BR /&gt;Bes reagards&amp;nbsp;&lt;BR /&gt;Christian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 15:18:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3014232#M102303</guid>
      <dc:creator>scee07</dc:creator>
      <dc:date>2023-01-11T15:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3014677#M102350</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- the transaction table is still needed as we need the potential sales dates of the assets?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is correct. The date will need to be referenced to understand if a previous Asset Valuation amount should be included in the current portfolio total up to the date the user has selected in the date picker. OR, if it has been marked as sold at a date previous to the date selected in the date picker, that this is then not included as part of the portfolio total, because you would be including asset values that are no longer owned.&lt;BR /&gt;&lt;EM&gt;- if we assume&amp;nbsp; that we can keep the brute force approach for the moment, I think that a date selection will exactly achieve what we want, because if a sales date is after the upper filter date, it will not appear in the sequence of valuations for the asset?&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Yes, I think this is correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/hgzjwibspzogm8k/Assets_110123_2.pbix?dl=0" target="_self"&gt;Attached here&lt;/A&gt; I have updated your pbix attachment to include everything you have added where left off, but also to include the currency conversion slicer and logic for that to work. I'm open to this being written more efficiently, but for now it does the job.&lt;/P&gt;&lt;P&gt;I have created a Measure table to store some of the added measures instead of assigning them to a table (find it more organised this way)&lt;/P&gt;&lt;P&gt;In the Measure table:&lt;/P&gt;&lt;P&gt;- Selected Currency - returns the user selected currency&lt;/P&gt;&lt;P&gt;- ValueLastDate - returns the last value for an asset based on the LASTDATE DAX function&lt;/P&gt;&lt;P&gt;- ValueLastDate SUM - ensures totals are being displayed properly if displayed as a table&lt;/P&gt;&lt;P&gt;- ValueLastDate_CurrencyChanged - Takes the currency, the selected currency, LASTDATE of asset valuation, then finds the nearest currency converstion rate from the ECB imported table (or closest last day going back in time where there is conversion data). It then performs the converstion. As there are only conversions to EUR, sometimes there are two steps to the conversion if you are converting to anything other than the EUR, for example AUD to DKK has to be converted into then out of the EUR.&lt;/P&gt;&lt;P&gt;- ValueLastDate_CurrencyChanged SUM - is the same as the ValueLastDate SUM but uses the converted currency amount to summarise.&lt;/P&gt;&lt;P&gt;- I added a currency column to the Building table so that the above can reference the native currency of the asset for converting to/from&lt;/P&gt;&lt;P&gt;- I added a live feed for the ECB rates - ECB_FX_RATES table in the model&lt;/P&gt;&lt;P&gt;- In the DateTable I needed to add a couple of columns - ECBRateDate and isinECBTable to assist the dates of conversion alignment&lt;/P&gt;&lt;P&gt;- Added DistinctECBRates DAX table which gives DISTINCT rows for the ECB_FX_RATES dates available so it can cross reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see in the updated visuals I added on the Curency Conversion tab, this sort of works, and you can drill down to quarters etc. The values also convert to chosen currency if selected. But there is nothing for 2021/22/23 despite not all assets being Sold.&lt;/P&gt;&lt;P&gt;I hope this makes sense.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 18:10:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3014677#M102350</guid>
      <dc:creator>julesdude</dc:creator>
      <dc:date>2023-01-11T18:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3017027#M102480</link>
      <description>&lt;P&gt;Hi Julian,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stuck with a customer, will be until tomorrow when I'll come back to you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;BR /&gt;Christian&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:41:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3017027#M102480</guid>
      <dc:creator>scee07</dc:creator>
      <dc:date>2023-01-12T14:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3017129#M102487</link>
      <description>&lt;P&gt;Thanks Christian. No problem. I have not been progressing on it much at all myself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 15:10:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3017129#M102487</guid>
      <dc:creator>julesdude</dc:creator>
      <dc:date>2023-01-12T15:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3019373#M102666</link>
      <description>&lt;P&gt;Hi Julian,&lt;/P&gt;&lt;P&gt;with the currencies added I got rid of the brute force table with all combinations, as this will not scalable with more currencies and buildings. This required a few changes outlinded below:&lt;BR /&gt;a) restrict the date table: dates before the first validation at all are useless, dates after today as well, as the figures will not change. The same for days before all exchange rates are available.&lt;BR /&gt;The restricted date table makes use of the following measures:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RestrictedDateTable =
FILTER (
    DateTable,
    DateTable[Date] &amp;lt;= TODAY ()
        &amp;amp;&amp;amp; DateTable[Date] &amp;gt;= [FirstValuationDate]
        &amp;amp;&amp;amp; DateTable[Date] &amp;gt;= [FirstCompleteCurrencyDate]
)

FirstValuationDate =
CALCULATE (
    MINX ( ALL ( 'Asset Valuation' ), 'Asset Valuation'[Valuation Date] )
)
FirstCompleteCurrencyDate =
VAR minDates =
    CALCULATETABLE (
        SUMMARIZE (
            FILTER (
                ECB_FX_RATES,
                TRIM ( ECB_FX_RATES[OBS_VALUE] ) &amp;lt;&amp;gt; ""
                    || ISBLANK ( ECB_FX_RATES[OBS_VALUE] ) = FALSE ()
            ),
            ECB_FX_RATES[CURRENCY],
            "MinDate", MIN ( ECB_FX_RATES[TIME_PERIOD] )
        )
    )
VAR test =
    CALCULATE ( MAXX ( minDates, [MinDate] ) )
RETURN
    test
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The AllTransactions table gets the currency and the latest available exchange rate to Euro before the transaction date:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Currency =
RELATED ( Building[Currency] )

LatestConversionRate =
VAR thisCurrency = AllTransactions[Currency]
VAR thisDate = AllTransactions[TransactionDate]
RETURN
    IF (
        thisCurrency = "EUR",
        1,
        CALCULATE (
            LASTNONBLANK ( ECB_FX_RATES[OBS_VALUE], 0 ),
            FILTER (
                ECB_FX_RATES,
                ECB_FX_RATES[TIME_PERIOD] &amp;lt;= thisDate
                    &amp;amp;&amp;amp; ECB_FX_RATES[CURRENCY] = thisCurrency
            )
        )
    )
EuroValue =
IF (
    AllTransactions[LatestConversionRate] &amp;lt;&amp;gt; BLANK (),
    AllTransactions[Amount] / AllTransactions[LatestConversionRate]
)
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the measures are more complicated. The first panel transforms everything in Euro values:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LatestValidationValueInEuro =
VAR thisAsset =
    SELECTEDVALUE ( Building[Asset Reference] )
VAR maxDate = [Max Selected Date]
VAR lastValidationDate =
    CALCULATE (
        MAX ( AllTransactions[TransactionDate] ),
        FILTER (
            ALL ( AllTransactions ),
            AllTransactions[Asset Reference] = thisAsset
                &amp;amp;&amp;amp; AllTransactions[TransactionDate] &amp;lt;= maxDate
                &amp;amp;&amp;amp; AllTransactions[Type] = "Validation"
        )
    )
VAR validationValue =
    CALCULATE (
        FIRSTNONBLANK ( AllTransactions[EuroValue], 0 ),
        FILTER (
            ALL ( AllTransactions ),
            AllTransactions[Asset Reference] = thisAsset
                &amp;amp;&amp;amp; AllTransactions[TransactionDate] = lastValidationDate
        )
    )
VAR globalMaxValidationDate =
    CALCULATE (
        MAX ( AllTransactions[TransactionDate] ),
        FILTER (
            ALL ( AllTransactions ),
            AllTransactions[Asset Reference] = thisAsset
                &amp;amp;&amp;amp; AllTransactions[Type] = "Validation"
        )
    )
VAR globalLastValue =
    CALCULATE (
        FIRSTNONBLANK ( LatestValuations[EuroAmount], 0 ),
        FILTER ( LatestValuations, LatestValuations[Asset Reference] = thisAsset )
    )
VAR wasSold =
    COUNTROWS (
        FILTER (
            ALL ( AllTransactions ),
            AllTransactions[TransactionDate] &amp;lt;= maxDate
                &amp;amp;&amp;amp; AllTransactions[Type] = "Sale"
                &amp;amp;&amp;amp; AllTransactions[Asset Reference] = thisAsset
        )
    ) &amp;gt; 0
VAR result =
    IF (
        wasSold,
        BLANK (),
        IF ( ISBLANK ( validationValue ), [GlobalLastValidationValue], validationValue )
    )
RETURN
    result
LatestValidationValueInEuroWrapped =
VAR tab =
    SUMMARIZE (
        Building,
        Building[Asset Reference],
        "measure", [LatestValidationValueInEuro]
    )
RETURN
    SUMX ( tab, [measure] )&lt;/LI-CODE&gt;&lt;P&gt;We can discuss next week in case this unclear. In principle the [Max Selected Date] measure does the work. If you apply this measure to the date hierarchy, the last date of the period is picked (as in period year, quarter, ...)&lt;BR /&gt;Then there is a filter context with the max date and the asset considered and the right value is calculated. The wrapper makes this value summable.&lt;BR /&gt;Then the currency conversion is easily achieved with a little extension:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LatestValidationInCurrency =
VAR thisCurrency = [Selected Currency]
VAR thisAsset =
    SELECTEDVALUE ( Building[Asset Reference] )
VAR maxDate = [Max Selected Date] // find the most recent exchange rate before maxDate 
VAR maxCurrencyDate =
    CALCULATE (
        MAX ( ECB_FX_RATES[TIME_PERIOD] ),
        FILTER ( ECB_FX_RATES, ECB_FX_RATES[TIME_PERIOD] &amp;lt;= maxDate )
    )
VAR exchangeRate =
    CALCULATE (
        FIRSTNONBLANK ( ECB_FX_RATES[OBS_VALUE], 0 ),
        FILTER (
            ECB_FX_RATES,
            ECB_FX_RATES[CURRENCY] = thisCurrency
                &amp;amp;&amp;amp; ECB_FX_RATES[TIME_PERIOD] = maxCurrencyDate
        )
    )
VAR lastValidationDate =
    CALCULATE (
        MAX ( AllTransactions[TransactionDate] ),
        FILTER (
            ALL ( AllTransactions ),
            AllTransactions[Asset Reference] = thisAsset
                &amp;amp;&amp;amp; AllTransactions[TransactionDate] &amp;lt;= maxDate
                &amp;amp;&amp;amp; AllTransactions[Type] = "Validation"
        )
    )
VAR validationValue =
    CALCULATE (
        FIRSTNONBLANK ( AllTransactions[EuroValue], 0 ),
        FILTER (
            ALL ( AllTransactions ),
            AllTransactions[Asset Reference] = thisAsset
                &amp;amp;&amp;amp; AllTransactions[TransactionDate] = lastValidationDate
        )
    )
VAR globalMaxValidationDate =
    CALCULATE (
        MAX ( AllTransactions[TransactionDate] ),
        FILTER (
            ALL ( AllTransactions ),
            AllTransactions[Asset Reference] = thisAsset
                &amp;amp;&amp;amp; AllTransactions[Type] = "Validation"
        )
    )
VAR globalLastValue =
    CALCULATE (
        FIRSTNONBLANK ( LatestValuations[EuroAmount], 0 ),
        FILTER ( LatestValuations, LatestValuations[Asset Reference] = thisAsset )
    )
VAR wasSold =
    COUNTROWS (
        FILTER (
            ALL ( AllTransactions ),
            AllTransactions[TransactionDate] &amp;lt;= maxDate
                &amp;amp;&amp;amp; AllTransactions[Type] = "Sale"
                &amp;amp;&amp;amp; AllTransactions[Asset Reference] = thisAsset
        )
    ) &amp;gt; 0
VAR result =
    IF (
        wasSold,
        BLANK (),
        IF (
            ISBLANK ( validationValue ),
            [GlobalLastValidationValue] * exchangeRate,
            validationValue * exchangeRate
        )
    )
RETURN
    result

LastValidationinCurrencyWrapped =
VAR tab =
    SUMMARIZE (
        Building,
        Building[Asset Reference],
        "measure", [LatestValidationInCurrency]
    )
RETURN
    SUMX ( tab, [measure] )


&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It goes without saying that this is not sufficiently tested. Here the link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://scheerenconsult-my.sharepoint.com/:u:/g/personal/christian_scheerenconsult_onmicrosoft_com/EdnJ1w0QHXZCspWkbZOAZQgBkqlJbLpWQpytUw-b9ESKLA?e=XgGmHW" target="_blank"&gt;Assets_130123.pbix&lt;/A&gt;&lt;BR /&gt;We'll talk next week. If you let me, I would like to understand how the exchange rates are aligned to the accounting guidelines in this specific case.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best regards&amp;nbsp;&lt;BR /&gt;Christian&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 13:38:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3019373#M102666</guid>
      <dc:creator>scee07</dc:creator>
      <dc:date>2023-01-13T13:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3025504#M103147</link>
      <description>&lt;P&gt;Hi Christian, hoping you had a good weekend.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As ever, thank you for your time on this - it turned complicated, and for that, apologies.&lt;/P&gt;&lt;P&gt;Anyway, I've been testing your attached solution. Although I have not dissected your code line by line, I have analysed the output and conversion rates, comparing the values I'm getting after conversion to the ones the report gives me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially the conversion must work in the following way if, for example, I wanted to exchange a DKK amount for a selected currency of AUD:&lt;/P&gt;&lt;P&gt;As of Date = 2022-06-30 as follows:&lt;/P&gt;&lt;P&gt;From ECB_FX_RATES table which provides all currency conversion rates we need to Euro&lt;/P&gt;&lt;P&gt;&amp;lt;Cube time="2022-06-30"&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Cube currency="DKK" rate="7.4392"/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Cube currency="AUD" rate="1.5099"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Cube&amp;gt;&lt;/P&gt;&lt;P&gt;[EUR -&amp;gt; EUR] * [EUR -&amp;gt; DKK]&lt;/P&gt;&lt;P&gt;[1/1.0000] * [7.4392] = 7.4392 (&lt;EM&gt;this one is simple as the rate matches that from the ECB extraction)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;[AUD -&amp;gt; EUR] * [EUR -&amp;gt; DKK]&lt;/P&gt;&lt;P&gt;[1/1.5099] * [7.4392] = 4.9269&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the latest file you sent, I looked at both tabs. For the bar graph visual I changed the Legend to contain Asset Reference rather than Risk Profile, just to make it easier to separate the values at asset level and check their value change.&lt;/P&gt;&lt;P&gt;For the Euro tab, I'm assuming these are conversions all to Euro from the native currency?&lt;/P&gt;&lt;P&gt;I looked at AAA100 - this is in Euros anyway, so the value would be the same as in the table. It definitely is displaying as it should with the latest valuation of the year used for that year and carried over to other years if there is no update of the valuation in them.&lt;/P&gt;&lt;P&gt;I then looked at AAA107 - the native currency of this asset is DKK. In 2018, the last valuation of the year was on 31/12/2018 for 43,900,000 DKK. DKK to EUR on the 31/12/2018 was 7.4674.&lt;/P&gt;&lt;P&gt;Using the calc logic above, this would be:&lt;BR /&gt;43,900,000 / 7.4392 (use / instead of * as you are switching round EUR -&amp;gt; DKK to DKK -&amp;gt; EUR.&lt;/P&gt;&lt;P&gt;This gives result of 5,091,172.17 (rounded down to 2dp). However the value I'm getting in the bar chart is 5,875,503.57.&lt;/P&gt;&lt;P&gt;AAA107 last value for 2018 is 11,500,000 in GBP. valued on 31/12/2018. FX rate to EUR on 31/12/2018 is 0.89453. 11500000 / 0.89453 = 12,855,913.20. Displayed is 7,959,984.94.&lt;/P&gt;&lt;P&gt;I think this was the accountancy details you were after to make it clearer on how this is calculated. My original exchange rate DAX logic used LOOKUPVALUE which did the job but I was never really happy about as I believe it can be an expensive function to use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the above sheds some light on the conversion logic - there are basically two methods used depending on the scenario - first, if the asset native currency is EUR anyway OR the user has selected conversion currency to EUR in the drop-down then you only need to find and use one rate to EUR . If both the asset native currency is not EUR and the selected currency is not EUR then two exchange rate lookups need to be made and used as part of the conversion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping this makes sense.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 11:00:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3025504#M103147</guid>
      <dc:creator>julesdude</dc:creator>
      <dc:date>2023-01-17T11:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3025700#M103163</link>
      <description>&lt;P&gt;Hi Julian,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I indeed found a mistake in my calculated column for the conversion to Euro in the AllTransactions table. This fixes AAA103 as it seems.&lt;BR /&gt;For AAA107, I found this, what scares me :-):&amp;nbsp;&lt;BR /&gt;I have 2 valuations per day in the original table, and the valuations are different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me if this is a bug, or if I am missing something.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically with this input, the difference can be explained as after sorting the lower value is picked. Or is there a rule: if there are 2 valuations on the same day take the bigger one?&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christian&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;</description>
      <pubDate>Tue, 17 Jan 2023 12:20:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3025700#M103163</guid>
      <dc:creator>scee07</dc:creator>
      <dc:date>2023-01-17T12:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to carry over previous year value into year where value is not updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3025753#M103166</link>
      <description>&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;Yes well spotted. In actual fact this is a mistake in my data recreation - in the Asset Valuation table, there will never normally be two valuations in a day. But I guess it is not impossible. If it should ever occur, the latest date should be picked, but to be honest I think the chances of this ever happening are virtually nil.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is a similar story in the ECB_FX_RATES table. You will never get two FX rates for a single day as it is a daily report. Not every day is provided - weekends are not normally given. In those cases, should as asset valuation occur the day of a weekend where there is no FX rate provided in the ECB_FX RATES table, then the last FX date nearest to the date of valuation should be used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;If a valuation occured on Sunday 15th January 2023, then the FX rate for Friday 13th Jan 2023 would be used.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 12:41:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-carry-over-previous-year-value-into-year-where-value-is/m-p/3025753#M103166</guid>
      <dc:creator>julesdude</dc:creator>
      <dc:date>2023-01-17T12:41:35Z</dc:date>
    </item>
  </channel>
</rss>

