Forum Discussion

KevinVertrees's avatar
KevinVertrees
Frequent Visitor
6 years ago
Solved

Help with Dax formula for financial format

I'm having difficultly with a Dax formula related to some financial data that i'm trying to work with.  The table below is a sample of the data I'm working with.  The table includes a beginning_balan...
  • Icey's avatar
    6 years ago

    Hi KevinVertrees ,

     

    Try this:

    YTD Actual =
    VAR FirstMonth =
        EOMONTH ( MINX ( ALLSELECTED ( 'Calendar' ), 'Calendar'[Date] ), 0 )
    RETURN
        SUMX (
            'Financial Balances',
            IF (
                'Financial Balances'[Date] <= FirstMonth,
                'Financial Balances'[Beginning_balance] + 'Financial Balances'[Period_Actuals],
                'Financial Balances'[Period_Actuals]
            )
        )
    

     

     

    Best Regards,

    Icey

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.