Forum Discussion

Dimitris_Kats's avatar
3 years ago
Solved

How to add fixed amount

Hello dear members.   I need your help once more.   I have a fund report with inflows and outflows from 1/1/2016 until now.   I would like to calculate the ( inflows - outflows) day by day but ...
  • Dimitris_Kats's avatar
    Dimitris_Kats
    3 years ago

    Hi Anonymous 

    Thank you very much for your solution.

     

    To be honest i managed to solve it on my own based on the solution of FreemanZ 
    I calculated the 

    Amount = 
    VAR _mindate = MIN(TableName[Date])
    VAR _maxdate = MAX(TableName[Date])
    VAR _fixedamount = IF(_mindate<=DATE(2019,1,1)&& _maxdate >=DATE(2019,1,1), 100, 0)
    RETURN
    SUM(TableName[Inflows]) + _fixedamount - SUM(TableName[Outflows])

    And then I calculated the running total 🙂
    But thank you very much. Your help is greatly appreciated. 
    Unfortynately I cannot creat a calculated column at my model 😞