Excel DATE and EDATE functions

Hi,

Do the Excel "DATE (YEAR, MONTH, DAY)" and EDATE functions work in Data Flow in Board - I tried, but it does not return any values. The cube is just empty - looks like Board is just ignoring any calculation using these functions.

Answers

  • Dear Vikash G,

     

    can you please describe a little more detaillized what you want to do with these formulars?

     

    For general you can use today() e.g. to write actual time stamp to text cube.

     

    regards

     

    Alexander Kappes

  • Hi Alexander Kappes,

    I am trying to use these formulas to add a certain number months to a specific date. Similar to what EDATE does when used in excel, but then I use this function directly in data flow, it does give any result. I am trying to replicate a depreciation model in Board. I have Asset life (in months), Asset purchase date and Asset Value. I am trying to replicate a straight line method model - for which I was looking to get the final month of the Asset by adding the Asset life to Asset Purchase date. In Excel this works - EDATE(Asset Purchase Date, Asset Life).

     

    Regards,

     

    Vikash

  • Alexander Kappes
    Alexander Kappes Employee
    Fourth Anniversary 250 Likes 100 Comments 5 Answers
    edited March 2020

    Hi Vikash G,

     

    now I understand. You have starting date, months to use and want to calculate the "Enddate of use".

     

    For that you didn´t need any formular in BOARD. You can directly calculate with the date cube. You just have to add the number of days to your startdate.

     

    See my little sample

     

    image

    image

     

    Hope it helps

     

    regards

     

    Alexander Kappes

  • Dietmar Jeschkeit
    Dietmar Jeschkeit Active Partner
    Fourth Anniversary 100 Comments 25 Up Votes 25 Likes
    edited March 2020

    Hi Vikash G,

     

    in addition to Alexander Kappes you can use the SLN Formula for calculating the depreciation.

     

    It is: SLN(Initial cost of assetAsset value at the end of the depreciationPeriods over which asset is depreciated)

    image BR

    Dietmar

  • Hi Alexander Kappes,

     

    I am able to add number of days to an existing date in my data flow algorithm and it works as you have mentioned too.

     

    However is there a way we can add a certain number of months (not days) to an existing date? Basically trying to look for an EDATE equivalent formula in Board.

    I trying to allocate the depreciation value across each of month that the Asset is valid for (I.e. from the Purchase Date to Purchase Date + Asset Life(in months)).

     

    Regards,

     

    Vikash

  • Alexander Kappes
    Alexander Kappes Employee
    Fourth Anniversary 250 Likes 100 Comments 5 Answers
    edited March 2020

    Dear Vikash G,

     

    to calculate from month to day, you just have to calculate the number of months with 365 and divide by 12 :-)

     

    Means you can directly use in DataFlow.

     

    e.g. like this image

     

    Hope it helps

     

    regards

     

    Alexander Kappes

  • Hi Dietmar Jeschkeit,

     

    Thank you for the SLN option. I will make use of this function to get the depreciation value.

     

    Regards,

     

    Vikash

  • Dietmar Jeschkeit
    Dietmar Jeschkeit Active Partner
    Fourth Anniversary 100 Comments 25 Up Votes 25 Likes
    edited March 2020

    Hi Vikash G,

     

    or instead of Alexander Kappes Option you can use a dataflow to mark every month für depreciation in a dataflow:

     

    image

     

    Sorry for the german text. It is an example from a customer. The calculations of the algorithms are in the text.

     

    BR

    Dietmar

  • Hi Alexander Kappes,

     

    Thank you very much, I just did that and got what I wanted to achieve

     

    Regards,

     

    Vikash