Forum Discussion

Khalidc's avatar
Khalidc
Frequent Visitor
4 years ago
Solved

Split amount based on date

Hi    For a sales forecast report I need to calculate the future sales based on dealvalues and the closing date of a deal. The closing date is the date that the deal is expected to be closed (will ...
  • amitchandak's avatar
    4 years ago

    Khalidc , Assume you have Table with Deal amount and close date

    A new columns

     

    Addcolumns(
    generate(table, filter(calendar(close_date, eomonth(close_date,6)), [Date] = eomonth([Date],0))),
    "New Deal Amount" , if(eomonth([Close_date],0) = [Date], [Deal Amount]/2, [Deal Amount]/12))